BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
MpdHypYPtGenerator Class Reference

#include <MpdHypYPtGenerator.h>

Inheritance diagram for MpdHypYPtGenerator:
Collaboration diagram for MpdHypYPtGenerator:

Public Member Functions

 MpdHypYPtGenerator ()
 Default constructor.
 MpdHypYPtGenerator (Int_t pdgid, Int_t mult=1, Double_t yield=-1.0)
 Constructor with PDG-ID, multiplicity.
virtual ~MpdHypYPtGenerator ()
 Destructor.
void SetPDGType (Int_t pdg)
 Modifiers.
void SetMultiplicity (Int_t mult)
void SetDistributionPt (Double_t T=0.223)
void SetDistributionY (Double_t y0=0, Double_t sigma=0.72)
void SetRangePt (Double_t ptMin=0, Double_t ptMax=3)
Bool_t Init ()
 Initializer.
virtual Bool_t ReadEvent (FairPrimaryGenerator *primGen)
 Creates an event with given type and multiplicity.
 MpdHypYPtGenerator ()
 Default constructor.
 MpdHypYPtGenerator (Int_t pdgid, Int_t mult=1, Double_t yield=-1.0)
 Constructor with PDG-ID, multiplicity.
virtual ~MpdHypYPtGenerator ()
 Destructor.
void SetPDGType (Int_t pdg)
 Modifiers.
void SetMultiplicity (Int_t mult)
void SetDistributionPt (Double_t T=0.223)
void SetDistributionY (Double_t y0=0, Double_t sigma=0.72)
void SetRangePt (Double_t ptMin=0, Double_t ptMax=3)
Bool_t Init ()
 Initializer.
virtual Bool_t ReadEvent (FairPrimaryGenerator *primGen)
 Creates an event with given type and multiplicity.

Private Attributes

Int_t fPDGType
 Particle type (PDG encoding).
Int_t fMult
 Multiplicity.
Double_t fT
 Temperature in the Pt distribution.
Double_t fY0
 Mean rapidity.
Double_t fSigma
 Simga in the rapidity distribution.
Double_t fPtMin
 Max value of Pt.
Double_t fPtMax
 Min value of Pt.
Double_t fPDGMass
 Particle mass [GeV].
TF1 * fDistPt
Double_t fYield
 Pointer to the Pt function.

Detailed Description

Definition at line 26 of file MpdHypYPtGenerator.h.

Constructor & Destructor Documentation

◆ MpdHypYPtGenerator() [1/4]

MpdHypYPtGenerator::MpdHypYPtGenerator ( )

Definition at line 17 of file MpdHypYPtGenerator.cxx.

References fMult, and fPDGType.

Referenced by ReadEvent().

Here is the caller graph for this function:

◆ MpdHypYPtGenerator() [2/4]

MpdHypYPtGenerator::MpdHypYPtGenerator ( Int_t pdgid,
Int_t mult = 1,
Double_t yield = -1.0 )
Parameters
pdgidParticle type (PDG encoding)
multMultiplicity (default is 1)
yield

Definition at line 27 of file MpdHypYPtGenerator.cxx.

References fMult, fPDGType, fYield, SetDistributionPt(), SetDistributionY(), and SetRangePt().

Here is the call graph for this function:

◆ ~MpdHypYPtGenerator() [1/2]

virtual MpdHypYPtGenerator::~MpdHypYPtGenerator ( )
inlinevirtual

Definition at line 40 of file MpdHypYPtGenerator.h.

◆ MpdHypYPtGenerator() [3/4]

MpdHypYPtGenerator::MpdHypYPtGenerator ( )

◆ MpdHypYPtGenerator() [4/4]

MpdHypYPtGenerator::MpdHypYPtGenerator ( Int_t pdgid,
Int_t mult = 1,
Double_t yield = -1.0 )
Parameters
pdgidParticle type (PDG encoding)
multMultiplicity (default is 1)
yield

◆ ~MpdHypYPtGenerator() [2/2]

virtual MpdHypYPtGenerator::~MpdHypYPtGenerator ( )
inlinevirtual

Definition at line 40 of file MpdHypYPtGenerator.h.

Member Function Documentation

◆ Init() [1/2]

Bool_t MpdHypYPtGenerator::Init ( )

Definition at line 40 of file MpdHypYPtGenerator.cxx.

References fDistPt, fPDGMass, fPDGType, fPtMax, fPtMin, fSigma, fT, fY0, TDatabasePDG::GetParticle(), TDatabasePDG::Instance(), and TParticlePDG::Mass().

Here is the call graph for this function:

◆ Init() [2/2]

Bool_t MpdHypYPtGenerator::Init ( )

◆ ReadEvent() [1/2]

Bool_t MpdHypYPtGenerator::ReadEvent ( FairPrimaryGenerator * primGen)
virtual
Parameters
primGenpointer to the CbmPrimaryGenerator

Definition at line 60 of file MpdHypYPtGenerator.cxx.

References TMath::Cos(), fDistPt, fMult, fPDGMass, fPDGType, fPtMax, fPtMin, fSigma, fY0, fYield, TMath::Sin(), TMath::SinH(), TMath::Sqrt(), TMath::TwoPi(), and y.

