]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenFixed.cxx
Adding information about 2012 pp data triggers (in histos and a new counter). (Chiara...
[u/mrichter/AliRoot.git] / EVGEN / AliGenFixed.cxx
index 08204c39f15f115a2fa62bad79b5b526ec969dba..8dacf599896fedfc6a7a337d5bb9aa0e9f88644c 100644 (file)
@@ -37,6 +37,8 @@ AliGenFixed::AliGenFixed()
   //
   // Default constructor
   //
+    for (Int_t i = 0; i < 3; i++) fP[i] = 0.;
+    
 }
 
 //_____________________________________________________________________________
@@ -50,6 +52,7 @@ AliGenFixed::AliGenFixed(Int_t npart)
   //
   fName="Fixed";
   fTitle="Fixed Particle Generator";
+  for (Int_t i = 0; i < 3; i++) fP[i] = 0.;
 }
 
 //_____________________________________________________________________________
@@ -67,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);
 }