![]() |
Thermal-FIST 1.5
Package for hadron resonance gas model applications
|
Structure holding information about a single event in the event generator. More...
#include <SimpleEvent.h>
Classes | |
struct | EventOutputConfig |
Configuration for the event output. More... | |
Public Member Functions | |
SimpleEvent () | |
Default constructor, empty event. | |
void | RapidityBoost (double dY) |
Rapidity boost by Y -> Y + dY for all particles. | |
void | writeToFile (std::ofstream &fout, const EventOutputConfig &config=EventOutputConfig(), int eventnumber=1) const |
Writes the event to an output file stream. | |
void | writeToFile (std::ofstream &fout, int eventnumber=1) const |
Writes the event to an output file stream. | |
void | writeToFileForUrqmd (std::ofstream &fout) const |
Writes the event in a format suitable for UrQMD afterburner, as described here https://github.com/jbernhard/urqmd-afterburner. | |
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. | |
Static Public Member Functions | |
static SimpleEvent | MergeEvents (const SimpleEvent &evt1, const SimpleEvent &evt2) |
Merge particles from two events (e.g. two patches, two canonical volumes, etc.) | |
Public Attributes | |
double | weight |
Event weight factor. | |
double | logweight |
Log of the event weight factor. | |
std::vector< SimpleParticle > | Particles |
Vector of all final particles in the event. | |
std::vector< SimpleParticle > | AllParticles |
Vector of all particles which ever appeared in the event (including those that decay and photons/leptons) | |
std::vector< SimpleParticle > | PhotonsLeptons |
Vector of all decay photons/leptons. | |
std::vector< int > | DecayMap |
std::vector< int > | DecayMapFinal |
Vector for each Particles element pointing to the index of the primordial resonance from which this particle originated. | |
Structure holding information about a single event in the event generator.
Definition at line 20 of file SimpleEvent.h.
|
inline |
Default constructor, empty event.
Definition at line 44 of file SimpleEvent.h.
|
static |
Merge particles from two events (e.g. two patches, two canonical volumes, etc.)
Definition at line 185 of file SimpleEvent.cpp.
void thermalfist::SimpleEvent::RapidityBoost | ( | double | dY | ) |
Rapidity boost by Y -> Y + dY for all particles.
Definition at line 177 of file SimpleEvent.cpp.
void thermalfist::SimpleEvent::writeToFile | ( | std::ofstream & | fout, |
const EventOutputConfig & | config = EventOutputConfig(), | ||
int | eventnumber = 1 ) const |
Writes the event to an output file stream.
Definition at line 14 of file SimpleEvent.cpp.
|
inline |
Writes the event to an output file stream.
Definition at line 81 of file SimpleEvent.h.
void thermalfist::SimpleEvent::writeToFileForSmash | ( | std::ofstream & | fout, |
const thermalfist::ThermalParticleSystem * | TPS = NULL, | ||
const int | eventnumber = 1 ) const |
Writes the event in a format suitable for SMASH afterburner.
Definition at line 134 of file SimpleEvent.cpp.
void thermalfist::SimpleEvent::writeToFileForUrqmd | ( | std::ofstream & | fout | ) | const |
Writes the event in a format suitable for UrQMD afterburner, as described here https://github.com/jbernhard/urqmd-afterburner.
Definition at line 105 of file SimpleEvent.cpp.
std::vector<SimpleParticle> thermalfist::SimpleEvent::AllParticles |
Vector of all particles which ever appeared in the event (including those that decay and photons/leptons)
Definition at line 31 of file SimpleEvent.h.
std::vector<int> thermalfist::SimpleEvent::DecayMap |
Vector for each AllParticles element pointing to the index of the mother resonance. If the element corresponds to a primordial particle, the id is -1.
Definition at line 38 of file SimpleEvent.h.
std::vector<int> thermalfist::SimpleEvent::DecayMapFinal |
Vector for each Particles element pointing to the index of the primordial resonance from which this particle originated.
Definition at line 41 of file SimpleEvent.h.
double thermalfist::SimpleEvent::logweight |
Log of the event weight factor.
Definition at line 25 of file SimpleEvent.h.
std::vector<SimpleParticle> thermalfist::SimpleEvent::Particles |
Vector of all final particles in the event.
Definition at line 28 of file SimpleEvent.h.
std::vector<SimpleParticle> thermalfist::SimpleEvent::PhotonsLeptons |
Vector of all decay photons/leptons.
Definition at line 34 of file SimpleEvent.h.
double thermalfist::SimpleEvent::weight |