Class TextOutput

Inheritance Relationships

Base Type

Class Documentation

class TextOutput : public Output

Configurable plain text output for cosmic ray information.

Public Types

enum OutputColumn

Values:

TrajectoryLengthColumn
ColumnDensityColumn
RedshiftColumn
CurrentIdColumn
CurrentEnergyColumn
CurrentPositionColumn
CurrentDirectionColumn
SourceIdColumn
SourceEnergyColumn
SourcePositionColumn
SourceDirectionColumn
CreatedIdColumn
CreatedEnergyColumn
CreatedPositionColumn
CreatedDirectionColumn
SerialNumberColumn
WeightColumn
enum OutputType

Values:

Trajectory1D
Trajectory3D
Event1D
Event3D
Everything

Public Functions

TextOutput()
TextOutput(OutputType outputtype)
TextOutput(std::ostream &out)
TextOutput(std::ostream &out, OutputType outputtype)
TextOutput(const std::string &filename)
TextOutput(const std::string &filename, OutputType outputtype)
~TextOutput()
void enableRandomSeeds()
void close()
void gzip()
void process(Candidate *candidate) const
std::string getDescription() const
std::string OutputTypeName(OutputType outputtype)
void setEnergyScale(double scale)
void setLengthScale(double scale)
void setOutputType(OutputType outputtype)
void set(OutputColumn field, bool value)
void enableProperty(const std::string &property, const Variant &defaultValue, const std::string &comment = "")

Add a property to output. Default value is required to assign a type in the output.

void enable(OutputColumn field)
void disable(OutputColumn field)
void enableAll()
void disableAll()
void set1D(bool value)
size_t size() const
void process(ref_ptr<Candidate> candidate) const
void setDescription(const std::string &description)
size_t addReference() const
size_t removeReference() const
int removeReferenceNoDelete() const
size_t getReferenceCount() const

Public Members

const std::string outputName

Public Static Functions

void load(const std::string &filename, ParticleCollector *collector)

Protected Functions

void printHeader() const
void modify()

Protected Attributes

std::ostream *out
std::ofstream outfile
std::string filename
bool storeRandomSeeds
double lengthScale
double energyScale
std::bitset<64> fields
std::vector<Property> properties
bool oneDimensional
size_t count
size_t _referenceCount