]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EPOS/AliGenEpos.cxx
Fix for the problem during PbPb run of Nov 2010 (Indra)
[u/mrichter/AliRoot.git] / EPOS / AliGenEpos.cxx
index 7e4cfb6938a89290a30cabf4c671f9840b8c0a2d..495f9002856f3f76109be32aad603c7daec04eee 100644 (file)
@@ -54,7 +54,7 @@ void AliGenEpos::Init() {
 
 void AliGenEpos::Generate() {
   // Does actual generation and output conversion
-         Float_t polar[3]   =   {0,0,0};
+         Float_t polar[3]    =   {0,0,0};
          Float_t origin0[3]  =   {0,0,0};
          Float_t origin[3]   =   {0,0,0};
          fNprimaries = 0;
@@ -74,6 +74,7 @@ void AliGenEpos::Generate() {
 
          Int_t *idsOnStack = NULL;
          idsOnStack = new Int_t[np];
+         for (int i = 0; i < np; i++) idsOnStack[i] = 0;
          TParticle *iparticle;
 
          for (int i = 0; i < np; i++) {