1 #include "StarDecayManager.h"
4 #include "TClonesArray.h"
6 #include "StarGenerator/UTIL/StarParticleData.h"
10 StarDecayManager::StarDecayManager(
const Char_t *name )
11 : mDecayer(), mCurrentDecayer(0), mDebug(0)
17 StarDecayManager::~StarDecayManager()
32 mCurrentDecayer = mDecayer[pdgid];
34 if (!mCurrentDecayer) mCurrentDecayer = mDecayer[0];
35 assert(mCurrentDecayer);
37 mCurrentDecayer ->
Decay( pdgid, p );
44 if ( mCurrentDecayer ) np = mCurrentDecayer->ImportParticles( array );
48 void StarDecayManager::SetForceDecay( Int_t type ){ assert(0); }
49 void StarDecayManager::ForceDecay(){
51 LOG_INFO <<
"Force Decay" << endm;
55 void StarDecayManager::ReadDecayTable(){ assert(0); }
60 return mCurrentDecayer->GetLifetime(pdgid);
Int_t ImportParticles(TClonesArray *array=0)
Returns the decay products in a TClonesArray of TParticle.
void Init()
Initializes the decayer.
Float_t GetLifetime(Int_t pdgid)
Return teh lifetime in seconds for the specified particle.
static StarParticleData & instance()
Returns a reference to the single instance of this class.
Interface to PDG information.
void Decay(Int_t pdg, TLorentzVector *p=0)
Decays the particle specified by PDG id and lorentz vector.
Float_t GetPartialBranchingRatio(Int_t pdgid)
Return the branching ratio for the spdcified PDG ID.
void ClearEvent()
Add a particle with specified PDG ID to the stack.