Thermal-FIST 1.6
Package for hadron resonance gas model applications
Loading...
Searching...
No Matches
thermalfist::HypersurfaceEventGeneratorEVHRG Class Reference

#include <HypersurfaceSampler.h>

Inheritance diagram for thermalfist::HypersurfaceEventGeneratorEVHRG:
thermalfist::HypersurfaceEventGenerator thermalfist::EventGeneratorBase

Public Member Functions

 HypersurfaceEventGeneratorEVHRG (ThermalParticleSystem *TPS, const EventGeneratorConfiguration &config=EventGeneratorConfiguration(), const ParticlizationHypersurface *hypersurface=NULL, double etasmear=0.0, bool shear_correction=false)
 
virtual SimpleEvent GetEvent (bool DoDecays=true) const
 Generates a single event.
 
void SetExcludedVolume (double b)
 
void SetBaryonRadius (double r)
 
- Public Member Functions inherited from thermalfist::HypersurfaceEventGenerator
 HypersurfaceEventGenerator (const ParticlizationHypersurface *hypersurface=NULL, ThermalModelBase *model=NULL, double etasmear=0.0, bool shear_correction=false, bool bulk_correction=false, double speed_of_sound_squared=0.15)
 Construct a new HypersurfaceEventGenerator object.
 
 HypersurfaceEventGenerator (ThermalParticleSystem *TPS, const EventGeneratorConfiguration &config=EventGeneratorConfiguration(), const ParticlizationHypersurface *hypersurface=NULL, const RandomGenerators::HypersurfaceMomentumGenerator::HypersurfaceMomentumGeneratorConfiguration &configMomentumGenerator=RandomGenerators::HypersurfaceMomentumGenerator::HypersurfaceMomentumGeneratorConfiguration())
 Construct a new HypersurfaceEventGenerator object.
 
 HypersurfaceEventGenerator (ThermalParticleSystem *TPS, const EventGeneratorConfiguration &config, const ParticlizationHypersurface *hypersurface, double etasmear, bool shear_correction=false, bool bulk_correction=false, double speed_of_sound_squared=0.15)
 (Deprecated) Construct a new HypersurfaceEventGenerator object
 
virtual ~HypersurfaceEventGenerator ()
 
virtual std::vector< double > GCEMeanYields () const
 Override.
 
virtual std::vector< double > & GCEMeanYields ()
 
void SetModel (ThermalModelBase *model)
 End override.
 
void SetHypersurface (const ParticlizationHypersurface *hypersurface)
 
void SetMomentumGeneratorConfig (const RandomGenerators::HypersurfaceMomentumGenerator::HypersurfaceMomentumGeneratorConfiguration &config)
 
RandomGenerators::HypersurfaceMomentumGenerator::HypersurfaceMomentumGeneratorConfiguration GetMomentumGeneratorConfig () const
 
void SetEtaSmear (double etaSmear)
 
double GetEtaSmear () const
 
void SetShearCorrection (bool shear_correction)
 
bool GetShearCorrection ()
 
void SetBulkCorrection (bool bulk_correction)
 
bool GetBulkCorrection ()
 
void SetSpeedOfSoundSquared (double speed_of_sound_squared)
 
double GetSpeedOfSoundSquared ()
 
void SetRescaleTmu (bool rescale=false, double edens=0.26)
 
- Public Member Functions inherited from thermalfist::EventGeneratorBase
 EventGeneratorBase ()
 Constructor.
 
virtual ~EventGeneratorBase ()
 Destructor.
 
void ClearMomentumGenerators ()
 Clears the momentum generators for all particles.
 
virtual std::pair< std::vector< int >, double > SampleYields () const
 Samples the primordial yields for each particle species.
 
virtual SimpleParticle SampleParticle (int id) const
 Samples the position and momentum of a particle species i.
 
virtual SimpleParticle SampleParticleByPdg (long long pdgid) const
 Samples the position and momentum of a particle species with given pdg code.
 
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.
 
virtual SimpleEvent SampleMomentaWithShuffle (const std::vector< int > &yields) const
 Samples the momenta of the particles and returns the sampled list of particles as an event.
 
void SetVolume (double V)
 Set system volume.
 
void RescaleCEMeans (double Vmod)
 Rescale the precalculated GCE means.
 
ThermalModelBaseThermalModel ()
 Pointer to an underlying GCE Thermal Model.
 
double ComputeWeight (const std::vector< int > &totals) const
 
double ComputeWeightNew (const std::vector< int > &totals) const
 
void SetEVUseSPR (bool EVfastmode)
 
bool EVUseSPR () const
 
const EventGeneratorConfigurationGetConfiguration () const
 
virtual void CheckSetParameters ()
 Sets the hypersurface parameters.
 

Protected Member Functions

virtual void SetParameters ()
 Sets the hypersurface parameters.
 
