]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliCaloCalibPedestal.h
SensorThickness was defined twice. Set inner chip thickness to 250mum to bypass bug...
[u/mrichter/AliRoot.git] / EMCAL / AliCaloCalibPedestal.h
index 8832b25c01e998cf61e78d9440eb12e8034af35b..0b68fabd70dc3e7afa9a859bf77b944b14af09c8 100644 (file)
@@ -92,9 +92,10 @@ class AliCaloCalibPedestal : public TObject {
   //void SetDeadMap(int i, TH2D *h) const {((TH2D*)fDeadMap[i])=h;}
        
   Bool_t IsBadChannel(int imod, int icol, int irow) const; 
-  void SetChannelStatus(int imod, int icol, int irow, int status); 
+  void  SetChannelStatus(int imod, int icol, int irow, int status); 
+  Int_t GetChannelStatus(int imod, int icol, int irow) const { return  (Int_t)((TH2D*)fDeadMap[imod])->GetBinContent(icol, irow);      }
        
-  TObjArray GetDeadMap()  const {return fDeadMap;}
+  TObjArray GetDeadMap()  {ValidateProfiles(); return fDeadMap;}
   void SetDeadMap(TObjArray map) {fDeadMap = map;}
        
   // Basic info: getters  
@@ -159,7 +160,9 @@ class AliCaloCalibPedestal : public TObject {
 
   //Saving functions
   Bool_t SaveHistograms(TString fileName, Bool_t saveEmptyHistos = kFALSE); //Saves the histograms to a .root file
-  
+
+  void Init() { ValidateProfiles(); } // do basic setup
+
  private:
   
   void ValidateProfiles(); //Makes sure that basic histos/profiles exist
@@ -168,7 +171,7 @@ class AliCaloCalibPedestal : public TObject {
   
   //The histograms. We use a TObjArray instead of a simple array,because this gives automatic streaming properties for the
   //class. A TClonesArray would be more efficient, but it's a bit more difficult to use and it doesn't matter too much
-  //since we have only around 12 objects (maximum) in the array anyway.
+  //since we have only one object per module in the array anyway.
   TObjArray fPedestalLowGain; // pedestal info for low gain
   TObjArray fPedestalHighGain; // pedestal info for high gain
   TObjArray fPedestalLEDRefLowGain; // pedestal LEDRef info for low gain