]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALCalibAbs.cxx
Coverity corrections
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALCalibAbs.cxx
index b63b9b4f394f9eb71a5754273c9ec5f079429f42..a8320fefeda2c98b21fa7091af96199ea2314f10 100644 (file)
@@ -39,6 +39,7 @@ AliEMCALCalibAbs::AliEMCALCalibAbs(const int nSM) :
     fSuperModuleData.Add(new AliEMCALSuperModuleCalibAbs(i));
   }
   fSuperModuleData.Compress(); // compress the TObjArray
+  fSuperModuleData.SetOwner(kTRUE); 
 }
 
 //____________________________________________________________________________
@@ -61,11 +62,11 @@ void AliEMCALCalibAbs::ReadTextCalibAbsInfo(Int_t nSM, const TString &txtFileNam
 
   // list of values to be read
   // first: overall values for the whole SuperModule
-  Int_t iCalibMethod; 
-  Int_t iCalibPass; 
-  Float_t absoluteCalib; 
+  Int_t iCalibMethod = 0
+  Int_t iCalibPass = 0
+  Float_t absoluteCalib = 0
   // third: info for each tower
-  Float_t relativeCalib; // (ADC>GeV relative gain/conversion), value around 1
+  Float_t relativeCalib = 0; // (ADC>GeV relative gain/conversion), value around 1
   // end - all values
 
   Int_t nAPDPerSM = AliEMCALGeoParams::fgkEMCALCols * AliEMCALGeoParams::fgkEMCALRows;
@@ -184,7 +185,7 @@ void AliEMCALCalibAbs::ReadTreeCalibAbsInfo(TTree *tree,
   Int_t iSM = 0; // SuperModule index
   // list of values to be read
   // first: overall values for the whole SuperModule
-  Int_t iCalibMethod; 
+  Int_t iCalibMethod = 0
   Int_t iCalibPass = 0; 
   Float_t absoluteCalib = 0; 
   // third: info for each tower