Loading [MathJax]/extensions/tex2jax.js
Thermal-FIST 1.5
Package for hadron resonance gas model applications
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
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.
 
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< SimpleParticleParticles
 Vector of all final particles in the event.
 
std::vector< SimpleParticleAllParticles
 Vector of all particles which ever appeared in the event (including those that decay and photons/leptons)
 
std::vector< SimpleParticlePhotonsLeptons
 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.
 

Detailed Description

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

Examples
cpc4-mcHRG.cpp.

Definition at line 20 of file SimpleEvent.h.

Constructor & Destructor Documentation

◆ SimpleEvent()

thermalfist::SimpleEvent::SimpleEvent ( )
inline

Default constructor, empty event.

Definition at line 44 of file SimpleEvent.h.

Member Function Documentation

◆ MergeEvents()

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 185 of file SimpleEvent.cpp.

◆ RapidityBoost()

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

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

Definition at line 177 of file SimpleEvent.cpp.

◆ writeToFile() [1/2]

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.

◆ writeToFile() [2/2]

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

Writes the event to an output file stream.

Definition at line 81 of file SimpleEvent.h.

◆ writeToFileForSmash()

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.

◆ writeToFileForUrqmd()

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.

Member Data Documentation

◆ AllParticles

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.

◆ DecayMap

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.

◆ DecayMapFinal

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.

◆ logweight

double thermalfist::SimpleEvent::logweight

Log of the event weight factor.

Definition at line 25 of file SimpleEvent.h.

◆ Particles

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

Vector of all final particles in the event.

Examples
cpc4-mcHRG.cpp.

Definition at line 28 of file SimpleEvent.h.

◆ PhotonsLeptons

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

Vector of all decay photons/leptons.

Definition at line 34 of file SimpleEvent.h.

◆ weight

double thermalfist::SimpleEvent::weight

Event weight factor.

Examples
cpc4-mcHRG.cpp.

Definition at line 22 of file SimpleEvent.h.


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