16 fout <<
"Event " << eventnumber << std::endl;
17 fout <<
"Weight: " <<
weight << std::endl;
19 fout << std::setw(20) <<
"pdgid" 20 << std::setw(20) <<
"px[GeV]" 21 << std::setw(20) <<
"py[GeV]" 22 << std::setw(20) <<
"pz[GeV]";
25 fout << std::setw(20) <<
"p0[GeV]";
28 fout << std::setw(20) <<
"mother_pdgid";
31 fout << std::setw(20) <<
"decay_epoch";
35 for (
size_t i = 0; i <
Particles.size(); ++i) {
36 fout << std::setw(20) <<
Particles[i].PDGID
45 fout << std::setw(20) <<
Particles[i].MotherPDGID;
48 fout << std::setw(20) <<
Particles[i].epoch;
53 fout << std::scientific;
80 for (
size_t i = 0; i <
Particles.size(); ++i)
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.
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.
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.)