virtual SimpleEvent SampleParticles (const std::vector< int > &yields) const
 
- Protected Member Functions inherited from thermalfist::HypersurfaceEventGenerator
void SetMomentumGenerators ()
 Sets the hypersurface parameters.
 
void ProcessVolumeElements ()
 Processes the volume elements to calculate the multinomial volume element sampling probabilities and the full-space yields.
 
const std::vector< double > & FullSpaceYields () const
 The computed grand-canonical yields in 4pi.
 
- Protected Member Functions inherited from thermalfist::EventGeneratorBase
void SetConfiguration (ThermalParticleSystem *TPS, const EventGeneratorConfiguration &config)
 Sets the event generator configuration.
 
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
 
std::vector< std::vector< double > > ComputeEVRadii () const
 
bool 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
 

Static Protected Member Functions

static double EVHRGWeight (int sampledN, double meanN, double V, double b)
 
- Static Protected Member Functions inherited from thermalfist::HypersurfaceEventGenerator
static std::vector< std::vector< double > > CalculateTMuMap (ThermalModelBase *model, double edens, double rhomin=0.0, double rhomax=0.27, double drho=0.001)
 Calculates the (T,muB,muS,muQ) values as function of baryon density at fixed constant energy density.
 
static void RescaleHypersurfaceParametersEdens (ParticlizationHypersurface *hypersurface, ThermalModelBase *model, double edens, double rhomin=0.0, double rhomax=0.27, double drho=0.001, double rhocrit=0.16)
 Rescales the hypersurface parameters to match the given energy and baryon density.
 

Additional Inherited Members

- Static Public Member Functions inherited from thermalfist::EventGeneratorBase
static SimpleEvent PerformDecays (const SimpleEvent &evtin, const ThermalParticleSystem *TPS, const DecayerFlags &decayerFlags=DecayerFlags())
 Performs decays of all unstable particles until only stable ones left.
 
- Static Public Attributes inherited from thermalfist::EventGeneratorBase
static int fCEAccepted
 
static int fCETotal
 
- Protected Attributes inherited from thermalfist::EventGeneratorBase
EventGeneratorConfiguration m_Config
 
ThermalModelBasem_THM
 
std::vector< double > m_DensitiesIdeal
 Ideal gas densities used for sampling an interacting HRG.
 
std::vector< RandomGenerators::ParticleMomentumGenerator * > m_MomentumGens
 Vector of momentum generators for each particle species.
 
std::vector< RandomGenerators::ThermalBreitWignerGenerator * > m_BWGens
 
bool m_ParametersSet
 

Detailed Description

Definition at line 495 of file HypersurfaceSampler.h.

Constructor & Destructor Documentation

◆ HypersurfaceEventGeneratorEVHRG()

thermalfist::HypersurfaceEventGeneratorEVHRG::HypersurfaceEventGeneratorEVHRG ( ThermalParticleSystem * TPS,
const EventGeneratorConfiguration & config = EventGeneratorConfiguration(),
const ParticlizationHypersurface * hypersurface = NULL,
double etasmear = 0.0,
bool shear_correction = false )
inline

Definition at line 498 of file HypersurfaceSampler.h.

Member Function Documentation

◆ EVHRGWeight()

double thermalfist::HypersurfaceEventGeneratorEVHRG::EVHRGWeight ( int sampledN,
double meanN,
double V,
double b )
staticprotected

Definition at line 796 of file HypersurfaceSampler.cpp.

◆ GetEvent()

SimpleEvent thermalfist::HypersurfaceEventGeneratorEVHRG::GetEvent ( bool DoDecays = true) const
virtual

Generates a single event.

Parameters
PerformDecaysIf 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
Returns
SimpleEvent The generated event

Reimplemented from thermalfist::HypersurfaceEventGenerator.

Definition at line 771 of file HypersurfaceSampler.cpp.

◆ SampleParticles()

SimpleEvent thermalfist::HypersurfaceEventGeneratorEVHRG::SampleParticles ( const std::vector< int > & yields) const
protectedvirtual

Definition at line 821 of file HypersurfaceSampler.cpp.

◆ SetBaryonRadius()

void thermalfist::HypersurfaceEventGeneratorEVHRG::SetBaryonRadius ( double r)
inline

Definition at line 521 of file HypersurfaceSampler.h.

◆ SetExcludedVolume()

void thermalfist::HypersurfaceEventGeneratorEVHRG::SetExcludedVolume ( double b)
inline

Definition at line 520 of file HypersurfaceSampler.h.

◆ SetParameters()

void thermalfist::HypersurfaceEventGeneratorEVHRG::SetParameters ( )
protectedvirtual

Sets the hypersurface parameters.

Reimplemented from thermalfist::HypersurfaceEventGenerator.

Definition at line 803 of file HypersurfaceSampler.cpp.


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