Coverity warnings 22869 and 22872
authormasera <massimo.masera@cern.ch>
Wed, 14 Jan 2015 18:30:29 +0000 (19:30 +0100)
committermasera <massimo.masera@cern.ch>
Wed, 14 Jan 2015 18:30:49 +0000 (19:30 +0100)
ITS/ITSbase/AliITSRawStreamSPD.cxx
ITS/ITSbase/AliITStrackV2.h

index 6c0a72d..4fb7c2a 100644 (file)
@@ -429,7 +429,8 @@ void AliITSRawStreamSPD::CheckHeaderAndTrailerCount(Int_t ddlID) {
                           fEqPLChipTrailersRead,fExpectedHeaderTrailerCount,ddlID);
     AliError(errMess.Data());
     fRawReader->AddMajorErrorLog(kHeaderCountErr,errMess.Data());
-    if (fAdvancedErrorLog) fAdvLogger->ProcessError(kHeaderCountErr,ddlID,fEqPLBytesRead,fEqPLChipHeadersRead,errMess.Data());
+    //   if (fAdvancedErrorLog) fAdvLogger->ProcessError(kHeaderCountErr,ddlID,fEqPLBytesRead,fEqPLChipHeadersRead,errMess.Data());
+    if (fAdvancedErrorLog) fAdvLogger->ProcessError(kHeaderCountErr,ddlID,fEqPLBytesRead,fEqPLChipTrailersRead,errMess.Data());
   }
 }
 //__________________________________________________________________________
index 3cfd2cf..8487bc5 100644 (file)
@@ -161,7 +161,7 @@ inline void  AliITStrackV2::SetModuleIndexInfo(Int_t ilayer,Int_t idet,Int_t sta
   Int_t zInt = Int_t(zloc*10.);
 
   if(TMath::Abs(xloc*10.-(Float_t)xInt)>0.5){
-    if(zloc>0) { 
+    if(xloc>0) { 
       xInt++; 
     } 
     else {