AliGenMC(Int_t npart);
AliGenMC(const AliGenMC &MC);
virtual ~AliGenMC();
- void Init();
+ virtual void Init();
virtual void SetForceDecay(Decay_t decay = kAll) {fForceDecay = decay;}
AliGenMC & operator=(const AliGenMC & rhs);
virtual void SetCutOnChild(Int_t flag = 0) {fCutOnChild = flag;}
virtual void SetChildYRange(Float_t ymin = -12, Float_t ymax = 12)
{fChildYMin = ymin;
fChildYMax = ymax;}
-
+ virtual void SetMaximumLifetime(Float_t time = 1.e-15) {fMaxLifeTime = time;}
protected:
// check if particle is selected as parent particle
Bool_t ParentSelected(Int_t ip);
Int_t CheckPDGCode(Int_t pdgcode);
protected:
- TArrayI fParentSelect; // Parent particles to be selected
- TArrayI fChildSelect; // Decay products to be selected
+ TArrayI fParentSelect; //!Parent particles to be selected
+ TArrayI fChildSelect; //!Decay products to be selected
Int_t fCutOnChild; // Cuts on decay products (children) are enabled/disabled
Float_t fChildPtMin; // Children minimum pT
Float_t fChildPtMax; // Children maximum pT
Float_t fChildYMin; // Children minimum y
Float_t fChildYMax; // Children maximum y
Decay_t fForceDecay; // Decay channel forced
-
- ClassDef(AliGenMC,1) // AliGenerator implementation for generators using MC methods
+ Float_t fMaxLifeTime; // Maximum lifetime for unstable particles
+
+ ClassDef(AliGenMC,4) // AliGenerator implementation for generators using MC methods
};
#endif