Thermal-FIST  1.3
Package for hadron resonance gas model applications
CracowFreezeoutEventGenerator.cpp
Go to the documentation of this file.
1 /*
2  * Thermal-FIST package
3  *
4  * Copyright (c) 2019-2019 Volodymyr Vovchenko
5  *
6  * GNU General Public License (GPLv3 or later)
7  */
9 
10 #include <algorithm>
11 
12 #include "HRGBase/xMath.h"
16 
17 namespace thermalfist {
18 
20  {
21  m_THM = NULL;
22  }
23 
25  m_T(T), m_RoverTauH(RoverTauH), m_EtaMax(etamax)
26  {
27  SetConfiguration(TPS, config);
28 
30  }
31 
32  void CracowFreezeoutEventGenerator::SetParameters(double T, double RoverTauH, double etamax)
33  {
34  m_T = T;
35  m_RoverTauH = RoverTauH;
36  m_EtaMax = etamax;
37 
39  }
40 
42  {
44  m_BWGens.resize(0);
45  if (m_THM != NULL) {
46  for (size_t i = 0; i < m_THM->TPS()->Particles().size(); ++i) {
47  const ThermalParticle& part = m_THM->TPS()->Particles()[i];
48  //m_MomentumGens.push_back(new RandomGenerators::CracowFreezeoutMomentumGenerator(m_T, m_RoverTauH, m_EtaMax, part.Mass(), part.Statistics(), m_THM->FullIdealChemicalPotential(i)));
50 
51  double T = m_THM->Parameters().T;
52  double Mu = m_THM->FullIdealChemicalPotential(i);
55  else
57  }
58  }
59  }
60 
61 } // namespace thermalfist
Class for generating mass of resonance in accordance with the constant width Breit-Wigner distributio...
std::vector< RandomGenerators::ParticleMomentumGenerator * > m_MomentumGens
Vector of momentum generators for each particle species.
const ThermalParticle & Particle(int id) const
ThermalParticle object corresponding to particle species with a provided 0-based index.
Class containing the particle list.
Structure containing the thermal event generator configuration.
Energy-dependent Breit-Wigner scheme (eBW)
void SetParameters(double T, double RoverTauH, double etamax)
Sets the momentum distribution parameters.
void SetConfiguration(ThermalParticleSystem *TPS, const EventGeneratorConfiguration &config)
Sets the event generator configuration.
virtual double FullIdealChemicalPotential(int i) const
Chemical potential entering the ideal gas expressions of particle species i.
Contains some extra mathematical functions used in the code.
Class containing all information about a particle specie.
Header with helper excluded-volume class.
const std::vector< ThermalParticle > & Particles() const
Returns the vector of all particle species.
double Mass() const
Particle&#39;s mass [GeV].
std::vector< RandomGenerators::ThermalBreitWignerGenerator * > m_BWGens
Class for generating momentum of a particle in accordance with a longitudinally boost invariant and a...
Energy-dependent Breit-Wigner scheme (eBW) with constant branching ratios when evaluating feeddown...
Class for generating mass of resonance in accordance with the energy-dependent Breit-Wigner distribut...
ThermalParticle::ResonanceWidthIntegration ResonanceWidthIntegrationType() const
const ThermalModelParameters & Parameters() const
void ClearMomentumGenerators()
Clears the momentum generators for all particles.
The main namespace where all classes and functions of the Thermal-FIST library reside.
Implements the Cracow (Hubble-like) freeze-out model parametrization.
ThermalParticleSystem * TPS()
int Statistics() const
Particle&#39;s statistics.