Fix for Coverity defect 21844
authorhristov <Peter.Hristov@cern.ch>
Tue, 17 Dec 2013 09:01:01 +0000 (10:01 +0100)
committerhristov <Peter.Hristov@cern.ch>
Tue, 17 Dec 2013 21:04:48 +0000 (22:04 +0100)
STEER/STEERBase/AliTPCPIDResponse.cxx
STEER/STEERBase/AliTPCPIDResponse.h

index ff8be78..547c4a9 100644 (file)
@@ -313,7 +313,7 @@ void AliTPCPIDResponse::SetSigma(Float_t res0, Float_t resN2) {
 }
 
 //_________________________________________________________________________
-Double_t AliTPCPIDResponse::GetExpectedSignal(const Float_t mom,
+Double_t AliTPCPIDResponse::GetExpectedSignal(Float_t mom,
                                              AliPID::EParticleType n) const {
   //
   // Deprecated function (for backward compatibility). Please use 
@@ -347,8 +347,8 @@ Double_t AliTPCPIDResponse::GetExpectedSignal(const Float_t mom,
 }
 
 //_________________________________________________________________________
-Double_t AliTPCPIDResponse::GetExpectedSigma(const Float_t mom, 
-                                             const Int_t nPoints,
+Double_t AliTPCPIDResponse::GetExpectedSigma(Float_t mom, 
+                                             Int_t nPoints,
                                              AliPID::EParticleType n) const {
   //
   // Deprecated function (for backward compatibility). Please use 
@@ -1064,7 +1064,7 @@ Double_t AliTPCPIDResponse::GetTrackTanTheta(const AliVTrack *track) const
 
 
 //_________________________________________________________________________
-Double_t AliTPCPIDResponse::GetMultiplicityCorrectionFast(const AliVTrack *track, const Double_t dEdxExpected, const Int_t multiplicity) const
+Double_t AliTPCPIDResponse::GetMultiplicityCorrectionFast(const AliVTrack *track, Double_t dEdxExpected, Int_t multiplicity) const
 {
   // NOTE: For expert use only -> Non-experts are advised to use the function without the "Fast" suffix or stick to AliPIDResponse directly.
   //
@@ -1220,7 +1220,7 @@ Double_t AliTPCPIDResponse::GetEtaAndMultiplicityCorrectedTrackdEdx(const AliVTr
 
 
 //_________________________________________________________________________
-Double_t AliTPCPIDResponse::GetMultiplicitySigmaCorrectionFast(const Double_t dEdxExpected, const Int_t multiplicity) const
+Double_t AliTPCPIDResponse::GetMultiplicitySigmaCorrectionFast(Double_t dEdxExpected, Int_t multiplicity) const
 {
   // NOTE: For expert use only -> Non-experts are advised to use the function without the "Fast" suffix or stick to AliPIDResponse directly.
   //
index ee3f9b9..e981afb 100644 (file)
@@ -132,9 +132,9 @@ public:
   // Fast functions for expert use only
   Double_t GetEtaCorrectionFast(const AliVTrack *track, Double_t dEdxSplines) const;
   
-  Double_t GetMultiplicityCorrectionFast(const AliVTrack *track, const Double_t dEdxExpected, const Int_t multiplicity) const;
+  Double_t GetMultiplicityCorrectionFast(const AliVTrack *track, Double_t dEdxExpected, Int_t multiplicity) const;
   
-  Double_t GetMultiplicitySigmaCorrectionFast(const Double_t dEdxExpected, const Int_t multiplicity) const;
+  Double_t GetMultiplicitySigmaCorrectionFast(Double_t dEdxExpected, Int_t multiplicity) const;
   
   Double_t GetSigmaPar1Fast(const AliVTrack *track, AliPID::EParticleType species,
                             Double_t dEdx, const TSpline3* responseFunction) const;
@@ -190,13 +190,13 @@ public:
   void ResetSplines();
 
   //OLD
-  Double_t GetExpectedSignal(const Float_t mom,
+  Double_t GetExpectedSignal(Float_t mom,
                      AliPID::EParticleType n=AliPID::kKaon) const;
-  Double_t GetExpectedSigma(const Float_t mom, const Int_t nPoints,
+  Double_t GetExpectedSigma(Float_t mom, Int_t nPoints,
                             AliPID::EParticleType n=AliPID::kKaon) const;
-  Float_t  GetNumberOfSigmas(const Float_t mom, 
-                             const Float_t dEdx, 
-                                              const Int_t nPoints,
+  Float_t  GetNumberOfSigmas(Float_t mom, 
+                             Float_t dEdx, 
+                            Int_t nPoints,
                              AliPID::EParticleType n=AliPID::kKaon) const {
     //
     // Deprecated function (for backward compatibility). Please use