CbmRoot
Loading...
Searching...
No Matches
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
 
std::vector< int > fDecayPdgCodes
 pointer to decayer
 
std::vector< int > fGeantPdgCodes
 

Detailed Description

Definition at line 19 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 37 of file CbmFastDecayer.cxx.

◆ ~CbmFastDecayer()

CbmFastDecayer::~CbmFastDecayer ( )

Destructor.

Definition at line 49 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 41 of file CbmFastDecayer.h.

References fDecayer.

◆ Init()

Bool_t CbmFastDecayer::Init ( )
virtual

TODO: really needed? should be initialized before

Definition at line 61 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 89 of file CbmFastDecayer.cxx.

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

◆ SetExternalDecayer()

void CbmFastDecayer::SetExternalDecayer ( TVirtualMCDecayer * decayer)
inline

Definition at line 42 of file CbmFastDecayer.h.

References fDecayer.

◆ SetParticlesForDecay()

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

Definition at line 266 of file CbmFastDecayer.cxx.

References fDecayPdgCodes.

◆ SetParticlesForGeant()

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

Definition at line 283 of file CbmFastDecayer.cxx.

References fGeantPdgCodes.

Member Data Documentation

◆ fDecayer

TVirtualMCDecayer* CbmFastDecayer::fDecayer = NULL
private

pointer to CbmStack

Definition at line 50 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 52 of file CbmFastDecayer.h.

Referenced by ReadEvent(), and SetParticlesForDecay().

◆ fGeantPdgCodes

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

Definition at line 53 of file CbmFastDecayer.h.

Referenced by ReadEvent(), and SetParticlesForGeant().

◆ fStack

CbmStack* CbmFastDecayer::fStack = NULL
private

Definition at line 49 of file CbmFastDecayer.h.

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


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