1 #ifndef ALICALOCALIBSIGNAL_H 2 #define ALICALOCALIBSIGNAL_H 39 class AliCaloRawStreamV3;
40 class AliCaloAltroMapping;
65 Bool_t
ProcessEvent(AliCaloRawStreamV3 *in, UInt_t Timestamp);
101 int GetNRef(
const int imod,
const int istripMod,
const int igain)
const 102 {
int refId =
GetRefNum(imod, istripMod, igain);
return fNRef[refId] ; }
116 int GetTowerNum(
const int imod,
const int icol,
const int irow)
const 120 int GetChannelNum(
const int imod,
const int icol,
const int irow,
const int igain)
const 124 int *imod,
int *icol,
int *irow,
int *igain)
const;
129 int GetRefNum(
const int imod,
const int istripMod,
const int igain)
const 133 int *imod,
int *istripMod,
int *igain)
const;
268 #endif // ALICALOCALIBSIGNAL_H kDetType fDetType
The detector type for this object.
int fNAcceptedEvents
Number of events accepted.
Bool_t ProcessEvent(AliRawReader *rawReader)
int GetNLowGain(int imod, int icol, int irow) const
Bool_t CheckLEDRefAboveAmp(const int *AmpVal, int resultArray[]) const
Base class for extraction of signal amplitude and peak position.
static const int fgkMaxTowers
AliEMCALGeoParams::fgkEMCALModules * AliEMCALGeoParams::fgkEMCALCols * AliEMCALGeoParams::fgkEMCALRow...
int fStartTime
Time of first event.
int fNHighGain[fgkMaxTowers]
Number of Amp. vs. Time readings per tower.
void ResetInfo()
Reset trees and counters.
void SetRunNumber(int runNo)
bool GetUseAverage() const
void CreateTrees()
Create/initialize/setup the TTrees.
TTree * GetTreeLEDAmpVsTime() const
kDetType
The detector types (add common enum as in AliCalibPedestal?)
int GetChannelNum(const int imod, const int icol, const int irow, const int igain) const
static const int fgkPhosRows
Number of rows per module for PHOS.
int GetNHighGain(int towId) const
int fDownscale
To select 1 out every N (fDownscale) events.
bool fReqFractionAboveAmp
Flag to select if we should do some event selection based on amplitudes.
int fNEvents
Number of events processed.
AliCaloRawAnalyzer * fRawAnalyzer
! e.g. for sample selection for fits
void SetStartTime(int startTime)
kDetType GetDetectorType() const
AliCaloAltroMapping ** fMapping
! Altro Mapping object
void SetUseAverage(bool b)
double fLatestHour
Largest fraction of hour since beginning of run, for amp vs. time graphs.
static const int fgkPhosCols
Number of columns per module for PHOS.
class for signal monitoring and calibration tools
Bool_t DecodeChannelNum(const int chanId, int *imod, int *icol, int *irow, int *igain) const
Output with the module, column, row, and gain for a given channel number.
bool GetReqFractionAboveAmp() const
Int_t GetFittingAlgorithm() const
double GetCurrentHour() const
void SetFittingAlgorithm(Int_t val)
int fRows
The number of rows per module.
int fRunNumber
The run number. Needs to be set by the user.
void SetParametersFromFile(const char *parameterFile)
TString GetCaloString() const
double fReqFractionAboveAmpCutVal
Required fraction that should be above cut.
void DeleteTrees()
Delete old objects and set pointers, what was created in the constructor (TTrees) ...
TString fileName(const char *dir, int runNumber, const char *da, int i, const char *type)
int fLEDRefs
The number of LED references/monitors per module.
TTree * fTreeAvgAmpVsTime
Store channel, gain, amp, and time info, for averages.
Bool_t DecodeRefNum(const int refId, int *imod, int *istripMod, int *igain) const
Output with the module, stripModule, and gain for a given reference number.
void SetAmpCutLEDRef(double d)
double GetReqFractionAboveAmpCutVal() const
TTree * fTreeAmpVsTime
Store channel, gain, amp, and time info.
TString fCaloString
ID for which detector type we have.
AliCaloAltroMapping ** GetAltroMapping() const
double fAmpCut
Amplitude cut value.
void SetAltroMapping(AliCaloAltroMapping **mapp)
void SetReqLEDRefAboveAmpCutVal(bool b)
double fHour
Fraction of hour since beginning of run, for amp vs. time graphs, for current event.
void SetReqFractionAboveAmp(bool b)
int GetRefNum(const int imod, const int istripMod, const int igain) const
int fNRef[fgkMaxRefs *2]
Number of Amp. vs. Time readings per tower, for LED refs; *2 for both gains.
TTimeStamp startTime(2009, 8, 7, 0, 0, 0)
void Zero()
Set all counters to 0; not cuts etc. though.
void SetReqFractionAboveAmpCutVal(double d)
AliCaloCalibSignal(kDetType detectorType=kEmCal)
int GetNRef(int refId) const
TTree * fTreeLEDAmpVsTime
Store channel, gain, amp, and time info, for LED reference.
AliCaloRawAnalyzer * GetRawAnalyzer() const
bool GetReqLEDRefAboveAmpCutVal() const
void WriteParametersToFile(const char *parameterFile)
Write parameters to file.
void SetSecInAverage(int secInAverage)
set length of the interval that should be used for the average calculation (determines number of bins...
int GetSecInAverage() const
int GetTowerNum(const int imod, const int icol, const int irow) const
int fNLowGain[fgkMaxTowers]
Number of Amp. vs. Time readings per tower, for low gain.
TTree * GetTreeAvgAmpVsTime() const
int GetNLowGain(int towId) const
Bool_t AddInfo(const AliCaloCalibSignal *sig)
int GetNRef(const int imod, const int istripMod, const int igain) const
int fColumns
The number of columns per module.
double fAmpCutLEDRef
Amplitude cut value for LED reference.
int fSecInAverage
Time interval for the graph averaging.
double GetLatestHour() const
AliCaloCalibSignal & operator=(const AliCaloCalibSignal &)
static const int fgkPhosModules
Number of modules for PHOS.
static const int fgkNumSecInHr
Number of seconds in an hour, for the fractional hour conversion on the time graph.
TTree * GetTreeAmpVsTime() const
virtual ~AliCaloCalibSignal()
Destructor.
Bool_t CheckFractionAboveAmp(const int *AmpVal, int resultArray[]) const
bool fReqLEDRefAboveAmpCutVal
Flag to select if we should require that signal is also seen in LED Reference/Monitoring channel...
static const int fgkPhosLEDRefs
No LED monitor channels for PHOS.
int GetNAcceptedEvents() const
void SetLatestHour(double d)
TTree * GetTreeLEDAvgAmpVsTime() const
Bool_t Save(TString fileName)
int fModules
The number of modules.
Int_t fFittingAlgorithm
Select the fitting algorithm.
TTree * fTreeLEDAvgAmpVsTime
Store channel, gain, amp, and time info, for LED reference - averages.
double GetAmpCutLEDRef() const
int GetNHighGain(int imod, int icol, int irow) const
bool fUseAverage
Flag to average graph points into over a time interval.
static const int fgkMaxRefs
AliEMCALGeoParams::fgkEMCALModules * AliEMCALGeoParams::fgkEMCALLEDRefs;.