#include <mEmcCalibratorModule.h>
Inherits EMCModule.
Inheritance diagram for mEmcCalibratorModule:
See mEmcCalibratorModulev1 and mEmcCalibratorModulev2 now.
Definition at line 35 of file mEmcCalibratorModule.h.
Public Member Functions | |
mEmcCalibratorModule (const PHTimeStamp &ts, const char *calibrator="emcRawDataCalibrator", emcManageable::EStorage source=emcManageable::kDB_Objy) | |
default ctor | |
mEmcCalibratorModule (const char *configfilename="emcwb.conf", const char *calibrator="emcRawDataCalibrator", emcManageable::EStorage source=emcManageable::kDB_Objy) | |
virtual | ~mEmcCalibratorModule () |
dtor | |
emcRawDataObject * | GetEmcRawDataObject () |
returns a raw data object | |
bool | Init (const char *configfilename="emcwb.conf", const char *calibrator="emcRawDataCalibrator", emcManageable::EStorage source=emcManageable::kDB_Objy) |
initializes the module: config file (from DB), type of calibrator and data sources (default is DB) | |
bool | Init (const PHTimeStamp &ts, const char *calibrator="emcRawDataCalibrator", emcManageable::EStorage source=emcManageable::kDB_Objy) |
PHBoolean | event (PHCompositeNode *root) |
Do the real job here. | |
bool | SetCalibrator (const char *calibrator) |
Setter. | |
bool | SetHighLowLimit (int limit=512) |
Setter. | |
void | SetVerbose (int verbo) |
Setter. | |
bool | SetZeroSuppression (bool ZeroSupression=true) |
Setter. | |
void | SelectSource (emcManageable::EStorage source) |
Setter. | |
void | UseTimeStamp (const PHTimeStamp &when) |
Tell the calibrator to use only this time stamp. | |
void | ForceDBCollection () |
Use this one if framework (e.g. | |
Private Member Functions | |
bool | Config (const char *calibrator, emcManageable::EStorage source) |
Private Attributes | |
std::map< int, int > | fIndexMap |
std::map< int, int >::iterator | fIndexMapIter |
PHTimeStamp | fTimeStamp |
bool | fUseTimeStamp |
emcCalibratedDataObject * | fCdo |
emcRawDataAccessor * | fRda |
emcMixedDataObject | fMdo |
emcCalibrator * | fRdc |
emcRawDataObject * | fRdo |
bool | fZeroSuppression |
int | fVerbose |
int | fHighLowLimit |
|
default ctor
Definition at line 48 of file mEmcCalibratorModule.C. References Init(), and EMCModule::name. |
|
Definition at line 38 of file mEmcCalibratorModule.C. References Init(), and EMCModule::name. |
|
dtor
Definition at line 51 of file mEmcCalibratorModule.h. |
|
tell which calibration method to use get the corresponding calibrator object set a few parameters needed by the calibrator Definition at line 245 of file mEmcCalibratorModule.C. References fIndexMap, fMdo, fRda, fRdc, fRdo, fTimeStamp, fUseTimeStamp, emcCalibratorFactory::GetCalibrator(), emcRawDataAccessor::GetDynamicData(), EmcDynamicData::getEmcMap(), EmcDynamicData::getEmcSize(), emcRawDataAccessor::GetRawDataObject(), emcCalibratorFactory::Initialize(), SelectSource(), SetHighLowLimit(), SetZeroSuppression(), and emcMixedDataObject::UseHGLG(). Referenced by Init(). |
|
Do the real job here.
Implements EMCModule. Definition at line 58 of file mEmcCalibratorModule.C. References emcCalibrator::Calibrate(), fCdo, emcDataFormatter::fillRDO(), fMdo, fRdc, fRdo, fTimeStamp, fUseTimeStamp, fVerbose, emcCalibrator::GetCollectionStatus(), emcCalibratedDataObject::GetSize(), emcDataObject::GetSize(), and j. |
|
Use this one if framework (e.g. Fun4All) disconnect itself from DB even before first event is read in. Definition at line 332 of file mEmcCalibratorModule.C. References emcCalibrator::ForceDBCollection(), fRdc, and fTimeStamp. |
|
returns a raw data object
Definition at line 55 of file mEmcCalibratorModule.h. References fRdo. |
|
get the raw data accessor unique instance, from DB Definition at line 232 of file mEmcCalibratorModule.C. References Config(), fRda, fVerbose, and emcRawDataAccessor::GetInstance(). |
|
initializes the module: config file (from DB), type of calibrator and data sources (default is DB) get the raw data accessor unique instance Definition at line 219 of file mEmcCalibratorModule.C. References Config(), fRda, fVerbose, and emcRawDataAccessor::GetInstance(). Referenced by mEmcCalibratorModule(). |
|
Setter.
Definition at line 276 of file mEmcCalibratorModule.C. References fRdc, and emcCalibrator::SelectSource(). Referenced by Config(). |
|
Setter. get the corresponding calibrator object Definition at line 282 of file mEmcCalibratorModule.C. References fRdc, emcCalibratorFactory::GetCalibrator(), and emcCalibratorFactory::Initialize(). |
|
Setter.
Definition at line 297 of file mEmcCalibratorModule.C. References fHighLowLimit, fRdc, and emcCalibrator::SetHighLowLimit(). Referenced by Config(). |
|
Setter.
Definition at line 80 of file mEmcCalibratorModule.h. References fVerbose. |
|
Setter.
Definition at line 310 of file mEmcCalibratorModule.C. References fRdc, fZeroSuppression, and emcCalibrator::SetZeroSuppression(). Referenced by Config(). |
|
Tell the calibrator to use only this time stamp. If this method is not called, time stamp will be fetched from each event. Definition at line 324 of file mEmcCalibratorModule.C. References fTimeStamp, and fUseTimeStamp. Referenced by mEmcRecoModuleRealYear2::setupAna(). |
|
Definition at line 113 of file mEmcCalibratorModule.h. Referenced by event(). |
|
Definition at line 120 of file mEmcCalibratorModule.h. Referenced by SetHighLowLimit(). |
|
Definition at line 109 of file mEmcCalibratorModule.h. Referenced by Config(). |
|
Definition at line 110 of file mEmcCalibratorModule.h. |
|
Definition at line 115 of file mEmcCalibratorModule.h. |
|
Definition at line 114 of file mEmcCalibratorModule.h. |
|
Definition at line 116 of file mEmcCalibratorModule.h. Referenced by Config(), event(), ForceDBCollection(), SelectSource(), SetCalibrator(), SetHighLowLimit(), and SetZeroSuppression(). |
|
Definition at line 117 of file mEmcCalibratorModule.h. Referenced by Config(), event(), and GetEmcRawDataObject(). |
|
Definition at line 111 of file mEmcCalibratorModule.h. Referenced by Config(), event(), ForceDBCollection(), and UseTimeStamp(). |
|
Definition at line 112 of file mEmcCalibratorModule.h. Referenced by Config(), event(), and UseTimeStamp(). |
|
Definition at line 119 of file mEmcCalibratorModule.h. Referenced by event(), Init(), and SetVerbose(). |
|
Definition at line 118 of file mEmcCalibratorModule.h. Referenced by SetZeroSuppression(). |