Classes | |
class | smash::BinaryOutputBase |
class | smash::BinaryOutputCollisions |
Saves SMASH collision history to binary file. More... | |
class | smash::BinaryOutputParticles |
Writes the particle list at specific times to the binary file. More... | |
class | smash::BinaryOutputInitialConditions |
Writes the particles when crossing the hypersurface to the binary file. More... | |
class | smash::ICOutput |
class | smash::OscarOutput< Format, Contents > |
class | smash::OutputInterface |
Abstraction of generic output. More... | |
class | smash::RootOutput |
class | smash::ThermodynamicOutput |
Writes the thermodynamic quantities at a specified point versus time. More... | |
class | smash::VtkOutput |
Enumerations | |
enum | smash::OscarOutputFormat { smash::OscarFormat2013, smash::OscarFormat2013Extended, smash::OscarFormat1999 } |
Selector for the output format of OscarOutput. More... | |
enum | smash::OscarOutputContents { smash::OscarInteractions = 0x001, smash::OscarTimesteps = 0x002, smash::OscarAtEventstart = 0x004, smash::OscarParticlesAtEventend = 0x008, smash::OscarParticlesAtEventendIfNotEmpty = 0x010, smash::OscarParticlesIC = 0x020 } |
Flags for the Contents template parameter of OscarOutput. More... | |
Functions | |
smash::OscarOutput< Format, Contents >::OscarOutput (const bf::path &path, const std::string &name) | |
Create oscar output. More... | |
void | smash::OscarOutput< Format, Contents >::at_eventstart (const Particles &particles, const int event_number) override |
Writes the initial particle information of an event to the oscar output. More... | |
void | smash::OscarOutput< Format, Contents >::at_eventend (const Particles &particles, const int event_number, double impact_parameter, bool empty_event) override |
Writes the final particle information of an event to the oscar output. More... | |
void | smash::OscarOutput< Format, Contents >::at_interaction (const Action &action, const double density) override |
Writes a interaction prefix line and a line for every incoming and outgoing particle to the oscar output. More... | |
void | smash::OscarOutput< Format, Contents >::at_intermediate_time (const Particles &particles, const std::unique_ptr< Clock > &clock, const DensityParameters &dens_param) override |
Writes a prefix line then write out all current particles. More... | |
void | smash::OscarOutput< Format, Contents >::write_particledata (const ParticleData &data) |
Write single particle information line to output. More... | |
void | smash::OscarOutput< Format, Contents >::write (const Particles &particles) |
Write the particle information of a list of particles to the output. More... | |
std::unique_ptr< OutputInterface > | smash::create_oscar_output (const std::string &format, const std::string &content, const bf::path &path, const OutputParameters &out_par) |
Variables | |
int | smash::OscarOutput< Format, Contents >::current_event_ = 0 |
Keep track of event number. More... | |
RenamingFilePtr | smash::OscarOutput< Format, Contents >::file_ |
Full filepath of the output file. More... | |
Selector for the output format of OscarOutput.
Enumerator | |
---|---|
OscarFormat2013 | |
OscarFormat2013Extended | |
OscarFormat1999 |
Definition at line 29 of file oscaroutput.h.
Flags for the Contents
template parameter of OscarOutput.
Flags can be combined with binary OR operators to some arbitrary int. That's why the values of the enumerators are written out (in hexadecimal), to ensure every flag occupies a single bit.
Definition at line 42 of file oscaroutput.h.
smash::OscarOutput< Format, Contents >::OscarOutput | ( | const bf::path & | path, |
const std::string & | name | ||
) |
Create oscar output.
[in] | path | Output path. |
[in] | name | Name of the ouput. |
|
overridevirtual |
Writes the initial particle information of an event to the oscar output.
[in] | particles | Current list of all particles. |
[in] | event_number | Number of event. |
Implements smash::OutputInterface.
Definition at line 128 of file oscaroutput.cc.
|
overridevirtual |
Writes the final particle information of an event to the oscar output.
[in] | particles | Current list of particles. |
[in] | event_number | Number of event. |
[in] | impact_parameter | Impact parameter of this event. |
[in] | empty_event | Whether there was no interaction between the target and the projectile. |
Implements smash::OutputInterface.
Definition at line 152 of file oscaroutput.cc.
|
overridevirtual |
Writes a interaction prefix line and a line for every incoming and outgoing particle to the oscar output.
[in] | action | Action that holds the information of the interaction. |
[in] | density | Density at the interaction point. |
Reimplemented from smash::OutputInterface.
Definition at line 198 of file oscaroutput.cc.
|
overridevirtual |
Writes a prefix line then write out all current particles.
[in] | particles | Current list of particles. |
[in] | clock | Unused, needed since inherited. |
[in] | dens_param | Unused, needed since inherited. |
Reimplemented from smash::OutputInterface.
Definition at line 236 of file oscaroutput.cc.
|
private |
Write single particle information line to output.
[in] | data | Data of particle. |
Definition at line 704 of file oscaroutput.cc.
|
inlineprivate |
Write the particle information of a list of particles to the output.
One line per particle.
[in] | particles | List of particles to be written |
Definition at line 121 of file oscaroutput.cc.
std::unique_ptr< OutputInterface > smash::create_oscar_output | ( | const std::string & | format, |
const std::string & | content, | ||
const bf::path & | path, | ||
const OutputParameters & | out_par | ||
) |
config
to select the correct implementation.[in] | format | A string: "Oscar2013" or "Oscar1999" |
[in] | content | A string: "Particles", "Collisions", "Photons" or "Dileptons". |
[in] | path | The path to the output directory where the file(s) will be placed. |
[in] | out_par | A structure containing parameters of the output, in particular if it is extended or not, if printing only final particles in event, etc. |
Definition at line 768 of file oscaroutput.cc.
|
private |
Keep track of event number.
Definition at line 128 of file oscaroutput.h.
|
private |
Full filepath of the output file.
Definition at line 131 of file oscaroutput.h.