Correct initialisation of origin in case no smearing is used.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Jul 2007 16:21:15 +0000 (16:21 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Jul 2007 16:21:15 +0000 (16:21 +0000)
EVGEN/AliGenFixed.cxx

index ad6f5b0..08204c3 100644 (file)
@@ -66,7 +66,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];