emcal part
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Jun 2012 04:12:12 +0000 (04:12 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Jun 2012 04:12:12 +0000 (04:12 +0000)
PWGGA/EMCALTasks/AliAnalysisTaskEmcal.cxx

index 55fa987..9e23fdc 100644 (file)
@@ -211,12 +211,12 @@ Bool_t AliAnalysisTaskEmcal::AcceptCluster(AliVCluster *clus, Bool_t acceptMC) c
 //________________________________________________________________________
 Bool_t AliAnalysisTaskEmcal::AcceptEmcalPart(AliEmcalParticle *part, Bool_t acceptMC) const
 {
-  // Return true if cluster is accepted.
+  // Return true if EMCal particle is accepted.
 
   if (!part)
     return kFALSE;
 
-  if (!part->IsEMCAL())
+  if (fAnaType == kEMCAL && !part->IsEMCAL())
     return kFALSE;
 
   if (part->Pt() < fPtCut)