1 #ifndef ALICALOCALIBPEDESTAL_H 2 #define ALICALOCALIBPEDESTAL_H 38 #include "TProfile2D.h" 40 #include "TObjArray.h" 43 class AliCaloRawStreamV3;
44 class AliCaloAltroMapping;
144 Bool_t
IsBadChannel (
int imod,
int icol,
int irow)
const;
230 Bool_t
SaveHistograms(TString fileName, Bool_t saveEmptyHistos = kFALSE);
321 #endif // ALICALOCALIBPEDESTAL_H int fRowMin
Minimum Row number.
Bool_t fSelectPedestalSamples
select to to use only some range of samples for pedestal calc.
Int_t GetChannelStatus(int imod, int icol, int irow) const
TProfile2D * GetPedProfileHighGain(int i)
double fHotSigma
if pedestal rms more than fHotSigma away from normal -> tower is assigned kHot
TProfile2D * GetPedProfileLowGain(int i)
kDetType GetDetectorType() const
TProfile * GetPedLEDRefProfileHighGainDiff(int i)
int fWarningThreshold
Peak - ped threshold used for warm/warning towers evaluation.
TProfile2D * GetPeakProfileHighGain(int i)
TProfile2D * GetPeakProfileLowGainDiff(int i)
TProfile * GetPedLEDRefProfileHighGain(int i)
void ValidateProfiles()
Make sure that basic histos/profiles exist.
AliCaloCalibPedestal & operator=(AliCaloCalibPedestal &source)
Assignment operator; use copy ctor to make life easy..
double fWarningFraction
if(Peak - ped) > threshold in more than this fraction of event -> tower is assigned kWarning ...
double GetWarningFraction() const
Bool_t ProcessEvent(AliRawReader *rawReader)
kDetType
The detector types.
TProfile2D * GetPeakProfileLowGainRatio(int i)
TObjArray fPedestalLEDRefHighGain
Pedestal LEDRef info for high gain.
TObjArray fPedestalLowGainRatio
! The ratio of profiles between pedestal low gain and the reference object
int GetDeadThreshold() const
TObjArray fPeakMinusPedHighGain
(peak-pedestal) info for high gain
int fLEDRefs
The number of LED references/monitors per module.
int fNChanFills
Total number of channel fills (NChan * NEvents if not zero-suppressed)
kDeadMapEntry
The entries being put to the deadmap.
void SetChannelStatus(int imod, int icol, int irow, int status)
TObjArray fPedestalHighGainDiff
! Difference of profiles between pedestal high gain and the reference object
double GetHotSigma() const
TH2F * GetPeakHighGainHisto(int i)
AliCaloCalibPedestal(kDetType detectorType=kEmCal)
void SetLastPedestalSample(int i)
int GetWarningThreshold() const
TObjArray fPeakMinusPedHighGainDiff
! Difference of profiles between peak high gain and the reference object
AliCaloCalibPedestal * fReference
! A reference object, for comparing the accumulated results to a previous run
void SetWarningFraction(double d)
Bool_t LoadReferenceCalib(TString fileName, TString objectName)
Loads another AliCaloCalibPedestal by name "objectName" from the file "fileName", for reference...
int fDeadTowers
Number of towers found dead.
int GetRefRunNumber() const
TProfile * GetPedLEDRefProfileLowGain(int i)
TProfile2D * GetPeakProfileHighGainRatio(int i)
void ComputeHotAndWarningTowers(const char *hotMapFile=0)
Computes/finds the hot/noisy tower values.
double GetDeadTowerRatio() const
TObjArray fPeakMinusPedLowGainRatio
! The ratio of profiles between peak low gain and the reference object
TString fileName(const char *dir, int runNumber, const char *da, int i, const char *type)
int fModules
The number of modules.
static const int fgkPhosLEDRefs
No LED monitor channels for PHOS, set to 1 just to keep code simpler (also create LEDRef histos for P...
void ValidateComparisonProfiles()
Make sure that fPedestalLowGainDiff and fPedestalHighGainDiff profiles exist.
int fResurrectedTowers
! Towers that have been resurrected from the dead, compared to the reference
void SetAltroMapping(AliCaloAltroMapping **mapp)
TObjArray fPeakMinusPedLowGainDiff
! Difference of profiles between peak low gain and the reference object
TString fCaloString
ID for which detector type we have.
virtual ~AliCaloCalibPedestal()
Destructor.
int GetLastPedestalSample() const
void WriteParametersToFile(const char *parameterFile)
Write parameters in file.
void SetDeadMap(TObjArray map)
kDetType fDetType
The detector type for this object.
TProfile2D * GetPedProfileHighGainRatio(int i)
int fDeadThreshold
Peak - ped threshold used for dead towers evaluation.
int GetDeadTowerCount() const
int GetDeadTowerResurrected() const
static const int fgkPhosCols
Number of columns per module for PHOS.
TObjArray fPedestalLowGain
Pedestal info for low gain.
Bool_t IsBadChannel(int imod, int icol, int irow) const
int fColumns
The number of columns per module.
void SetRunNumber(int runNo)
TProfile2D * GetPedProfileLowGainRatio(int i)
TProfile * GetPedLEDRefProfileLowGainRatio(int i)
Bool_t GetSelectPedestalSamples() const
Get select to to use only some range of samples for pedestal calc.
TObjArray fDeadMap
The dead map.
void SetHotSigma(double d)
void SetFirstPedestalSample(int i)
void SetDeadThreshold(int i)
int fRows
The number of rows per module.
void ComputeDeadTowers(const char *deadMapFile=0)
TProfile * GetPedLEDRefProfileLowGainDiff(int i)
TObjArray fPeakMinusPedHighGainHisto
(peak-pedestal TH2F) info for high gain, used for hot towers eveluation
pedestal/bad map monitoring and calibration tools
static const int fgkPhosRows
Number of rows per module for PHOS.
TObjArray fPedestalHighGainRatio
! The ratio of profiles between pedestal high gain and the reference object
Bool_t SaveHistograms(TString fileName, Bool_t saveEmptyHistos=kFALSE)
Saves all the histograms (or profiles, to be accurate) to the designated file.
TObjArray fPedestalLEDRefHighGainDiff
! Difference of profiles between pedestal LED high gain and the reference object
void SetWarningThreshold(int i)
TProfile * GetPedLEDRefProfileHighGainRatio(int i)
static const int fgkPhosModules
Number of modules for PHOS.
int fRowMultiplier
Multiplication factor to get proper row range between PHOS and EMCAL.
int fNewDeadTowers
! Towers that have died since the reference run
void SetParametersFromFile(const char *parameterFile)
AliCaloAltroMapping ** fMapping
! Altro Mapping object
int fLastPedestalSample
Last sample to use.
AliCaloCalibPedestal * GetReference() const
Get the reference object. Needed for debug, will probably be removed later.
TProfile2D * GetPeakProfileHighGainDiff(int i)
int GetNChanFills() const
int fNEvents
Total number of events processed,.
int fRowMax
Maximum Row number.
void Reset()
Resets arrays/histograms.
TObjArray fPedestalHighGain
Pedestal info for high gain.
int fFirstPedestalSample
first sample to use
TProfile2D * GetPedProfileHighGainDiff(int i)
TObjArray fPedestalLowGainDiff
! Difference of profiles between pedestal low gain and the reference object
TProfile2D * GetPeakProfileLowGain(int i)
TObjArray fPedestalLEDRefHighGainRatio
! The ratio of profiles between pedestal LED high gain and the reference object
int GetRowMultiplier() const
void SetDeadTowerCount(Int_t dead)
TObjArray fPeakMinusPedHighGainRatio
! The ratio of profiles between peak high gain and the reference object
TString GetCaloString() const
void SetSelectPedestalSamples(Bool_t flag=kFALSE)
Set select to to use only some range of samples for pedestal calc.
int fRunNumber
The run number. Needs to be set by the user.
TObjArray fPedestalLEDRefLowGainDiff
! Difference of profiles between pedestal LED low gain and the reference object
Bool_t AddInfo(AliCaloCalibPedestal *ped)
Picks up new info from supplied argument.
int GetDeadTowerNew() const
AliCaloAltroMapping ** GetAltroMapping() const
int GetFirstPedestalSample() const
void ComputeDiffAndRatio()
TProfile2D * GetPedProfileLowGainDiff(int i)
TObjArray fPedestalLEDRefLowGain
Pedestal LEDRef info for low gain.
TObjArray fPeakMinusPedLowGain
(peak-pedestal) info for low gain
Bool_t SetReference(AliCaloCalibPedestal *ref)
Set reference object.
TObjArray fPedestalLEDRefLowGainRatio
! The ratio of profiles between pedestal LED low gain and the reference object
void CompressAndSetOwner()