]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALCalibTimeDepCorrection.h
Fix Coverity
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALCalibTimeDepCorrection.h
index d7650daf7468a11f7de5c29ce67e0d120063c5c7..fb106009bffd94672c274f9edeedc7c3518e169e 100644 (file)
@@ -38,8 +38,8 @@ class AliEMCALSuperModuleCalibTimeDepCorrection : public TObject {
     { return &fCorrection[icol][irow]; };
 
  private:
-  Int_t fSuperModuleNum;
-  TArrayF fCorrection[AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows]; 
+  Int_t fSuperModuleNum; // SM id
+  TArrayF fCorrection[AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows]; // values
 
   ClassDef(AliEMCALSuperModuleCalibTimeDepCorrection, 2) // help class
 };
@@ -50,7 +50,7 @@ class AliEMCALCalibTimeDepCorrection : public TObject {
   AliEMCALCalibTimeDepCorrection(const int nSM = AliEMCALGeoParams::fgkEMCALModules);
 
   // interface methods; getting the whole struct should be more efficient though
-  void InitCorrection(Int_t nSM, Int_t nBins, Float_t val); // assign a certain value to all 
+  void InitCorrection(Int_t nSM, Int_t nBins, Float_t val=1.0); // assign a certain value to all 
   // use the methods below with caution: take care that your argument ranges are valid
   void SetCorrection(Int_t smIndex, Int_t iCol, Int_t iRow, Int_t iBin, Float_t val=1.0); // assign a certain value to a given bin
   Float_t GetCorrection(Int_t smIndex, Int_t iCol, Int_t iRow, Int_t iBin) const; // assign a certain value to a given bin