Thermal-FIST
1.3
Package for hadron resonance gas model applications
|
Base class for generating events with the Thermal Event Generator. More...
#include <EventGeneratorBase.h>
Public Member Functions | |
EventGeneratorBase () | |
Constructor. More... | |
virtual | ~EventGeneratorBase () |
Destructor. More... | |
void | ClearMomentumGenerators () |
Clears the momentum generators for all particles. More... | |
void | SetCollisionKineticEnergy (double ekin) |
Sets the projectile laboratory kinetic energy per nucleon of the collision. More... | |
void | SetCollisionLabEnergy (double elab) |
Sets the projectile laboratory energy per nucleon of the collision. More... | |
void | SetCollisionCMSEnergy (double ssqrt) |
Sets the center of mass energy \( \sqrt{s_{_{NN}}} \) of the collision. More... | |
double | getYcm () const |
The y-pT acceptance map (not used by default). More... | |
std::pair< std::vector< int >, double > | SampleYields () const |
Samples the primordial yields for each particle species. More... | |
virtual SimpleEvent | SampleMomenta (const std::vector< int > &yields) const |
Samples the momenta of the particles and returns the sampled list of particles as an event. More... | |
virtual SimpleEvent | GetEvent (bool PerformDecays=true) const |
Generates a single event. More... | |
void | SetVolume (double V) |
Set system volume. More... | |
void | RescaleCEMeans (double Vmod) |
Rescale the precalculated GCE means. More... | |
Static Public Member Functions | |
static SimpleEvent | PerformDecays (const SimpleEvent &evtin, ThermalParticleSystem *TPS) |
Performs decays of all unstable particles until only stable ones left. More... | |
Static Public Attributes | |
static int | fCEAccepted |
static int | fCETotal |
Protected Member Functions | |
void | SetConfiguration (ThermalParticleSystem *TPS, const EventGeneratorConfiguration &config) |
Sets the event generator configuration. More... | |
void | PrepareMultinomials () |
std::vector< int > | GenerateTotals () const |
std::vector< int > | GenerateTotalsGCE () const |
std::vector< int > | GenerateTotalsCE () const |
std::vector< int > | GenerateTotalsSCE () const |
std::vector< int > | GenerateTotalsSCESubVolume (double VolumeSC) const |
std::vector< int > | GenerateTotalsCCE () const |
std::vector< int > | GenerateTotalsCCESubVolume (double VolumeSC) const |
Protected Attributes | |
EventGeneratorConfiguration | m_Config |
ThermalModelBase * | m_THM |
std::vector< double > | m_DensitiesIdeal |
Ideal gas densities used for sampling an interacting HRG. More... | |
std::vector< RandomGenerators::ParticleMomentumGenerator * > | m_MomentumGens |
Vector of momentum generators for each particle species. More... | |
std::vector< RandomGenerators::ThermalBreitWignerGenerator * > | m_BWGens |
Base class for generating events with the Thermal Event Generator.
Definition at line 89 of file EventGeneratorBase.h.
|
inline |
Constructor.
Definition at line 93 of file EventGeneratorBase.h.
|
virtual |
Destructor.
Definition at line 30 of file EventGeneratorBase.cpp.
void thermalfist::EventGeneratorBase::ClearMomentumGenerators | ( | ) |
Clears the momentum generators for all particles.
Definition at line 35 of file EventGeneratorBase.cpp.
|
protected |
Samples the multiplicities of all the particle species from the given statistical ensemble
Definition at line 357 of file EventGeneratorBase.cpp.
|
protected |
Samples the multiplicities of all the particle species from the charm-canonical ensemble
Takes into account the case when the strangeness correlation volume is different from the total volume
Definition at line 729 of file EventGeneratorBase.cpp.
|
protected |
Samples the multiplicities of all the particle species from the charm-canonical ensemble with the specified (sub)system volume
VolumeSC | The (canonical) system volume |
Definition at line 857 of file EventGeneratorBase.cpp.
|
protected |
Samples the multiplicities of all the particle species from the canonical ensemble
Uses rejection sampling, and the multi-step procedure from F. Becattini, L. Ferroni, Eur. Phys. J. C38, 225 (2004) [hep-ph/0407117]
Definition at line 918 of file EventGeneratorBase.cpp.
|
protected |
Samples the multiplicities of all the particle species from the grand canonical ensemble
Definition at line 521 of file EventGeneratorBase.cpp.
|
protected |
Samples the multiplicities of all the particle species from the strangeness-canonical ensemble
Takes into account the case when the strangeness correlation volume is different from the total volume
Definition at line 538 of file EventGeneratorBase.cpp.
|
protected |
Samples the multiplicities of all the particle species from the strangeness-canonical ensemble with the specified (sub)system volume
VolumeSC | The system volume |
Definition at line 662 of file EventGeneratorBase.cpp.
|
virtual |
Generates a single event.
PerformDecays | If set to true, the decays of all particles marked unstable are performed until only stable particles remain. Otherwise only primordial particles are generated and appear in the output |
Definition at line 1203 of file EventGeneratorBase.cpp.
|
inline |
The y-pT acceptance map (not used by default).
Read the acceptance map from file. The center-of-mass longitudinal rapidity relative to the lab frame.
Definition at line 127 of file EventGeneratorBase.h.
|
static |
Performs decays of all unstable particles until only stable ones left.
evtin | An event structure contains the list of all the primordial particles. |
TPS | Pointer to the particle list instance that contains all the decay properties. |
Definition at line 1352 of file EventGeneratorBase.cpp.
|
protected |
Prepares the parameters of multinomial distribution used for sampling the yields in the canonical ensemble
Definition at line 260 of file EventGeneratorBase.cpp.
void thermalfist::EventGeneratorBase::RescaleCEMeans | ( | double | Vmod | ) |
Rescale the precalculated GCE means.
Called when the system volume is changed
Definition at line 1469 of file EventGeneratorBase.cpp.
|
virtual |
Samples the momenta of the particles and returns the sampled list of particles as an event.
The sampled SimpleEvent is assigned the weight of unity. This weight should be overriden if importance sampling is used.
yields | Vector of yields for each particle species for the given event. Make sure the indices match the particle list pointed to by m_THM. |
Definition at line 1158 of file EventGeneratorBase.cpp.
std::pair< std::vector< int >, double > thermalfist::EventGeneratorBase::SampleYields | ( | ) | const |
Samples the primordial yields for each particle species.
Definition at line 1150 of file EventGeneratorBase.cpp.
|
inline |
Sets the center of mass energy \( \sqrt{s_{_{NN}}} \) of the collision.
Definition at line 112 of file EventGeneratorBase.h.
|
inline |
Sets the projectile laboratory kinetic energy per nucleon of the collision.
Definition at line 102 of file EventGeneratorBase.h.
|
inline |
Sets the projectile laboratory energy per nucleon of the collision.
Definition at line 107 of file EventGeneratorBase.h.
|
protected |
Sets the event generator configuration.
Must be called before generating any events.
TPS | Pointer to a particle list object |
config | Event generator configuration |
Definition at line 51 of file EventGeneratorBase.cpp.
void thermalfist::EventGeneratorBase::SetVolume | ( | double | V | ) |
Set system volume.
Can be used to include volume fluctuations
Definition at line 1459 of file EventGeneratorBase.cpp.
|
static |
Helper variable to monitor the Acceptance rate of the rejection sampling used for canonical ensemble and/or eigenvolumes.
Definition at line 175 of file EventGeneratorBase.h.
|
static |
Definition at line 175 of file EventGeneratorBase.h.
|
protected |
Vector of particle mass generators for each particle species Used if finite resonance widths are considered
Definition at line 269 of file EventGeneratorBase.h.
|
protected |
Definition at line 258 of file EventGeneratorBase.h.
|
protected |
Ideal gas densities used for sampling an interacting HRG.
Definition at line 262 of file EventGeneratorBase.h.
|
protected |
Vector of momentum generators for each particle species.
Definition at line 265 of file EventGeneratorBase.h.
|
protected |
Definition at line 259 of file EventGeneratorBase.h.