]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenMC.h
stream.h changed to iostream.h
[u/mrichter/AliRoot.git] / EVGEN / AliGenMC.h
index 28dd0d7b0b54972f190692d9a024681b88dfc0b7..933595f4763a17639941f411dd3dd8cec7984cb4 100644 (file)
@@ -19,7 +19,7 @@ class AliGenMC : public AliGenerator
     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;}
@@ -36,7 +36,7 @@ class AliGenMC : public AliGenerator
     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);
@@ -47,8 +47,8 @@ class AliGenMC : public AliGenerator
     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
@@ -61,8 +61,9 @@ class AliGenMC : public AliGenerator
     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