78 void writeToFile(std::ofstream& fout,
const EventOutputConfig& config = EventOutputConfig(),
int eventnumber = 1)
const;
Class containing the particle list.
The main namespace where all classes and functions of the Thermal-FIST library reside.
Configuration for the event output.
bool printCoordinates
Print the space-time coordinates of the particles.
bool printDecayEpoch
Print the number of successive decays before the particle was produced.
bool printWeight
Print the event weight for importance sampling.
bool printMotherPdg
Output the pdg code of the mother particle.
bool printPhotonsLeptons
Output photons and leptons, if any.
bool printEnergy
Output the particle's energy in addition to its 3-momentum.
Structure holding information about a single event in the event generator.
static SimpleEvent MergeEvents(const SimpleEvent &evt1, const SimpleEvent &evt2)
Merge particles from two events (e.g. two patches, two canonical volumes, etc.)
SimpleEvent()
Default constructor, empty event.
double weight
Event weight factor.
std::vector< SimpleParticle > Particles
Vector of all final particles in the event.
void writeToFile(std::ofstream &fout, int eventnumber=1) const
Writes the event to an output file stream.
double logweight
Log of the event weight factor.
std::vector< SimpleParticle > AllParticles
Vector of all particles which ever appeared in the event (including those that decay and photons/lept...
void RapidityBoost(double dY)
Rapidity boost by Y -> Y + dY for all particles.
std::vector< int > DecayMap
std::vector< SimpleParticle > PhotonsLeptons
Vector of all decay photons/leptons.
std::vector< int > DecayMapFinal
Vector for each Particles element pointing to the index of the primordial resonance from which this p...
void writeToFileForUrqmd(std::ofstream &fout) const
Writes the event in a format suitable for UrQMD afterburner, as described here https://github....
void writeToFileForSmash(std::ofstream &fout, const thermalfist::ThermalParticleSystem *TPS=NULL, const int eventnumber=1) const
Writes the event in a format suitable for SMASH afterburner.
void writeToFile(std::ofstream &fout, const EventOutputConfig &config=EventOutputConfig(), int eventnumber=1) const
Writes the event to an output file stream.