]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenFixed.cxx
Added reader class for HepMC and updated library dependencies of EVGEN and those...
[u/mrichter/AliRoot.git] / EVGEN / AliGenFixed.cxx
index 9402c8d2e678e7fe80a6ea4ae094fdfbe53ea024..8dacf599896fedfc6a7a337d5bb9aa0e9f88644c 100644 (file)
@@ -70,12 +70,14 @@ void AliGenFixed::Generate()
   Int_t i, j, nt;
   //
   Float_t o[3] = {0., 0., 0.}; 
+  Float_t time = 0.;
   if(fVertexSmear == kPerEvent) {
       Vertex();
       for (j = 0;j < 3; j++) o[j] = fVertex[j];
+      time = fTime;
   }
   
   for(i = 0; i < fNpart; i++) 
-    PushTrack(fTrackIt, -1, fIpart, fP, o , polar, 0, kPPrimary, nt);
+    PushTrack(fTrackIt, -1, fIpart, fP, o , polar, time, kPPrimary, nt);
 }