Removing not used parameter and putting the correct flag for the ITS clusters
[u/mrichter/AliRoot.git] / PWG2 / SPECTRA / AliProtonAnalysis.cxx
index 607e80c4945fcf7f22c8266d79664f1f28c50b58..50504ff4d2bc8d05e1f401bbea04a75b8acf13e9 100644 (file)
@@ -282,11 +282,8 @@ Bool_t AliProtonAnalysis::IsAccepted(AliESDtrack* track) {
   track->GetExternalCovariance(extCov);
 
   Double_t Pt = track->Pt();
-  Double_t P = TMath::Sqrt(TMath::Power(track->Px(),2) + 
-                           TMath::Power(track->Py(),2) + 
-                          TMath::Power(track->Pz(),2));
 
-  if(fMinTPCClustersFlag)
+  if(fMinITSClustersFlag)
     if(nClustersITS < fMinITSClusters) return kFALSE;
   if(fMinTPCClustersFlag)
     if(nClustersTPC < fMinTPCClusters) return kFALSE;