Fix for ESD analysis
authorzconesa <zconesa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Nov 2013 15:29:04 +0000 (15:29 +0000)
committerzconesa <zconesa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Nov 2013 15:29:04 +0000 (15:29 +0000)
PWGPP/EvTrkSelection/AliCFSingleTrackEfficiencyTask.cxx

index 780c288..d652f40 100644 (file)
@@ -565,12 +565,14 @@ void AliCFSingleTrackEfficiencyTask::CheckReconstructedParticles()
     containerInputMC[3] = mcPart->Theta();
 
     if (!fMCCuts->IsMCParticleGenerated(mcPart)) continue;
+    //    cout<< "MC matching did work"<<endl;
 
 
     // for filter bit selection
     AliAODTrack *aodTrack = dynamic_cast<AliAODTrack*>(track);
-    if (!aodTrack) continue;
+    if(isAOD && !aodTrack) continue;
     if(isAOD && fSetFilterBit) if (!aodTrack->TestFilterMask(BIT(fbit))) continue;
+    //    cout<<" Filter bit check passed"<<endl;
 
     Bool_t isESDtrack = track->IsA()->InheritsFrom("AliESDtrack");
     AliESDtrack *tmptrack = NULL;