CbmRoot
|
#include <CbmFastDecayer.h>
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) | |
CbmFastDecayer & | operator= (const CbmFastDecayer &rhs) |
Private Attributes | |
CbmStack * | fStack = NULL |
TVirtualMCDecayer * | fDecayer = NULL |
pointer to CbmStack More... | |
std::vector< int > | fDecayPdgCodes |
pointer to decayer More... | |
std::vector< int > | fGeantPdgCodes |
Definition at line 14 of file CbmFastDecayer.h.
CbmFastDecayer::CbmFastDecayer | ( | ) |
Default constructor without arguments should not be used.
CbmFastDecayer::CbmFastDecayer | ( | const char * | fileName, |
TString | particle | ||
) |
Standard constructor.
fileName | The input file name |
Definition at line 31 of file CbmFastDecayer.cxx.
CbmFastDecayer::~CbmFastDecayer | ( | ) |
|
private |
|
inline |
Definition at line 36 of file CbmFastDecayer.h.
References fDecayer.
|
virtual |
TODO: really needed? should be initialized before
Definition at line 51 of file CbmFastDecayer.cxx.
References fDecayer.
|
private |
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.
pStack | pointer to the stack |
ver | not 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.
|
inline |
Definition at line 37 of file CbmFastDecayer.h.
References fDecayer.
void CbmFastDecayer::SetParticlesForDecay | ( | char const * | pdgs = "" | ) |
Definition at line 284 of file CbmFastDecayer.cxx.
References fDecayPdgCodes.
void CbmFastDecayer::SetParticlesForGeant | ( | char const * | pdgs = "" | ) |
Definition at line 301 of file CbmFastDecayer.cxx.
References fGeantPdgCodes.
|
private |
pointer to CbmStack
Definition at line 45 of file CbmFastDecayer.h.
Referenced by GetDecayer(), Init(), ReadEvent(), SetExternalDecayer(), and ~CbmFastDecayer().
|
private |
pointer to decayer
Definition at line 47 of file CbmFastDecayer.h.
Referenced by ReadEvent(), and SetParticlesForDecay().
|
private |
Definition at line 48 of file CbmFastDecayer.h.
Referenced by ReadEvent(), and SetParticlesForGeant().
|
private |
Definition at line 44 of file CbmFastDecayer.h.
Referenced by ReadEvent(), and ~CbmFastDecayer().