CbmRoot
Loading...
Searching...
No Matches
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)
 
Int_t fMult
 Multiplicity.
 
Double_t fT
 Temperature in the Pt distribution.
 
Double_t fPtDistMass
 Mass in 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 fYMin
 Max value of Pt.
 
Double_t fYMax
 Min value of Pt.
 
Double_t fPDGMass
 Particle mass [GeV].
 
TF1 * fDistPt
 
Double_t fAlpha
 Pointer to the Pt function.
 
Frame_t fFrame
 
DecayMode_t fDecayMode
 
Double_t fBeamMomentum
 
TF1 * fPol
 
Bool_t fBox
 Polarization function.
 

Detailed Description

Definition at line 37 of file CbmLitPolarizedGenerator.h.

Member Enumeration Documentation

◆ DecayMode_t

Enumerator
kDiElectron 
kDiMuon 

Definition at line 45 of file CbmLitPolarizedGenerator.h.

◆ Frame_t

Enumerator
kNoPol 
kColSop 
kHelicity 

Definition at line 39 of file CbmLitPolarizedGenerator.h.

Constructor & Destructor Documentation

◆ CbmLitPolarizedGenerator() [1/3]

CbmLitPolarizedGenerator::CbmLitPolarizedGenerator ( )

Default constructor.

Definition at line 22 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 38 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 61 of file CbmLitPolarizedGenerator.h.

◆ CbmLitPolarizedGenerator() [3/3]

CbmLitPolarizedGenerator::CbmLitPolarizedGenerator ( const CbmLitPolarizedGenerator & )
private

Member Function Documentation

◆ ClassDef()

CbmLitPolarizedGenerator::ClassDef ( CbmLitPolarizedGenerator ,
1  )
private

◆ GenerateDaughters()

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

Definition at line 109 of file CbmLitPolarizedGenerator.cxx.

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

Referenced by ReadEvent().

◆ Init()

Bool_t CbmLitPolarizedGenerator::Init ( )

Initializer

Definition at line 58 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 79 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 96 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 109 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 114 of file CbmLitPolarizedGenerator.h.

References fBox.

◆ SetDecayMode()

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

Set decay mode (kDiMuon/kDiElectron)

Definition at line 104 of file CbmLitPolarizedGenerator.h.

References fDecayMode.

◆ SetDistributionPt()

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

Definition at line 70 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 77 of file CbmLitPolarizedGenerator.h.

References fSigma, and fY0.

Referenced by CbmLitPolarizedGenerator().

◆ SetMultiplicity()

void CbmLitPolarizedGenerator::SetMultiplicity ( Int_t mult)
inline

Definition at line 67 of file CbmLitPolarizedGenerator.h.

References fMult.

◆ SetPDGType()

void CbmLitPolarizedGenerator::SetPDGType ( Int_t pdg)
inline

Modifiers

Definition at line 66 of file CbmLitPolarizedGenerator.h.

References fPDGType.

◆ SetRangePt()

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

Definition at line 84 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 89 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 101 of file CbmLitPolarizedGenerator.h.

References fFrame.

Member Data Documentation

◆ fAlpha

Double_t CbmLitPolarizedGenerator::fAlpha
private

Pointer to the Pt function.

Definition at line 137 of file CbmLitPolarizedGenerator.h.

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

◆ fBeamMomentum

Double_t CbmLitPolarizedGenerator::fBeamMomentum
private

◆ fBox

Bool_t CbmLitPolarizedGenerator::fBox
private

Polarization function.

Definition at line 142 of file CbmLitPolarizedGenerator.h.

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

◆ fDecayMode

DecayMode_t CbmLitPolarizedGenerator::fDecayMode
private

◆ fDistPt

TF1* CbmLitPolarizedGenerator::fDistPt
private

Definition at line 136 of file CbmLitPolarizedGenerator.h.

Referenced by Init(), and ReadEvent().

◆ fFrame

Frame_t CbmLitPolarizedGenerator::fFrame
private

◆ fMult

Int_t CbmLitPolarizedGenerator::fMult
private

◆ fPDGMass

Double_t CbmLitPolarizedGenerator::fPDGMass
private

Particle mass [GeV].

Definition at line 135 of file CbmLitPolarizedGenerator.h.

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

◆ fPDGType

Int_t CbmLitPolarizedGenerator::fPDGType
private

Particle type (PDG encoding)

Definition at line 125 of file CbmLitPolarizedGenerator.h.

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

◆ fPol

TF1* CbmLitPolarizedGenerator::fPol
private

◆ fPtDistMass

Double_t CbmLitPolarizedGenerator::fPtDistMass
private

Mass in Pt distribution.

Definition at line 128 of file CbmLitPolarizedGenerator.h.

Referenced by Init(), and SetDistributionPt().

◆ fPtMax

Double_t CbmLitPolarizedGenerator::fPtMax
private

Min value of Pt.

Definition at line 132 of file CbmLitPolarizedGenerator.h.

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

◆ fPtMin

Double_t CbmLitPolarizedGenerator::fPtMin
private

Max value of Pt.

Definition at line 131 of file CbmLitPolarizedGenerator.h.

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

◆ fSigma

Double_t CbmLitPolarizedGenerator::fSigma
private

Simga in the rapidity distribution.

Definition at line 130 of file CbmLitPolarizedGenerator.h.

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

◆ fT

Double_t CbmLitPolarizedGenerator::fT
private

Temperature in the Pt distribution.

Definition at line 127 of file CbmLitPolarizedGenerator.h.

Referenced by Init(), and SetDistributionPt().

◆ fY0

Double_t CbmLitPolarizedGenerator::fY0
private

Mean rapidity.

Definition at line 129 of file CbmLitPolarizedGenerator.h.

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

◆ fYMax

Double_t CbmLitPolarizedGenerator::fYMax
private

Min value of Pt.

Definition at line 134 of file CbmLitPolarizedGenerator.h.

Referenced by ReadEvent(), and SetRangeY().

◆ fYMin

Double_t CbmLitPolarizedGenerator::fYMin
private

Max value of Pt.

Definition at line 133 of file CbmLitPolarizedGenerator.h.

Referenced by ReadEvent(), and SetRangeY().


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