]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliReaderKineTree.cxx
Fixed usage of esdVtx for v0s
[u/mrichter/AliRoot.git] / ANALYSIS / AliReaderKineTree.cxx
index ad44bf8cd65bd8407b39b9a9394b7d0fedd4d1b9..c69f1e2f91371cb2e43097bd74d5886035bb9068 100644 (file)
@@ -90,7 +90,10 @@ Int_t AliReaderKineTree::ReadNext()
  //Reads Kinematics Tree
   
  Info("Read","");
- if (fEventSim == 0x0)  fEventSim = new AliAOD();
+ if (fEventSim == 0x0)  
+  {
+    fEventSim = new AliAOD();
+  } 
  fEventSim->Reset();
 
  do  //do{}while; is OK even if 0 dirs specified. In that case we try to read from "./"
@@ -127,11 +130,11 @@ Int_t AliReaderKineTree::ReadNext()
          TParticle * p = stack->Particle(i);
 //         if (p->GetFirstMother() >= 0) continue; do not apply with pythia etc
          
-         if(Pass(p->GetPdgCode())) continue; //check if we are intersted with particles of this type 
+         if(Rejected(p->GetPdgCode())) continue; //check if we are intersted with particles of this type 
                                              //if not take next partilce
          
          AliAODParticle* part = new AliAODParticle(*p,i);
-         if(Pass(part)) { delete part; continue;}//check if meets all criteria of any of our cuts
+         if(Rejected(part)) { delete part; continue;}//check if meets all criteria of any of our cuts
                                                   //if it does not delete it and take next good track
          fEventSim->AddParticle(part);//put particle in event
       }