#include "AliGenCocktail.h"
#include "AliTriggerBCMask.h"
-
+class TFormula;
class AliGenPileup : public AliGenCocktail
{
public:
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);