Base class for generating events with the Thermal Event Generator.
More...
#include <EventGeneratorBase.h>
Base class for generating events with the Thermal Event Generator.
Definition at line 123 of file EventGeneratorBase.h.
◆ EventGeneratorBase()
thermalfist::EventGeneratorBase::EventGeneratorBase |
( |
| ) |
|
◆ ~EventGeneratorBase()
thermalfist::EventGeneratorBase::~EventGeneratorBase |
( |
| ) |
|
|
virtual |
◆ CheckEVOverlap()
bool thermalfist::EventGeneratorBase::CheckEVOverlap |
( |
const std::vector< SimpleParticle > & | evt, |
|
|
const SimpleParticle & | cand, |
|
|
const std::vector< int > & | ids = std::vector<int>(), |
|
|
const std::vector< std::vector< double > > & | radii = std::vector<std::vector<double>>() ) const |
|
protected |
◆ CheckSetParameters()
virtual void thermalfist::EventGeneratorBase::CheckSetParameters |
( |
| ) |
|
|
inlinevirtual |
◆ ClearMomentumGenerators()
void thermalfist::EventGeneratorBase::ClearMomentumGenerators |
( |
| ) |
|
◆ ComputeEVRadii()
std::vector< std::vector< double > > thermalfist::EventGeneratorBase::ComputeEVRadii |
( |
| ) |
const |
|
protected |
◆ ComputeWeight()
double thermalfist::EventGeneratorBase::ComputeWeight |
( |
const std::vector< int > & | totals | ) |
const |
◆ ComputeWeightNew()
double thermalfist::EventGeneratorBase::ComputeWeightNew |
( |
const std::vector< int > & | totals | ) |
const |
◆ EVUseSPR()
bool thermalfist::EventGeneratorBase::EVUseSPR |
( |
| ) |
const |
|
inline |
◆ GCEMeanYields()
std::vector< double > thermalfist::EventGeneratorBase::GCEMeanYields |
( |
| ) |
const |
|
virtual |
◆ GenerateTotals()
std::vector< int > thermalfist::EventGeneratorBase::GenerateTotals |
( |
| ) |
const |
|
protected |
Samples the multiplicities of all the particle species from the given statistical ensemble
- Returns
- A vector of the sampled multiplicities
Definition at line 428 of file EventGeneratorBase.cpp.
◆ GenerateTotalsCCE()
std::vector< int > thermalfist::EventGeneratorBase::GenerateTotalsCCE |
( |
| ) |
const |
|
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
- Returns
- A vector of the sampled multiplicities
Definition at line 674 of file EventGeneratorBase.cpp.
◆ GenerateTotalsCCESubVolume()
std::vector< int > thermalfist::EventGeneratorBase::GenerateTotalsCCESubVolume |
( |
double | VolumeSC | ) |
const |
|
protected |
Samples the multiplicities of all the particle species from the charm-canonical ensemble with the specified (sub)system volume
- Parameters
-
VolumeSC | The (canonical) system volume |
- Returns
- A vector of the sampled multiplicities
Definition at line 801 of file EventGeneratorBase.cpp.
◆ GenerateTotalsCE()
std::vector< int > thermalfist::EventGeneratorBase::GenerateTotalsCE |
( |
| ) |
const |
|
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]
- Returns
- A vector of the sampled multiplicities
Definition at line 924 of file EventGeneratorBase.cpp.
◆ GenerateTotalsGCE()
std::vector< int > thermalfist::EventGeneratorBase::GenerateTotalsGCE |
( |
| ) |
const |
|
protected |
Samples the multiplicities of all the particle species from the grand canonical ensemble
- Returns
- A vector of the sampled multiplicities
Definition at line 463 of file EventGeneratorBase.cpp.
◆ GenerateTotalsSCE()
std::vector< int > thermalfist::EventGeneratorBase::GenerateTotalsSCE |
( |
| ) |
const |
|
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
- Returns
- A vector of the sampled multiplicities
Definition at line 483 of file EventGeneratorBase.cpp.
◆ GenerateTotalsSCESubVolume()
std::vector< int > thermalfist::EventGeneratorBase::GenerateTotalsSCESubVolume |
( |
double | VolumeSC | ) |
const |
|
protected |
Samples the multiplicities of all the particle species from the strangeness-canonical ensemble with the specified (sub)system volume
- Parameters
-
VolumeSC | The system volume |
- Returns
- A vector of the sampled multiplicities
Definition at line 607 of file EventGeneratorBase.cpp.
◆ GetConfiguration()
◆ GetEvent()
SimpleEvent thermalfist::EventGeneratorBase::GetEvent |
( |
bool | PerformDecays = true | ) |
const |
|
virtual |
◆ PerformDecays()
Performs decays of all unstable particles until only stable ones left.
- Parameters
-
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. |
DecayerFlags | Extra flags and options |
- Returns
- A SimpleEvent instance containing all particles after resonance decays.
Definition at line 1426 of file EventGeneratorBase.cpp.
◆ PrepareMultinomials()
void thermalfist::EventGeneratorBase::PrepareMultinomials |
( |
| ) |
|
|
protected |
Prepares the parameters of multinomial distribution used for sampling the yields in the canonical ensemble
Definition at line 330 of file EventGeneratorBase.cpp.
◆ RescaleCEMeans()
void thermalfist::EventGeneratorBase::RescaleCEMeans |
( |
double | Vmod | ) |
|
Rescale the precalculated GCE means.
Called when the system volume is changed
Definition at line 1598 of file EventGeneratorBase.cpp.
◆ SampleMomenta()
SimpleEvent thermalfist::EventGeneratorBase::SampleMomenta |
( |
const std::vector< int > & | yields | ) |
const |
|
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.
- Parameters
-
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. |
- Returns
- SimpleEvent The generated event containing the primordial particles.
Definition at line 1198 of file EventGeneratorBase.cpp.
◆ SampleMomentaWithShuffle()
SimpleEvent thermalfist::EventGeneratorBase::SampleMomentaWithShuffle |
( |
const std::vector< int > & | yields | ) |
const |
|
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.
Same as SampleMomenta() but randomly shuffles the order particles + implements baryon hard-core radius
- Parameters
-
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. |
- Returns
- SimpleEvent The generated event containing the primordial particles.
Definition at line 1235 of file EventGeneratorBase.cpp.
◆ SampleParticle()
SimpleParticle thermalfist::EventGeneratorBase::SampleParticle |
( |
int | id | ) |
const |
|
virtual |
Samples the position and momentum of a particle species i.
- Parameters
-
id | Id (0-indexed) of the particle species to be sampled |
- Returns
- SimpleParticle The sampled particle.
Definition at line 1168 of file EventGeneratorBase.cpp.
◆ SampleParticleByPdg()
SimpleParticle thermalfist::EventGeneratorBase::SampleParticleByPdg |
( |
long long | pdgid | ) |
const |
|
virtual |
Samples the position and momentum of a particle species with given pdg code.
Calls SampleParticle() if pdg code is valid. Throws an errors and quits otherwise.
- Parameters
-
ppdgid | PDG code of the particle species to be sampled |
- Returns
- SimpleParticle The sampled particle.
Definition at line 1189 of file EventGeneratorBase.cpp.
◆ SampleYields()
std::pair< std::vector< int >, double > thermalfist::EventGeneratorBase::SampleYields |
( |
| ) |
const |
|
virtual |
Samples the primordial yields for each particle species.
- Returns
- pair< std::vector<int>, double > The sampled yields. The first element is a vector of the sampled yields. The second element is the weight.
Definition at line 1160 of file EventGeneratorBase.cpp.
◆ SetConfiguration()
Sets the event generator configuration.
Must be called before generating any events.
- Parameters
-
TPS | Pointer to a particle list object |
config | Event generator configuration |
Definition at line 88 of file EventGeneratorBase.cpp.
◆ SetEVUseSPR()
void thermalfist::EventGeneratorBase::SetEVUseSPR |
( |
bool | EVfastmode | ) |
|
|
inline |
◆ SetMomentumGenerators()
virtual void thermalfist::EventGeneratorBase::SetMomentumGenerators |
( |
| ) |
|
|
inlinevirtual |
◆ SetParameters()
void thermalfist::EventGeneratorBase::SetParameters |
( |
| ) |
|
|
protectedvirtual |
◆ SetVolume()
void thermalfist::EventGeneratorBase::SetVolume |
( |
double | V | ) |
|
◆ ThermalModel()
◆ fCEAccepted
int thermalfist::EventGeneratorBase::fCEAccepted |
|
static |
Helper variable to monitor the Acceptance rate of the rejection sampling used for canonical ensemble and/or eigenvolumes.
Definition at line 237 of file EventGeneratorBase.h.
◆ fCETotal
int thermalfist::EventGeneratorBase::fCETotal |
|
static |
◆ m_BWGens
Vector of particle mass generators for each particle species Used if finite resonance widths are considered
Definition at line 348 of file EventGeneratorBase.h.
◆ m_Config
◆ m_DensitiesIdeal
std::vector<double> thermalfist::EventGeneratorBase::m_DensitiesIdeal |
|
protected |
◆ m_MomentumGens
◆ m_ParametersSet
bool thermalfist::EventGeneratorBase::m_ParametersSet |
|
protected |
◆ m_THM
The documentation for this class was generated from the following files: