Classes | |
class | smash::BinaryOutputBase |
Base class for SMASH binary output. More... | |
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::HepMcInterface |
Base class for output handlers that need the HepMC3 structure. More... | |
class | smash::HepMcOutput |
SMASH output to HepMC file. More... | |
class | smash::ICOutput |
SMASH output in ASCII format containing initial conditions for hydrodynamic codes. More... | |
class | smash::OscarOutput< Format, Contents > |
struct | smash::EventInfo |
Structure to contain custom data for output. More... | |
class | smash::OutputInterface |
Abstraction of generic output. More... | |
class | smash::RivetOutput |
SMASH output to Rivet analyses. More... | |
class | smash::RootOutput |
class | smash::ThermodynamicLatticeOutput |
Writes the thermodynamic quantities at lattice points versus time. More... | |
class | smash::ThermodynamicOutput |
Writes the thermodynamic quantities at a specified point versus time. More... | |
class | smash::VtkOutput |
SMASH output in a paraview format, intended for simple visualization. More... | |
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 std::filesystem::path &path, const std::string &name) | |
Create oscar output. More... | |
void | smash::OscarOutput< Format, Contents >::at_eventstart (const Particles &particles, const int event_number, const EventInfo &event) 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, const EventInfo &) 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, const EventInfo &event) 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 std::filesystem::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 std::filesystem::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. |
[in] | event | Event info, see event_info |
Reimplemented from smash::OutputInterface.
Definition at line 126 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] | event | Event info, see event_info |
Reimplemented from smash::OutputInterface.
Definition at line 151 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. |
[in] | event | Event info, see event_info |
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 746 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 119 of file oscaroutput.cc.
std::unique_ptr< OutputInterface > smash::create_oscar_output | ( | const std::string & | format, |
const std::string & | content, | ||
const std::filesystem::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 811 of file oscaroutput.cc.
|
private |
Keep track of event number.
Definition at line 129 of file oscaroutput.h.
|
private |
Full filepath of the output file.
Definition at line 132 of file oscaroutput.h.