X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ANALYSIS%2FAliReaderKineTree.cxx;h=c69f1e2f91371cb2e43097bd74d5886035bb9068;hb=70186db5c04ab633d4a09a96cdec1ee6a524f551;hp=ad44bf8cd65bd8407b39b9a9394b7d0fedd4d1b9;hpb=0e5fdb2c18545ffa3b41b25e66d5959afed088ee;p=u%2Fmrichter%2FAliRoot.git diff --git a/ANALYSIS/AliReaderKineTree.cxx b/ANALYSIS/AliReaderKineTree.cxx index ad44bf8cd65..c69f1e2f913 100644 --- a/ANALYSIS/AliReaderKineTree.cxx +++ b/ANALYSIS/AliReaderKineTree.cxx @@ -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 }