]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenPileup.cxx
some c++11 fixes
[u/mrichter/AliRoot.git] / EVGEN / AliGenPileup.cxx
index 10461d8406f5d4a535c87f6c9436d60e4795c6c5..77532ad63fb1964bf294acfd69246f2f7c055546 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*/, Int_t /*ntimes*/)
 {
   // 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;
@@ -254,6 +256,7 @@ void AliGenPileup::Generate()
   fHeader->CalcNProduced();
 
   if (fContainer) {
+    fHeader->SetName(fName);
     fContainer->AddHeader(fHeader);
   } else {
     gAlice->SetGenEventHeader(fHeader);