#include <emcCalibrator.h>
Inherited by emcRawDataCalibrator, emcRawDataCalibratorV1, and emcRawDataCalibratorV2.
Inheritance diagram for emcCalibrator:
This class defines the old calibration interface.
Definition at line 30 of file emcCalibrator.h.
Public Member Functions | |
emcCalibrator () | |
ctor | |
virtual | ~emcCalibrator () |
virtual bool | Calibrate (const emcRawDataObject &rdo, emcMixedDataObject &mdo, const PHTimeStamp &when)=0 |
Calibrate interface going from RawDataObject to MixedDataObject. | |
virtual bool | Calibrate (const emcMixedDataObject &mdo, emcCalibratedDataObject &cdo, const PHTimeStamp &when)=0 |
Calibrate interface going from MixedDataObject to CalibratedDataObject. | |
virtual bool | Calibrate (const emcRawDataObject &rdo, emcCalibratedDataObject &cdo, const PHTimeStamp &when)=0 |
short cut to go from raw to calibrated | |
virtual void | ForceDBCollection (const PHTimeStamp &) |
virtual float | GetThresholdADC (void) const |
Get ADC threshold (below this threshold we do not try to calibrate energy). | |
virtual float | GetGlobalT0 (void) const |
Get Global T0 value. | |
virtual float | GetGlobalT0 (int index) const |
returns tower dependent corrections to T0 | |
virtual bool | GetCollectionStatus (const char *) const |
Get status of last try of collecting calibration data. | |
virtual int | GetHighLowLimit (void) const |
Get ADC channel count limit between high and low gain. | |
virtual const char * | GetName (void) const |
Get the name of this calibrator. | |
virtual int | GetVerbose (void) const |
Get verbose level. | |
virtual void | Print (void) const =0 |
A print utility to inform what the calibrator is doing. | |
virtual void | printData (const emcRawDataObject &rdo, const int towerId) const =0 |
the print utility to print data for individual tower | |
virtual void | Reset (void)=0 |
Make this calibrator a brand new fresh baby just born (got it?). | |
virtual bool | SelectSource (const char *type, emcManageable::EStorage source)=0 |
Select the source of calibration data. | |
virtual void | SetExtraRejectListFilename (const char *=0) |
Set the filename of a file containing a list of extra towers to be rejected, as compared to those in Q&A objects. | |
virtual void | SetSMBasedCorrectionFilename (const char *="") |
Set the filename of a file containing a list of corrections to be applied to calibration coefficients in individual supermodules. | |
virtual void | SetGlobalT0 (float T0=0.0) |
Set Global T0. | |
virtual void | SetTwrGlobalT0 (char *filename=0) |
Set Global T0 for every calorimeter Tower. | |
virtual void | SetThresholdADC (float thres=10.) |
Set ADC threshold. | |
virtual void | SetHighLowLimit (int lim=1024) |
Set ADC channel count limit between high and low gain. | |
virtual void | SetVerbose (int level=0) |
Set the verbose level. | |
void | SetZeroSuppression (bool swi=true) |
switches on and off the zero suppression flag | |
Bool_t | GetZeroSuppression () |
void | SetUseAmpPedestals (Bool_t flag=false) |
Sets UseAmplitudePedestals flag (default - false, no pre/post pedestal subtruction in amplitude measurements). | |
Bool_t | GetUseAmpPedestals () |
Sets USE-ONLY-LOW-GAIN flag (default - false, unless otherwise agreed - this is for monitoring purposes only). | |
void | SetUseOnlyLowGain (Bool_t flag=false) |
Bool_t | GetUseOnlyLowGain () |
Protected Attributes | |
std::string | fName |
Name of the calibrator. | |
Bool_t | fZeroSuppression |
tells if zero's should be suppressed from raw data | |
Bool_t | fUseAmpPedestals |
tells Calibrator to subtruct pedestals from pre and post amplitude measurements | |
Bool_t | fUseOnlyLowGain |
tells Calibrator NOT TO USE HIGH GAINS AND High-to-Low GAIN ratios | |
int | fVerbose |
Verbosity level. | |
float * | fTwrGlobalT0 |
Private Attributes | |
int | fHLLimit |
ADC channel count limit between high and low gain. | |
float | fThresholdADC |
ADC threshold. | |
float | fGlobalT0 |
GlobalT0. |
|
ctor
Definition at line 36 of file emcCalibrator.h. References fName, fTwrGlobalT0, SetGlobalT0(), SetHighLowLimit(), SetThresholdADC(), SetUseAmpPedestals(), SetUseOnlyLowGain(), and SetVerbose(). |
|
Definition at line 47 of file emcCalibrator.h. |
|
short cut to go from raw to calibrated
Implemented in emcRawDataCalibrator, emcRawDataCalibratorV1, and emcRawDataCalibratorV2. |
|
Calibrate interface going from MixedDataObject to CalibratedDataObject.
Implemented in emcRawDataCalibrator, emcRawDataCalibratorV1, and emcRawDataCalibratorV2. |
|
Calibrate interface going from RawDataObject to MixedDataObject.
Implemented in emcRawDataCalibrator, emcRawDataCalibratorV1, and emcRawDataCalibratorV2. Referenced by mEmcCalibratorModule::event(). |
|
Reimplemented in emcRawDataCalibratorV1. Definition at line 69 of file emcCalibrator.h. Referenced by mEmcCalibratorModule::ForceDBCollection(). |
|
Get status of last try of collecting calibration data.
Reimplemented in emcRawDataCalibrator, emcRawDataCalibratorV1, and emcRawDataCalibratorV2. Definition at line 99 of file emcCalibrator.h. Referenced by mEmcCalibratorModule::event(). |
|
returns tower dependent corrections to T0
Definition at line 93 of file emcCalibrator.h. References fTwrGlobalT0. |
|
Get Global T0 value. which in principle may be run dependent and which is needed almost entirely for presentation purposes (also if we want to use timing in Clustering and need it to be approximately correct) Definition at line 87 of file emcCalibrator.h. References fGlobalT0. Referenced by emcRawDataCalibratorV2::CalibrateTime(), emcRawDataCalibratorV1::CalibrateTime(), and emcRawDataCalibrator::CalibrateTime(). |
|
Get ADC channel count limit between high and low gain.
Definition at line 105 of file emcCalibrator.h. References fHLLimit. Referenced by emcRawDataCalibratorV2::Print(), emcRawDataCalibratorV1::Print(), and emcRawDataCalibrator::Print(). |
|
Get the name of this calibrator. (has to be the classname, so the CalibratorFactory can detect changes). Definition at line 113 of file emcCalibrator.h. References fName. Referenced by emcCalibratorFactory::Initialize(). |
|
Get ADC threshold (below this threshold we do not try to calibrate energy).
Definition at line 78 of file emcCalibrator.h. References fThresholdADC. Referenced by emcRawDataCalibratorV2::Print(), emcRawDataCalibratorV1::Print(), and emcRawDataCalibrator::Print(). |
|
Sets USE-ONLY-LOW-GAIN flag (default - false, unless otherwise agreed - this is for monitoring purposes only).
Definition at line 195 of file emcCalibrator.h. References fUseAmpPedestals. |
|
Definition at line 201 of file emcCalibrator.h. References fUseOnlyLowGain. |
|
Get verbose level.
Definition at line 119 of file emcCalibrator.h. References fVerbose. |
|
Definition at line 186 of file emcCalibrator.h. References fZeroSuppression. |
|
A print utility to inform what the calibrator is doing.
Implemented in emcRawDataCalibrator, emcRawDataCalibratorV1, and emcRawDataCalibratorV2. Referenced by mEmcRecoModuleRealYear3::setup(), and mEmcRecoModuleRealYear2::setupAna(). |
|
the print utility to print data for individual tower
Implemented in emcRawDataCalibrator, emcRawDataCalibratorV1, and emcRawDataCalibratorV2. |
|
Make this calibrator a brand new fresh baby just born (got it?).
Implemented in emcRawDataCalibrator, emcRawDataCalibratorV1, and emcRawDataCalibratorV2. |
|
Select the source of calibration data.
Implemented in emcRawDataCalibrator, emcRawDataCalibratorV1, and emcRawDataCalibratorV2. Referenced by mEmcCalibratorModule::SelectSource(). |
|
Set the filename of a file containing a list of extra towers to be rejected, as compared to those in Q&A objects.
Reimplemented in emcRawDataCalibrator, emcRawDataCalibratorV1, and emcRawDataCalibratorV2. Definition at line 138 of file emcCalibrator.h. Referenced by mEmcRecoModuleRealYear3::setup(), and mEmcRecoModuleRealYear2::setupAna(). |
|
Set Global T0.
Definition at line 147 of file emcCalibrator.h. References fGlobalT0. Referenced by emcCalibrator(). |
|
Set ADC channel count limit between high and low gain.
Definition at line 169 of file emcCalibrator.h. References fHLLimit. Referenced by emcCalibrator(), and mEmcCalibratorModule::SetHighLowLimit(). |
|
Set the filename of a file containing a list of corrections to be applied to calibration coefficients in individual supermodules.
Reimplemented in emcRawDataCalibrator, emcRawDataCalibratorV1, and emcRawDataCalibratorV2. Definition at line 142 of file emcCalibrator.h. |
|
Set ADC threshold.
Definition at line 162 of file emcCalibrator.h. References fThresholdADC. Referenced by emcCalibrator(). |
|
Set Global T0 for every calorimeter Tower. (implementation is user dependent) - DEFAULT - ZERO. Reimplemented in emcRawDataCalibrator, emcRawDataCalibratorV1, and emcRawDataCalibratorV2. Definition at line 154 of file emcCalibrator.h. References fTwrGlobalT0. |
|
Sets UseAmplitudePedestals flag (default - false, no pre/post pedestal subtruction in amplitude measurements).
Definition at line 189 of file emcCalibrator.h. References fUseAmpPedestals. Referenced by emcCalibrator(). |
|
Definition at line 196 of file emcCalibrator.h. References fUseOnlyLowGain. Referenced by emcCalibrator(). |
|
Set the verbose level.
Definition at line 175 of file emcCalibrator.h. References fVerbose. Referenced by emcCalibrator(). |
|
switches on and off the zero suppression flag
Definition at line 181 of file emcCalibrator.h. References fZeroSuppression. Referenced by mEmcCalibratorModule::SetZeroSuppression(). |
|
GlobalT0.
Definition at line 224 of file emcCalibrator.h. Referenced by GetGlobalT0(), and SetGlobalT0(). |
|
ADC channel count limit between high and low gain.
Definition at line 220 of file emcCalibrator.h. Referenced by GetHighLowLimit(), and SetHighLowLimit(). |
|
Name of the calibrator.
Definition at line 206 of file emcCalibrator.h. Referenced by emcCalibrator(), emcRawDataCalibrator::emcRawDataCalibrator(), emcRawDataCalibratorV1::emcRawDataCalibratorV1(), emcRawDataCalibratorV2::emcRawDataCalibratorV2(), and GetName(). |
|
ADC threshold.
Definition at line 222 of file emcCalibrator.h. Referenced by GetThresholdADC(), and SetThresholdADC(). |
|
Definition at line 215 of file emcCalibrator.h. Referenced by emcCalibrator(), GetGlobalT0(), emcRawDataCalibratorV2::SetTwrGlobalT0(), emcRawDataCalibratorV1::SetTwrGlobalT0(), emcRawDataCalibrator::SetTwrGlobalT0(), and SetTwrGlobalT0(). |
|
tells Calibrator to subtruct pedestals from pre and post amplitude measurements
Definition at line 210 of file emcCalibrator.h. Referenced by GetUseAmpPedestals(), emcRawDataCalibratorV2::Print(), and SetUseAmpPedestals(). |
|
tells Calibrator NOT TO USE HIGH GAINS AND High-to-Low GAIN ratios
Definition at line 212 of file emcCalibrator.h. Referenced by emcRawDataCalibratorV2::CollectForMDO(), GetUseOnlyLowGain(), emcRawDataCalibratorV2::Print(), and SetUseOnlyLowGain(). |
|
Verbosity level.
Definition at line 214 of file emcCalibrator.h. Referenced by emcRawDataCalibratorV2::CalibrateEnergy(), emcRawDataCalibratorV2::CollectForCDO(), emcRawDataCalibratorV1::CollectForCDO(), emcRawDataCalibrator::CollectForCDO(), emcRawDataCalibratorV1::CollectForMDO(), emcRawDataCalibrator::CollectForMDO(), GetVerbose(), and SetVerbose(). |
|
tells if zero's should be suppressed from raw data
Definition at line 208 of file emcCalibrator.h. Referenced by GetZeroSuppression(), emcRawDataCalibratorV2::Print(), emcRawDataCalibratorV1::Print(), emcRawDataCalibrator::Print(), emcRawDataCalibratorV2::Reset(), emcRawDataCalibratorV1::Reset(), emcRawDataCalibrator::Reset(), and SetZeroSuppression(). |