//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
//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
//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