coverity fix
authorFrancesco Noferini <noferini@pcali7.bo.infn.it>
Mon, 20 Jan 2014 14:12:07 +0000 (15:12 +0100)
committerFrancesco Noferini <noferini@pcali7.bo.infn.it>
Mon, 20 Jan 2014 14:12:07 +0000 (15:12 +0100)
TOF/AliTOFT0v1.cxx

index c362bc9..8c3c8fa 100644 (file)
@@ -387,7 +387,7 @@ Double_t * AliTOFT0v1::DefineT0(Option_t *option,Float_t pMinCut,Float_t pMaxCut
          Double_t time=t->GetTOFsignal();
          
          time*=1.E-3; // tof given in nanoseconds         
-         Double_t exptime[10]; t->GetIntegratedTimes(exptime);
+         Double_t exptime[AliPID::kSPECIESC]; t->GetIntegratedTimes(exptime);
          Double_t toflen=t->GetIntegratedLength();
          toflen=toflen/100.; // toflen given in m 
          
@@ -771,7 +771,7 @@ Float_t AliTOFT0v1::GetSigmaToVertex(AliESDtrack* esdTrack) const
 Bool_t AliTOFT0v1::CheckTPCMatching(AliESDtrack *track,Int_t imass) const{
     Bool_t status = kFALSE;
     
-    Double_t exptimes[5];
+    Double_t exptimes[AliPID::kSPECIESC];
     track->GetIntegratedTimes(exptimes);
     
     Float_t dedx = track->GetTPCsignal();