CbmRoot
CbmFastDecayer Class Reference

#include <CbmFastDecayer.h>

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

Public Member Functions

 CbmFastDecayer ()
 
 CbmFastDecayer (const char *fileName, TString particle)
 
 ~CbmFastDecayer ()
 
Bool_t ReadEvent (FairPrimaryGenerator *primGen)
 
virtual Bool_t Init ()
 
TVirtualMCDecayer * GetDecayer ()
 
void SetExternalDecayer (TVirtualMCDecayer *decayer)
 
void SetParticlesForDecay (char const *pdgs="")
 
void SetParticlesForGeant (char const *pdgs="")
 

Private Member Functions

 CbmFastDecayer (const CbmFastDecayer &EvtGen)
 
CbmFastDecayeroperator= (const CbmFastDecayer &rhs)
 

Private Attributes

CbmStackfStack = NULL
 
TVirtualMCDecayer * fDecayer = NULL
 pointer to CbmStack More...
 
std::vector< int > fDecayPdgCodes
 pointer to decayer More...
 
std::vector< int > fGeantPdgCodes
 

Detailed Description

Definition at line 14 of file CbmFastDecayer.h.

Constructor & Destructor Documentation

◆ CbmFastDecayer() [1/3]

CbmFastDecayer::CbmFastDecayer ( )

Default constructor without arguments should not be used.

◆ CbmFastDecayer() [2/3]

CbmFastDecayer::CbmFastDecayer ( const char *  fileName,
TString  particle 
)

Standard constructor.

Parameters
fileNameThe input file name

Definition at line 31 of file CbmFastDecayer.cxx.

◆ ~CbmFastDecayer()

CbmFastDecayer::~CbmFastDecayer ( )

Destructor.

Definition at line 40 of file CbmFastDecayer.cxx.

References fDecayer, and fStack.

◆ CbmFastDecayer() [3/3]

CbmFastDecayer::CbmFastDecayer ( const CbmFastDecayer EvtGen)
private

Member Function Documentation

◆ GetDecayer()

TVirtualMCDecayer* CbmFastDecayer::GetDecayer ( )
inline

Definition at line 36 of file CbmFastDecayer.h.

References fDecayer.

◆ Init()

Bool_t CbmFastDecayer::Init ( )
virtual

TODO: really needed? should be initialized before

Definition at line 51 of file CbmFastDecayer.cxx.

References fDecayer.

◆ operator=()

CbmFastDecayer& CbmFastDecayer::operator= ( const CbmFastDecayer rhs)
private

◆ ReadEvent()

Bool_t CbmFastDecayer::ReadEvent ( FairPrimaryGenerator *  primGen)

Reads on event from the input file and pushes the tracks onto the stack. Abstract method in base class.

Parameters
pStackpointer to the stack
vernot used

allow tracking of decay products

selection for geant and decay pdgs

select certain particles for decay

check for dalitz pi0, gamma, etc.

TODO: check

create lorentz vector

decay

select certain particles for decay

mother origin

only debug

NOTE: the first decay generation points to the generated particles (by e.g. UrQMD), further generations (cascade daughters) have jpa indices > 0 and need to point to the correct previously added mother (not grandmother) -> (i-jpa)

position and momentum of daughters

Give track to PrimaryGenerator NOTE: parent index need to be reduced by the stack size, because the index is shifted by this number in FairPrimaryGenerator::AddTrack!

deny tracking of decay products

Definition at line 78 of file CbmFastDecayer.cxx.

References CbmStack::DoTracking(), fDecayer, fDecayPdgCodes, fGeantPdgCodes, fStack, CbmStack::GetNprimary(), CbmStack::GetNtrack(), CbmStack::GetParticle(), and i.

◆ SetExternalDecayer()

void CbmFastDecayer::SetExternalDecayer ( TVirtualMCDecayer *  decayer)
inline

Definition at line 37 of file CbmFastDecayer.h.

References fDecayer.

◆ SetParticlesForDecay()

void CbmFastDecayer::SetParticlesForDecay ( char const *  pdgs = "")

Definition at line 284 of file CbmFastDecayer.cxx.

References fDecayPdgCodes.

◆ SetParticlesForGeant()

void CbmFastDecayer::SetParticlesForGeant ( char const *  pdgs = "")

Definition at line 301 of file CbmFastDecayer.cxx.

References fGeantPdgCodes.

Member Data Documentation

◆ fDecayer

TVirtualMCDecayer* CbmFastDecayer::fDecayer = NULL
private

pointer to CbmStack

Definition at line 45 of file CbmFastDecayer.h.

Referenced by GetDecayer(), Init(), ReadEvent(), SetExternalDecayer(), and ~CbmFastDecayer().

◆ fDecayPdgCodes

std::vector<int> CbmFastDecayer::fDecayPdgCodes
private

pointer to decayer

Definition at line 47 of file CbmFastDecayer.h.

Referenced by ReadEvent(), and SetParticlesForDecay().

◆ fGeantPdgCodes

std::vector<int> CbmFastDecayer::fGeantPdgCodes
private

Definition at line 48 of file CbmFastDecayer.h.

Referenced by ReadEvent(), and SetParticlesForGeant().

◆ fStack

CbmStack* CbmFastDecayer::fStack = NULL
private

Definition at line 44 of file CbmFastDecayer.h.

Referenced by ReadEvent(), and ~CbmFastDecayer().


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