]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenFixed.cxx
Updated ctiteria, renamed files, modified printout (Jacek, Marian)
[u/mrichter/AliRoot.git] / EVGEN / AliGenFixed.cxx
index ad6f5b0bef96a7e1d66a8d9bfed2c2cbb476edab..9402c8d2e678e7fe80a6ea4ae094fdfbe53ea024 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.;
 }
 
 //_____________________________________________________________________________
@@ -66,7 +69,7 @@ void AliGenFixed::Generate()
   }
   Int_t i, j, nt;
   //
-  Float_t o[3];
+  Float_t o[3] = {0., 0., 0.}; 
   if(fVertexSmear == kPerEvent) {
       Vertex();
       for (j = 0;j < 3; j++) o[j] = fVertex[j];