bug 100197
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Feb 2013 08:20:18 +0000 (08:20 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Feb 2013 08:20:18 +0000 (08:20 +0000)
Sergey Evdokimov

PYTHIA8/AliTPythia8.cxx

index 01b48e0..8c7390f 100644 (file)
@@ -167,7 +167,6 @@ Int_t AliTPythia8::ImportParticles(TClonesArray *particles, Option_t *option)
    Int_t ioff = 0;
    fNumberOfParticles  = fPythia->event.size();
    if (fPythia->event[0].id() == 90) {
-     fNumberOfParticles--; 
      ioff = -1;
    }
 
@@ -211,9 +210,10 @@ Int_t AliTPythia8::ImportParticles(TClonesArray *particles, Option_t *option)
                fPythia->event[i].yProd(),    // [mm]
                fPythia->event[i].zProd(),    // [mm]
                fPythia->event[i].tProd());   // [mm/c]
-           nparts++;
+               nparts++;
        } // particle loop      
     }
+    if(ioff==-1)     fNumberOfParticles--; 
     return nparts;
 }