Here is the call graph for this function:

◆ ReadEvent() [2/2]

virtual Bool_t MpdHypYPtGenerator::ReadEvent ( FairPrimaryGenerator * primGen)
virtual
Parameters
primGenpointer to the CbmPrimaryGenerator

References MpdHypYPtGenerator(), fDistPt, fMult, fPDGMass, fPDGType, fPtMax, fPtMin, fSigma, fT, fY0, and fYield.

Here is the call graph for this function:

◆ SetDistributionPt() [1/2]

void MpdHypYPtGenerator::SetDistributionPt ( Double_t T = 0.223)
inline

Definition at line 46 of file MpdHypYPtGenerator.h.

References fT.

Referenced by MpdHypYPtGenerator(), and run_sim().

Here is the caller graph for this function:

◆ SetDistributionPt() [2/2]

void MpdHypYPtGenerator::SetDistributionPt ( Double_t T = 0.223)
inline

Definition at line 46 of file MpdHypYPtGenerator.h.

References fT.

◆ SetDistributionY() [1/2]

void MpdHypYPtGenerator::SetDistributionY ( Double_t y0 = 0,
Double_t sigma = 0.72 )
inline

Definition at line 48 of file MpdHypYPtGenerator.h.

References fSigma, and fY0.

Referenced by MpdHypYPtGenerator(), and run_sim().

Here is the caller graph for this function:

◆ SetDistributionY() [2/2]

void MpdHypYPtGenerator::SetDistributionY ( Double_t y0 = 0,
Double_t sigma = 0.72 )
inline

Definition at line 48 of file MpdHypYPtGenerator.h.

References fSigma, and fY0.

◆ SetMultiplicity() [1/2]

void MpdHypYPtGenerator::SetMultiplicity ( Int_t mult)
inline

Definition at line 44 of file MpdHypYPtGenerator.h.

References fMult.

◆ SetMultiplicity() [2/2]

void MpdHypYPtGenerator::SetMultiplicity ( Int_t mult)
inline

Definition at line 44 of file MpdHypYPtGenerator.h.

References fMult.

◆ SetPDGType() [1/2]

void MpdHypYPtGenerator::SetPDGType ( Int_t pdg)
inline

Definition at line 43 of file MpdHypYPtGenerator.h.

References fPDGType.

◆ SetPDGType() [2/2]

void MpdHypYPtGenerator::SetPDGType ( Int_t pdg)
inline

Definition at line 43 of file MpdHypYPtGenerator.h.

References fPDGType.

◆ SetRangePt() [1/2]

void MpdHypYPtGenerator::SetRangePt ( Double_t ptMin = 0,
Double_t ptMax = 3 )
inline

Definition at line 53 of file MpdHypYPtGenerator.h.

References fPtMax, and fPtMin.

Referenced by MpdHypYPtGenerator().

Here is the caller graph for this function:

◆ SetRangePt() [2/2]

void MpdHypYPtGenerator::SetRangePt ( Double_t ptMin = 0,
Double_t ptMax = 3 )
inline

Definition at line 53 of file MpdHypYPtGenerator.h.

References fPtMax, and fPtMin.

Member Data Documentation

◆ fDistPt

TF1 * MpdHypYPtGenerator::fDistPt
private

Definition at line 76 of file MpdHypYPtGenerator.h.

Referenced by Init(), and ReadEvent().

◆ fMult

Int_t MpdHypYPtGenerator::fMult
private

◆ fPDGMass

Double_t MpdHypYPtGenerator::fPDGMass
private

Definition at line 75 of file MpdHypYPtGenerator.h.

Referenced by Init(), and ReadEvent().

◆ fPDGType

Int_t MpdHypYPtGenerator::fPDGType
private

◆ fPtMax

Double_t MpdHypYPtGenerator::fPtMax
private

Definition at line 74 of file MpdHypYPtGenerator.h.

Referenced by Init(), ReadEvent(), and SetRangePt().

◆ fPtMin

Double_t MpdHypYPtGenerator::fPtMin
private

Definition at line 73 of file MpdHypYPtGenerator.h.

Referenced by Init(), ReadEvent(), and SetRangePt().

◆ fSigma

Double_t MpdHypYPtGenerator::fSigma
private

Definition at line 72 of file MpdHypYPtGenerator.h.

Referenced by Init(), ReadEvent(), and SetDistributionY().

◆ fT

Double_t MpdHypYPtGenerator::fT
private

Definition at line 70 of file MpdHypYPtGenerator.h.

Referenced by Init(), ReadEvent(), and SetDistributionPt().

◆ fY0

Double_t MpdHypYPtGenerator::fY0
private

Definition at line 71 of file MpdHypYPtGenerator.h.

Referenced by Init(), ReadEvent(), and SetDistributionY().

◆ fYield

Double_t MpdHypYPtGenerator::fYield
private

yield (particle / event)

Definition at line 77 of file MpdHypYPtGenerator.h.

Referenced by MpdHypYPtGenerator(), and ReadEvent().


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