]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenPileup.h
Overlaps corrected, new shape of sectors
[u/mrichter/AliRoot.git] / EVGEN / AliGenPileup.h
index d8a46f8e3c178b758416ee8eb62b089a4218f8c0..c652a32f4eb8a4fe171c591b16b9fa15ab7fbd0c 100644 (file)
@@ -39,7 +39,7 @@
 
 #include "AliGenCocktail.h"
 #include "AliTriggerBCMask.h"
-
+class TFormula;
 class AliGenPileup : public AliGenCocktail
 {
  public:
@@ -50,16 +50,18 @@ class AliGenPileup : public AliGenCocktail
     virtual void SetRandomise(Bool_t flag);
     virtual void UsePerEventRates();
            
-    void         SetGenerator(AliGenerator *generator, Float_t rate);
+    void         SetGenerator(AliGenerator *generator, Float_t rate, Bool_t flag = kFALSE);
+    //void         SetGenerator(AliGenerator *generator, Float_t rate);
     Bool_t       SetBCMask(const char *mask);
     void         GenerateTrigInteraction(Bool_t flag) {fGenTrig = flag;}
 
  protected:
     virtual void AddGenerator
-       (AliGenerator *Generator, const char* Name, Float_t RateExp );
-
+      (AliGenerator *Generator, const char* Name, Float_t RateExp, TFormula* formula = 0,
+       Int_t ntimes = 1);
     AliTriggerBCMask fBCMask;    // Mask used to tag the active bunch-crossings within an orbit
     Bool_t           fGenTrig;   // Generate or not the trigger interaction
+    Bool_t           fFlag;      // fixed interaction rate (integer)
 
  private:
     AliGenPileup(const AliGenPileup &gen);