]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenMUONCocktailpp.cxx
Introducing the interaction time into the aliroot generators. In case of gaussian...
[u/mrichter/AliRoot.git] / EVGEN / AliGenMUONCocktailpp.cxx
index 4c6763b8f6bd15dcca4e50eaa585ebcdaef27c60..c9b8376cb3faaf224a31f73fc11549f4abe108cc 100644 (file)
@@ -470,6 +470,7 @@ void AliGenMUONCocktailpp::Generate()
            gen = entry->Generator();
            genName = entry->GetName();
            gen->SetVertex(fVertex.At(0), fVertex.At(1), fVertex.At(2));
+           gen->SetTime(fTime);
 
            npart = (strcmp(genName,"Pythia") == 0) ? 1 :
                gRandom->Poisson(entry->Rate());
@@ -519,6 +520,7 @@ void AliGenMUONCocktailpp::Generate()
     for (Int_t j=0; j < 3; j++) eventVertex[j] = fVertex[j];
 
     fHeader->SetPrimaryVertex(eventVertex);
+    fHeader->SetInteractionTime(fTime);
 
     gAlice->SetGenEventHeader(fHeader);