Coverity fix
authorpulvir <pulvir@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Feb 2011 08:15:38 +0000 (08:15 +0000)
committerpulvir <pulvir@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Feb 2011 08:15:38 +0000 (08:15 +0000)
PWG2/RESONANCES/AliRsnVATProcessInfo.cxx
PWG2/RESONANCES/extra/AliRsnAnalysisPhi7TeV.cxx
PWG2/RESONANCES/extra/AliRsnAnalysisPhi7TeV.h

index 8d63553..c58c37c 100644 (file)
@@ -176,7 +176,7 @@ Long64_t AliRsnVATProcessInfo::GetNumerOfEventsProcessed()
 // returns number of events from histogram
 //
 
-   if (fHistUsedEvents) return fHistUsedEvents->Integral();
+   if (fHistUsedEvents) return (Long64_t)fHistUsedEvents->Integral();
    return 0;
 }
 
index a338fe7..6e9430f 100644 (file)
@@ -448,7 +448,7 @@ void AliRsnAnalysisPhi7TeV::ProcessESD
     v1.SetXYZM(t1->Px(), t1->Py(), t1->Pz(), kmass);
 
     // check track
-    okTrack = OkTrack(t1, AliPID::kKaon);
+    okTrack = OkTrack(t1);
 
     // internal loop (T2)
     for (i2 = i1+1; i2 < ntracks; i2++)
@@ -457,7 +457,7 @@ void AliRsnAnalysisPhi7TeV::ProcessESD
       if (!t2) continue;
 
       // check track
-      if (!OkTrack(t2, AliPID::kKaon)) continue;
+      if (!OkTrack(t2)) continue;
 
       // if unlike pair, check if it is true
       pdg = 0;
@@ -642,7 +642,7 @@ Bool_t AliRsnAnalysisPhi7TeV::OkTOFPID (AliESDtrack *track, AliPID::EParticleTyp
 }
 
 //______________________________________________________________________________
-Bool_t AliRsnAnalysisPhi7TeV::OkTrack(AliESDtrack *track, AliPID::EParticleType pid)
+Bool_t AliRsnAnalysisPhi7TeV::OkTrack(AliESDtrack *track)
 {
 //
 // Global track cut check
index 7e8599c..9389cf6 100644 (file)
@@ -84,7 +84,7 @@ class AliRsnAnalysisPhi7TeV : public AliAnalysisTaskSE
     Bool_t           OkITSPID (AliESDtrack *track, AliPID::EParticleType pid);
     Bool_t           OkTPCPID (AliESDtrack *track, AliPID::EParticleType pid);
     Bool_t           OkTOFPID (AliESDtrack *track, AliPID::EParticleType pid);
-    Bool_t           OkTrack  (AliESDtrack *track, AliPID::EParticleType pid);
+    Bool_t           OkTrack  (AliESDtrack *track);
 
   private: