Int_t NofEventsinPool = 1;
if(fmixing) NofEventsinPool = fCorrelator->GetNofEventsInPool();
- Bool_t *trackOrigin = NULL;
// cout << "crash here 5" << endl;
//************************************************** LOOP ON EVENTS IN EVENT POOL *****************************************************
+ Bool_t *trackOrigin = NULL;
if(fmontecarlo) {trackOrigin = fAssocCuts->IsMCpartFromHF(label,fmcArray);
if(trackOrigin[4]) {/*cout << "Something is wrong with hadron in MC - skipping" << endl; */continue;}
}
}
-
+ delete [] trackOrigin;
} // end loop on associated tracks
} // end loop on events in event pool
for(Int_t itrack=0; itrack<ntracks; itrack++) { // loop on tacks
// ... get the track
AliAODTrack * track = dynamic_cast<AliAODTrack*>(aod->GetTrack(itrack));
- if(!track) AliFatal("Not a standard AOD");
+ if(!track){
+ AliWarning("Error in casting to AOD track. Not a standard AOD?");
+ continue;
+ }
if(TESTBIT(track->GetITSClusterMap(),2) || TESTBIT(track->GetITSClusterMap(),3) ){
skipEvent=kTRUE;
fNentries->Fill(16);
for(Int_t itrack=0; itrack<aod->GetNumberOfTracks(); itrack++) { // loop on tacks
AliAODTrack * track = dynamic_cast<AliAODTrack*>(aod->GetTrack(itrack));
- if(!track) AliFatal("Not a standard AOD");
+ if(!track){
+ AliWarning("Error in casting to AOD track. Not a standard AOD?");
+ continue;
+ }
//rejection of tracks
if(track->GetID() < 0) continue; //discard negative ID tracks
if(track->Pt() < fPtThreshLow.at(0) || track->Pt() > fPtThreshUp.at(0)) continue; //discard tracks outside pt range for hadrons/K