//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 "./"
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
}