]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenPileup.cxx
More information is printed when parsing events.
[u/mrichter/AliRoot.git] / EVGEN / AliGenPileup.cxx
index 10461d8406f5d4a535c87f6c9436d60e4795c6c5..1eefe7cd6117bb5e2154b5f86da3771d782bc25e 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;
@@ -254,6 +256,7 @@ void AliGenPileup::Generate()
   fHeader->CalcNProduced();
 
   if (fContainer) {
+    fHeader->SetName(fName);
     fContainer->AddHeader(fHeader);
   } else {
     gAlice->SetGenEventHeader(fHeader);