]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity fix: extended int.time arrays to kSPECIESC
authorshahoian <ruben.shahoyan@cern.ch>
Tue, 21 Jan 2014 10:25:40 +0000 (11:25 +0100)
committershahoian <ruben.shahoyan@cern.ch>
Tue, 21 Jan 2014 10:26:46 +0000 (11:26 +0100)
ITS/UPGRADE/AliITSUTrackHyp.cxx
ITS/UPGRADE/AliITSUTrackerGlo.cxx
STEER/ESD/AliESDpid.cxx
STEER/STEERBase/AliExternalTrackParam.cxx

index 28b4bd18fc08a52045ced90bdbee2fe476233e34..18bc4ed9750d4971431225c830f9468561c96c84 100644 (file)
@@ -85,7 +85,7 @@ AliITSUTrackHyp::AliITSUTrackHyp(const AliESDtrack &src)
   if (src.IsOn(AliESDtrack::kTIME)) {
     StartTimeIntegral();
     SetIntegratedLength(src.GetIntegratedLength());
-    double times[AliPID::kSPECIES];
+    double times[AliPID::kSPECIESC];
     src.GetIntegratedTimes(times);
     SetIntegratedTimes(times);
   }
@@ -134,7 +134,7 @@ AliITSUTrackHyp &AliITSUTrackHyp::operator=(const AliESDtrack &src)
   if (src.IsOn(AliESDtrack::kTIME)) {
     StartTimeIntegral();
     SetIntegratedLength(src.GetIntegratedLength());
-    double times[AliPID::kSPECIES];
+    double times[AliPID::kSPECIESC];
     src.GetIntegratedTimes(times);
     SetIntegratedTimes(times);
   }
index fc843fcfe8b8c7a5f5c27c915449a110e34a4fc5..b3cef9290413cf90d00303ebef8baf7e4fb7357b 100644 (file)
@@ -305,7 +305,7 @@ Int_t AliITSUTrackerGlo::PropagateBack(AliESDEvent *esdEv)
   Double_t xyzTrk[3],xyzVtx[3]={GetX(),GetY(),GetZ()};
   AliITSUTrackHyp dummyTr;
   const double kWatchStep=10.; // for larger steps watch arc vs segment difference
-  Double_t times[AliPID::kSPECIES];
+  Double_t times[AliPID::kSPECIESC];
   //
   for (int itr=0;itr<fNTracksESD;itr++) {
     fCurrESDtrack = esdEv->GetTrack(itr);
index 66020a6221459699474d55c6a7554eab9f437e3d..1f1e7b838b035918fcd860997b7b9270ad8ac757 100644 (file)
@@ -277,7 +277,7 @@ void AliESDpid::MakeTOFPID(AliESDtrack *track, Float_t /*timeZeroTOF*/) const
   Int_t ibin = fTOFResponse.GetMomBin(track->GetP());
   Float_t timezero = fTOFResponse.GetT0bin(ibin);
 
-  Double_t time[AliPID::kSPECIES];
+  Double_t time[AliPID::kSPECIESC];
   track->GetIntegratedTimes(time);
 
   Double_t sigma[AliPID::kSPECIES];
@@ -397,7 +397,7 @@ Bool_t AliESDpid::CheckTOFMatching(AliESDtrack *track) const{
   //
     Bool_t status = kFALSE;
     
-    Double_t exptimes[5];
+    Double_t exptimes[AliPID::kSPECIESC];
     track->GetIntegratedTimes(exptimes);
     
     Float_t p = track->P();
index 950f1d519085efe4b7ae2118f44599cff475f9bd..18416deb551f247a7ebbd2e74efbdfe4a7398c78 100644 (file)
@@ -510,7 +510,7 @@ Bool_t AliExternalTrackParam::CorrectForMeanMaterial
   Double_t bg=GetP()/mass;
   if (mass<0) {
     if (mass<-990) {
-      AliDebug(2,Form("Mass %f corresponds to unknown PID particle = %e",mass));
+      AliDebug(2,Form("Mass %f corresponds to unknown PID particle",mass));
       return kFALSE;
     }
     bg = -2*bg;