]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenPileup.cxx
New class added.
[u/mrichter/AliRoot.git] / EVGEN / AliGenPileup.cxx
index 10461d8406f5d4a535c87f6c9436d60e4795c6c5..d9c03d1494124e1736b17e79d5600098b2675c60 100644 (file)
@@ -48,6 +48,7 @@
 //-------------------------------------------------------------------------
 
 #include <TParticle.h>
+#include <TFormula.h>
 
 #include "AliGenPileup.h"
 #include "AliLog.h"
@@ -97,7 +98,7 @@ void AliGenPileup::SetGenerator(AliGenerator *generator, Float_t rate, Bool_t fl
 
 void AliGenPileup::AddGenerator(AliGenerator *Generator,
                                const char* Name,
-                               Float_t RateExp )
+                               Float_t RateExp , TFormula* /*form*/)
 {
   // The method used to add the pileup generator
   // in the cocktail list.
@@ -244,6 +245,7 @@ void AliGenPileup::Generate()
 
       // Store the interaction header in the container of the headers
       ((AliGenEventHeader*) fHeader->GetHeaders()->Last())->SetPrimaryVertex(eventVertex);
+      ((AliGenEventHeader*) fHeader->GetHeaders()->Last())->SetInteractionTime(vTime);
     }
   }
   delete [] nIntBC;