43 SimpleEvent() { Particles.resize(0); AllParticles.resize(0); PhotonsLeptons.resize(0); weight = 1.; logweight = 0.; }
67 printEnergy(false), printMotherPdg(false), printPhotonsLeptons(false), printDecayEpoch(false) { }
void RapidityBoost(double dY)
Rapidity boost by Y -> Y + dY for all particles.
bool printDecayEpoch
Print the number of succesive decays before the particle was produced.
void writeToFile(std::ofstream &fout, int eventnumber=1)
Writes the event to an output file stream.
Configuration for the event output.
Structure holding information about a single event in the event generator.
bool printEnergy
Output the particle's energy in addition to its 3-momentum.
std::vector< SimpleParticle > AllParticles
Vector of all particles which ever appeared in the event (including those that decay and photons/lept...
std::vector< SimpleParticle > PhotonsLeptons
Vector of all decay photons/leptons.
SimpleEvent()
Default constructor, empty event.
double logweight
Log of the event weight factor.
bool printPhotonsLeptons
Output photons and leptons, if any.
bool printMotherPdg
Output the pdg code of the mother particle.
std::vector< SimpleParticle > Particles
Vector of all final particles in the event.
std::vector< int > DecayMap
void writeToFile(std::ofstream &fout, const EventOutputConfig &config=EventOutputConfig(), int eventnumber=1)
Writes the event to an output file stream.
The main namespace where all classes and functions of the Thermal-FIST library reside.
std::vector< int > DecayMapFinal
Vector for each Particles element pointing to the index of the primordial resonance from which this p...
double weight
Event weight factor.
static SimpleEvent MergeEvents(const SimpleEvent &evt1, const SimpleEvent &evt2)
Merge particles from two events (e.g. two patches, two canonical volumes, etc.)