Corrected bug in cluster selection with PID
[u/mrichter/AliRoot.git] / PWG4 / PartCorrDep / AliAnaParticleJetLeadingConeCorrelation.cxx
index fc546a4ac4a83029f233db202ed4b0b6cc8bb518..2ce67a4e4530d339af2c80dbd7771098c3a41fde 100755 (executable)
@@ -1629,7 +1629,7 @@ Bool_t  AliAnaParticleJetLeadingConeCorrelation::SelectCluster(AliAODCaloCluster
     
   //  if(GetDebug() > 3) printf("AliAnaParticleJetLeadingConeCorrelation::SelectCluster() - PDG of identified particle %d\n",pdg);
     //If it does not pass pid, skip
     
   //  if(GetDebug() > 3) printf("AliAnaParticleJetLeadingConeCorrelation::SelectCluster() - PDG of identified particle %d\n",pdg);
     //If it does not pass pid, skip
-    if(pdg != AliCaloPID::kPhoton || pdg != AliCaloPID::kPi0) 
+    if(pdg != AliCaloPID::kPhoton && pdg != AliCaloPID::kPi0) 
       return kFALSE ;
   }//CaloPID
   
       return kFALSE ;
   }//CaloPID