Removing not used parameter and putting the correct flag for the ITS clusters
authorpanos <panos@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 25 Nov 2007 10:41:14 +0000 (10:41 +0000)
committerpanos <panos@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 25 Nov 2007 10:41:14 +0000 (10:41 +0000)
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;