Coverity 18652 + warnings
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Feb 2012 12:56:12 +0000 (12:56 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Feb 2012 12:56:12 +0000 (12:56 +0000)
HMPID/AliHMPIDQADataMakerRec.cxx
HMPID/AliHMPIDRawStream.cxx
HMPID/AliHMPIDRawStream.h

index 435d50e..c11e0e8 100644 (file)
@@ -283,7 +283,7 @@ void AliHMPIDQADataMakerRec::MakeRaws(AliRawReader *rawReader)
     if (! isHmpInRawData ) return;                                              // if HMP is not in the event then skip it
     
     AliHMPIDRawStream stream(rawReader);
-    Int_t ddlOcc[14]={0};  
+    //    Int_t ddlOcc[14]={0};  
     Int_t isHMPin=0;
     UInt_t word; Int_t Nddl, r, d, a;
     Int_t numPadsInDdl;
@@ -306,7 +306,7 @@ void AliHMPIDQADataMakerRec::MakeRaws(AliRawReader *rawReader)
            }
           
           numPadsInDdl= stream.GetNPads();
-           ddlOcc[ddl] = numPadsInDdl;
+          //           ddlOcc[ddl] = numPadsInDdl;
            FillRawsData(14+14+42+42+6,ddl+1,numPadsInDdl/11520.0*100.0);
             
           //___ loop on pads from raw data from a ddl
index 18fc8ee..e9d761d 100644 (file)
@@ -213,7 +213,9 @@ Bool_t AliHMPIDRawStream::Next()
   fPosition = 0;
   Bool_t status=kFALSE;
   fRawDataSize=0;        
-  fDDLNumber = ddlArray[fRawReader->GetDDLID()];
+  fDDLNumber = -1;
+  if (fRawReader->GetDDLID()>=0)
+    fDDLNumber = ddlArray[fRawReader->GetDDLID()];
   
   if(fDDLNumber<0) {
     AliWarning(Form("fDDLNumber not a acceptable value %i",fDDLNumber));
index c3283d1..6043002 100644 (file)
@@ -331,7 +331,7 @@ void AliHMPIDRawStream::WriteRaw(TObjArray *pDigAll)
   Int_t  cntRdig=0,cntLdig=0;
   
   UInt_t posLmarker,posRmarker;
-  Int_t digcnt=0;
+  //  Int_t digcnt=0;
 
   Int_t isDigThere[14][25][11][48];
   
@@ -359,7 +359,7 @@ void AliHMPIDRawStream::WriteRaw(TObjArray *pDigAll)
     ddlR->WriteBuffer((char*)&header,sizeof(header));            //will be rewritten later when total size of DDL is known
     
     UInt_t w32=0;                 //32 bits data word 
-    digcnt=0;
+    //    digcnt=0;
     
     //added frimware control words
     Write5FirmwareWords(ddlL);  cntL+=5;