if (particleSpecies == 3 && (TMath::Abs(pdgCode)==211 || TMath::Abs(pdgCode)==321 || TMath::Abs(pdgCode)==2212))
return 0;
}
+ else
+ {
+ // if mother not found, accept particle only in case of particleSpecies == 3. To include it in all or no sample is no solution
+ Printf("WARNING: No mother found for particle %d", part->GetLabel());
+ if (particleSpecies != 3)
+ return 0;
+ }
}
}else if (obj->InheritsFrom("TObjArray")){ // list of AliVParticle
//____________________________________________________________________
Bool_t AliAnalyseLeadingTrackUE::TriggerSelection(const TObject* obj)
{
+ if (!obj) // MC
+ return kFALSE;
//Use AliPhysicsSelection to select good events
if( !obj->InheritsFrom("AliAODInputHandler") ) { // not needed for AOD input
// TODO for AOD input trigger bit needs to be checked too (is stored in the AOD)
return kTRUE;
-
}
//____________________________________________________________________