Thermal-FIST  1.3
Package for hadron resonance gas model applications
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
thermalfist::SimpleEvent Struct Reference

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. More...
 
void RapidityBoost (double dY)
 Rapidity boost by Y -> Y + dY for all particles. More...
 
void writeToFile (std::ofstream &fout, const EventOutputConfig &config=EventOutputConfig(), int eventnumber=1)
 Writes the event to an output file stream. More...
 
void writeToFile (std::ofstream &fout, int eventnumber=1)
 Writes the event to an output file stream. More...
 

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.) More...
 

Public Attributes

double weight
 Event weight factor. More...
 
double logweight
 Log of the event weight factor. More...
 
std::vector< SimpleParticleParticles
 Vector of all final particles in the event. More...
 
std::vector< SimpleParticleAllParticles
 Vector of all particles which ever appeared in the event (including those that decay and photons/leptons) More...
 
std::vector< SimpleParticlePhotonsLeptons
 Vector of all decay photons/leptons. More...
 
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. More...
 

Detailed Description

Structure holding information about a single event in the event generator.

Examples:
cpc4-mcHRG.cpp.

Definition at line 19 of file SimpleEvent.h.

Constructor & Destructor Documentation

thermalfist::SimpleEvent::SimpleEvent ( )
inline

Default constructor, empty event.

Definition at line 43 of file SimpleEvent.h.

Member Function Documentation

SimpleEvent thermalfist::SimpleEvent::MergeEvents ( const SimpleEvent evt1,
const SimpleEvent evt2 
)
static

Merge particles from two events (e.g. two patches, two canonical volumes, etc.)

Definition at line 84 of file SimpleEvent.cpp.

void thermalfist::SimpleEvent::RapidityBoost ( double  dY)

Rapidity boost by Y -> Y + dY for all particles.

Definition at line 78 of file SimpleEvent.cpp.

void thermalfist::SimpleEvent::writeToFile ( std::ofstream &  fout,
const EventOutputConfig config = EventOutputConfig(),
int  eventnumber = 1 
)

Writes the event to an output file stream.

Definition at line 14 of file SimpleEvent.cpp.

void thermalfist::SimpleEvent::writeToFile ( std::ofstream &  fout,
int  eventnumber = 1 
)
inline

Writes the event to an output file stream.

Definition at line 74 of file SimpleEvent.h.

Member Data Documentation

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 30 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 37 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 40 of file SimpleEvent.h.

double thermalfist::SimpleEvent::logweight

Log of the event weight factor.

Definition at line 24 of file SimpleEvent.h.

std::vector<SimpleParticle> thermalfist::SimpleEvent::Particles

Vector of all final particles in the event.

Examples:
cpc4-mcHRG.cpp.

Definition at line 27 of file SimpleEvent.h.

std::vector<SimpleParticle> thermalfist::SimpleEvent::PhotonsLeptons

Vector of all decay photons/leptons.

Definition at line 33 of file SimpleEvent.h.

double thermalfist::SimpleEvent::weight

Event weight factor.

Examples:
cpc4-mcHRG.cpp.

Definition at line 21 of file SimpleEvent.h.


The documentation for this struct was generated from the following files: