CbmRoot
CbmLitPolarizedGenerator Class Reference

#include <CbmLitPolarizedGenerator.h>

Inheritance diagram for CbmLitPolarizedGenerator:
[legend]
Collaboration diagram for CbmLitPolarizedGenerator:
[legend]

Public Types

enum  Frame_t { kNoPol = 0, kColSop = 1, kHelicity = 2 }
 
enum  DecayMode_t { kDiElectron = 1, kDiMuon = 2 }
 

Public Member Functions

 CbmLitPolarizedGenerator ()
 
 CbmLitPolarizedGenerator (Int_t pdgid, Int_t mult=1)
 
virtual ~CbmLitPolarizedGenerator ()
 
Bool_t GenerateDaughters (const TVector3 p, FairPrimaryGenerator *primGen)
 
void SetPDGType (Int_t pdg)
 
void SetMultiplicity (Int_t mult)
 
void SetDistributionPt (Double_t T=0.154319, Double_t mass=-1.)
 
void SetDistributionY (Double_t y0=1.98604, Double_t sigma=0.617173)
 
void SetRangePt (Double_t ptMin=0, Double_t ptMax=3)
 
void SetRangeY (Double_t yMin=0, Double_t yMax=4)
 
void SetAlpha (Double_t alpha=0)
 
void SetRefFrame (Frame_t frame=kColSop)
 
void SetDecayMode (DecayMode_t decayMode=kDiMuon)
 
void SetBeamMomentum (Double_t mom)
 
void SetBox (Bool_t box)
 
Bool_t Init ()
 
virtual Bool_t ReadEvent (FairPrimaryGenerator *primGen)
 

Private Member Functions

 CbmLitPolarizedGenerator (const CbmLitPolarizedGenerator &)
 
CbmLitPolarizedGeneratoroperator= (const CbmLitPolarizedGenerator &)
 
 ClassDef (CbmLitPolarizedGenerator, 1)
 

Private Attributes

Int_t fPDGType
 Particle type (PDG encoding) More...
 
Int_t fMult
 Multiplicity. More...
 
Double_t fT
 Temperature in the Pt distribution. More...
 
Double_t fPtDistMass
 Mass in Pt distribution. More...
 
Double_t fY0
 Mean rapidity. More...
 
Double_t fSigma
 Simga in the rapidity distribution. More...
 
Double_t fPtMin
 Max value of Pt. More...
 
Double_t fPtMax
 Min value of Pt. More...
 
Double_t fYMin
 Max value of Pt. More...
 
Double_t fYMax
 Min value of Pt. More...
 
Double_t fPDGMass
 Particle mass [GeV]. More...
 
TF1 * fDistPt
 
Double_t fAlpha
 Pointer to the Pt function. More...
 
Frame_t fFrame
 
DecayMode_t fDecayMode
 
Double_t fBeamMomentum
 
TF1 * fPol
 
Bool_t fBox
 Polarization function. More...
 

Detailed Description

Definition at line 33 of file CbmLitPolarizedGenerator.h.

Member Enumeration Documentation

◆ DecayMode_t

Enumerator
kDiElectron 
kDiMuon 

Definition at line 36 of file CbmLitPolarizedGenerator.h.

◆ Frame_t

Enumerator
kNoPol 
kColSop 
kHelicity 

Definition at line 35 of file CbmLitPolarizedGenerator.h.

Constructor & Destructor Documentation

◆ CbmLitPolarizedGenerator() [1/3]

CbmLitPolarizedGenerator::CbmLitPolarizedGenerator ( )

Default constructor.

Definition at line 16 of file CbmLitPolarizedGenerator.cxx.

References fAlpha, fBeamMomentum, fBox, fDecayMode, fFrame, fMult, fPDGType, fPol, kDiMuon, and kHelicity.

◆ CbmLitPolarizedGenerator() [2/3]

CbmLitPolarizedGenerator::CbmLitPolarizedGenerator ( Int_t  pdgid,
Int_t  mult = 1 
)

Constructor with PDG-ID, multiplicity

Parameters
pdgidParticle type (PDG encoding)
multMultiplicity (default is 1)

Definition at line 31 of file CbmLitPolarizedGenerator.cxx.

References fAlpha, fBeamMomentum, fBox, fDecayMode, fFrame, fMult, fPDGType, fPol, kDiMuon, kHelicity, SetDistributionPt(), SetDistributionY(), SetRangePt(), and SetRangeY().

◆ ~CbmLitPolarizedGenerator()

virtual CbmLitPolarizedGenerator::~CbmLitPolarizedGenerator ( )
inlinevirtual

Destructor

Definition at line 48 of file CbmLitPolarizedGenerator.h.

◆ CbmLitPolarizedGenerator() [3/3]

CbmLitPolarizedGenerator::CbmLitPolarizedGenerator ( const CbmLitPolarizedGenerator )
private

Member Function Documentation

◆ ClassDef()

CbmLitPolarizedGenerator::ClassDef ( CbmLitPolarizedGenerator  ,
 
)
private

◆ GenerateDaughters()

Bool_t CbmLitPolarizedGenerator::GenerateDaughters ( const TVector3  p,
FairPrimaryGenerator *  primGen 
)

Definition at line 107 of file CbmLitPolarizedGenerator.cxx.

References fBeamMomentum, fDecayMode, fFrame, fPDGMass, fPol, kColSop, kDiElectron, kDiMuon, kHelicity, m, and v.

Referenced by ReadEvent().

◆ Init()

Bool_t CbmLitPolarizedGenerator::Init ( )

Initializer

Definition at line 51 of file CbmLitPolarizedGenerator.cxx.

References fAlpha, fDistPt, fPDGMass, fPDGType, fPol, fPtDistMass, fPtMax, fPtMin, fSigma, fT, and fY0.

◆ operator=()

CbmLitPolarizedGenerator& CbmLitPolarizedGenerator::operator= ( const CbmLitPolarizedGenerator )
private

◆ ReadEvent()

Bool_t CbmLitPolarizedGenerator::ReadEvent ( FairPrimaryGenerator *  primGen)
virtual

Creates an event with given type and multiplicity.

Parameters
primGenpointer to the CbmPrimaryGenerator

Definition at line 77 of file CbmLitPolarizedGenerator.cxx.

References fBox, fDistPt, fMult, fPDGMass, fPtMax, fPtMin, fSigma, fY0, fYMax, fYMin, GenerateDaughters(), and y.

◆ SetAlpha()

void CbmLitPolarizedGenerator::SetAlpha ( Double_t  alpha = 0)
inline

Definition at line 80 of file CbmLitPolarizedGenerator.h.

References fAlpha.

◆ SetBeamMomentum()

void CbmLitPolarizedGenerator::SetBeamMomentum ( Double_t  mom)
inline

Set beam momentum (used in Collins-Soper reference frame)

Parameters
mombeam momentum in GeV/c

Definition at line 95 of file CbmLitPolarizedGenerator.h.

References fBeamMomentum.

◆ SetBox()

void CbmLitPolarizedGenerator::SetBox ( Bool_t  box)
inline

Set box generator - flat distributions in rapidity and pt

Parameters
box= 1 - box, 0 - thermal

Definition at line 100 of file CbmLitPolarizedGenerator.h.

References fBox.

◆ SetDecayMode()

void CbmLitPolarizedGenerator::SetDecayMode ( DecayMode_t  decayMode = kDiMuon)
inline

Set decay mode (kDiMuon/kDiElectron)

Definition at line 88 of file CbmLitPolarizedGenerator.h.

References fDecayMode.

◆ SetDistributionPt()

void CbmLitPolarizedGenerator::SetDistributionPt ( Double_t  T = 0.154319,
Double_t  mass = -1. 
)
inline

Definition at line 57 of file CbmLitPolarizedGenerator.h.

References fPtDistMass, and fT.

Referenced by CbmLitPolarizedGenerator().

◆ SetDistributionY()

void CbmLitPolarizedGenerator::SetDistributionY ( Double_t  y0 = 1.98604,
Double_t  sigma = 0.617173 
)
inline

Definition at line 63 of file CbmLitPolarizedGenerator.h.

References fSigma, and fY0.

Referenced by CbmLitPolarizedGenerator().

◆ SetMultiplicity()

void CbmLitPolarizedGenerator::SetMultiplicity ( Int_t  mult)
inline

Definition at line 54 of file CbmLitPolarizedGenerator.h.

References fMult.

◆ SetPDGType()

void CbmLitPolarizedGenerator::SetPDGType ( Int_t  pdg)
inline

Modifiers

Definition at line 53 of file CbmLitPolarizedGenerator.h.

References fPDGType.

◆ SetRangePt()

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

Definition at line 70 of file CbmLitPolarizedGenerator.h.

References fPtMax, and fPtMin.

Referenced by CbmLitPolarizedGenerator().

◆ SetRangeY()

void CbmLitPolarizedGenerator::SetRangeY ( Double_t  yMin = 0,
Double_t  yMax = 4 
)
inline

Definition at line 74 of file CbmLitPolarizedGenerator.h.

References fYMax, and fYMin.

Referenced by CbmLitPolarizedGenerator().

◆ SetRefFrame()

void CbmLitPolarizedGenerator::SetRefFrame ( Frame_t  frame = kColSop)
inline

Set reference frame for polarization calculation

Parameters
frame= kColSop - Collins-Soper/ kHelicity - Helicity

Definition at line 85 of file CbmLitPolarizedGenerator.h.

References fFrame.

Member Data Documentation

◆ fAlpha

Double_t CbmLitPolarizedGenerator::fAlpha
private

Pointer to the Pt function.

Definition at line 123 of file CbmLitPolarizedGenerator.h.

Referenced by CbmLitPolarizedGenerator(), Init(), and SetAlpha().

◆ fBeamMomentum

Double_t CbmLitPolarizedGenerator::fBeamMomentum
private

◆ fBox

Bool_t CbmLitPolarizedGenerator::fBox
private

Polarization function.

Definition at line 128 of file CbmLitPolarizedGenerator.h.

Referenced by CbmLitPolarizedGenerator(), ReadEvent(), and SetBox().

◆ fDecayMode

DecayMode_t CbmLitPolarizedGenerator::fDecayMode
private

◆ fDistPt

TF1* CbmLitPolarizedGenerator::fDistPt
private

Definition at line 122 of file CbmLitPolarizedGenerator.h.

Referenced by Init(), and ReadEvent().

◆ fFrame

Frame_t CbmLitPolarizedGenerator::fFrame
private

◆ fMult

Int_t CbmLitPolarizedGenerator::fMult
private

Multiplicity.

Definition at line 112 of file CbmLitPolarizedGenerator.h.

Referenced by CbmLitPolarizedGenerator(), ReadEvent(), and SetMultiplicity().

◆ fPDGMass

Double_t CbmLitPolarizedGenerator::fPDGMass
private

Particle mass [GeV].

Definition at line 121 of file CbmLitPolarizedGenerator.h.

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

◆ fPDGType

Int_t CbmLitPolarizedGenerator::fPDGType
private

Particle type (PDG encoding)

Definition at line 111 of file CbmLitPolarizedGenerator.h.

Referenced by CbmLitPolarizedGenerator(), Init(), and SetPDGType().

◆ fPol

TF1* CbmLitPolarizedGenerator::fPol
private

Definition at line 127 of file CbmLitPolarizedGenerator.h.

Referenced by CbmLitPolarizedGenerator(), GenerateDaughters(), and Init().

◆ fPtDistMass

Double_t CbmLitPolarizedGenerator::fPtDistMass
private

Mass in Pt distribution.

Definition at line 114 of file CbmLitPolarizedGenerator.h.

Referenced by Init(), and SetDistributionPt().

◆ fPtMax

Double_t CbmLitPolarizedGenerator::fPtMax
private

Min value of Pt.

Definition at line 118 of file CbmLitPolarizedGenerator.h.

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

◆ fPtMin

Double_t CbmLitPolarizedGenerator::fPtMin
private

Max value of Pt.

Definition at line 117 of file CbmLitPolarizedGenerator.h.

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

◆ fSigma

Double_t CbmLitPolarizedGenerator::fSigma
private

Simga in the rapidity distribution.

Definition at line 116 of file CbmLitPolarizedGenerator.h.

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

◆ fT

Double_t CbmLitPolarizedGenerator::fT
private

Temperature in the Pt distribution.

Definition at line 113 of file CbmLitPolarizedGenerator.h.

Referenced by Init(), and SetDistributionPt().

◆ fY0

Double_t CbmLitPolarizedGenerator::fY0
private

Mean rapidity.

Definition at line 115 of file CbmLitPolarizedGenerator.h.

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

◆ fYMax

Double_t CbmLitPolarizedGenerator::fYMax
private

Min value of Pt.

Definition at line 120 of file CbmLitPolarizedGenerator.h.

Referenced by ReadEvent(), and SetRangeY().

◆ fYMin

Double_t CbmLitPolarizedGenerator::fYMin
private

Max value of Pt.

Definition at line 119 of file CbmLitPolarizedGenerator.h.

Referenced by ReadEvent(), and SetRangeY().


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