#include <oscaroutput.h>
| Format | Determines the variant of OSCAR formatting that is used. See OscarOutputFormat. |
| Contents | Determines what information will be written to file. This integer is a bitflag that can be constructed from ORing enumerators from OscarOutputContents together. |
Definition at line 61 of file oscaroutput.h.
Public Member Functions | |
| OscarOutput (const bf::path &path, const std::string &name) | |
| Create oscar output. More... | |
| void | at_eventstart (const Particles &particles, const int event_number) override |
| Writes the initial particle information of an event to the oscar output. More... | |
| void | at_eventend (const Particles &particles, const int event_number, double impact_parameter) override |
| Writes the final particle information of an event to the oscar output. More... | |
| void | 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 | at_intermediate_time (const Particles &particles, const Clock &clock, const DensityParameters &dens_param) override |
| Writes a prefix line then write out all current particles. More... | |
Public Member Functions inherited from smash::OutputInterface | |
| OutputInterface (std::string name) | |
| Construct output interface. More... | |
| virtual | ~OutputInterface ()=default |
| virtual void | thermodynamics_output (const ThermodynamicQuantity tq, const DensityType dt, RectangularLattice< DensityOnLattice > &lattice) |
| Output to write thermodynamics from the lattice. More... | |
| virtual void | thermodynamics_output (const ThermodynamicQuantity tq, const DensityType dt, RectangularLattice< EnergyMomentumTensor > &lattice) |
| Output to write energy-momentum tensor and related quantities from the lattice. More... | |
| virtual void | thermodynamics_output (const GrandCanThermalizer &gct) |
| Output to write energy-momentum tensor and related quantities from the thermalizer class. More... | |
| bool | is_dilepton_output () const |
| Get, whether this is the dilepton output? More... | |
| bool | is_photon_output () const |
| Get, whether this is the photon output? More... | |
| const char * | to_string (const ThermodynamicQuantity tq) |
| Convert thermodynamic quantities to strings. More... | |
| const char * | to_string (const DensityType dens_type) |
| Convert density types to strings. More... | |
Private Member Functions | |
| void | write_particledata (const ParticleData &data) |
| Write single particle information line to output. More... | |
| void | write (const Particles &particles) |
| Write the particle information of a list of particles to the output. More... | |
Private Attributes | |
| int | current_event_ = 0 |
| Keep track of event number. More... | |
| RenamingFilePtr | file_ |
| Full filepath of the output file. More... | |
Additional Inherited Members | |
Protected Attributes inherited from smash::OutputInterface | |
| const bool | is_dilepton_output_ |
| Is this the dilepton output? More... | |
| const bool | is_photon_output_ |
| Is this the photon output? More... | |
| 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 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] | impact_parameter | Impact parameter of this event. |
Implements smash::OutputInterface.
Definition at line 146 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 177 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 211 of file oscaroutput.cc.
|
private |
Write single particle information line to output.
| [in] | data | Data of particle. |
Definition at line 670 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.
|
private |
Keep track of event number.
Definition at line 121 of file oscaroutput.h.
|
private |
Full filepath of the output file.
Definition at line 124 of file oscaroutput.h.