if (iSM < 0 || iphi < 0 || ieta < 0 ) {
AliFatal(Form("Negative value for super module: %d, or cell ieta: %d, or cell iphi: %d, check EMCAL geometry name\n",
iSM,ieta,iphi));
+ return kFALSE; // trick coverity
}
//Check rows/phi
if (fAODTPCOnlyTracks) { // Match with TPC only tracks, default from May 2013, before filter bit 32
//printf("Match with TPC only tracks, accept? %d, test bit 128 <%d> \n", aodTrack->IsTPCOnly(), aodTrack->TestFilterMask(128));
- if (!aodTrack->IsTPCOnly()) continue ;
+ if (!aodTrack->IsTPCConstrained()) continue ;
} else if (fAODHybridTracks) { // Match with hybrid tracks
//printf("Match with Hybrid tracks, accept? %d \n", aodTrack->IsHybridGlobalConstrainedGlobal());
if (!aodTrack->IsHybridGlobalConstrainedGlobal()) continue ;
for (Int_t iTrk=0; iTrk<nTracks; ++iTrk)
{
AliVTrack* track = dynamic_cast<AliVTrack*>(event->GetTrack(iTrk));
- if (iTrk == matchTrackIndex) continue;
- if (track->GetEMCALcluster() == iClus) {
+
+ if( !track ) continue;
+
+ if ( iTrk == matchTrackIndex ) continue;
+
+ if ( track->GetEMCALcluster() == iClus )
+ {
arrayTrackMatched[nMatched] = iTrk;
++nMatched;
}