mEmcCalibratorModule Class Reference
[Deprecated Stuff]

#include <mEmcCalibratorModule.h>

Inherits EMCModule.

Inheritance diagram for mEmcCalibratorModule:

Inheritance graph
[legend]
List of all members.

Detailed Description

(OLD) Was our calibration module.

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
emcRawDataObjectGetEmcRawDataObject ()
 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
emcCalibratedDataObjectfCdo
emcRawDataAccessorfRda
emcMixedDataObject fMdo
emcCalibratorfRdc
emcRawDataObjectfRdo
bool fZeroSuppression
int fVerbose
int fHighLowLimit


Constructor & Destructor Documentation

mEmcCalibratorModule::mEmcCalibratorModule const PHTimeStamp &  ts,
const char *  calibrator = "emcRawDataCalibrator",
emcManageable::EStorage  source = emcManageable::kDB_Objy
 

default ctor

Definition at line 48 of file mEmcCalibratorModule.C.

References Init(), and EMCModule::name.

mEmcCalibratorModule::mEmcCalibratorModule const char *  configfilename = "emcwb.conf",
const char *  calibrator = "emcRawDataCalibrator",
emcManageable::EStorage  source = emcManageable::kDB_Objy
 

Definition at line 38 of file mEmcCalibratorModule.C.

References Init(), and EMCModule::name.

virtual mEmcCalibratorModule::~mEmcCalibratorModule  )  [inline, virtual]
 

dtor

Definition at line 51 of file mEmcCalibratorModule.h.


Member Function Documentation

bool mEmcCalibratorModule::Config const char *  calibrator,
emcManageable::EStorage  source
[private]
 

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().

PHBoolean mEmcCalibratorModule::event PHCompositeNode *  root  )  [virtual]
 

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.

void mEmcCalibratorModule::ForceDBCollection  ) 
 

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.

emcRawDataObject* mEmcCalibratorModule::GetEmcRawDataObject  )  [inline]
 

returns a raw data object

Definition at line 55 of file mEmcCalibratorModule.h.

References fRdo.

bool mEmcCalibratorModule::Init const PHTimeStamp &  ts,
const char *  calibrator = "emcRawDataCalibrator",
emcManageable::EStorage  source = emcManageable::kDB_Objy
 

get the raw data accessor unique instance, from DB

Definition at line 232 of file mEmcCalibratorModule.C.

References Config(), fRda, fVerbose, and emcRawDataAccessor::GetInstance().

bool mEmcCalibratorModule::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)

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().

void mEmcCalibratorModule::SelectSource emcManageable::EStorage  source  ) 
 

Setter.

Definition at line 276 of file mEmcCalibratorModule.C.

References fRdc, and emcCalibrator::SelectSource().

Referenced by Config().

bool mEmcCalibratorModule::SetCalibrator const char *  calibrator  ) 
 

Setter.

get the corresponding calibrator object

Definition at line 282 of file mEmcCalibratorModule.C.

References fRdc, emcCalibratorFactory::GetCalibrator(), and emcCalibratorFactory::Initialize().

bool mEmcCalibratorModule::SetHighLowLimit int  limit = 512  ) 
 

Setter.

Definition at line 297 of file mEmcCalibratorModule.C.

References fHighLowLimit, fRdc, and emcCalibrator::SetHighLowLimit().

Referenced by Config().

void mEmcCalibratorModule::SetVerbose int  verbo  )  [inline]
 

Setter.

Definition at line 80 of file mEmcCalibratorModule.h.

References fVerbose.

bool mEmcCalibratorModule::SetZeroSuppression bool  ZeroSupression = true  ) 
 

Setter.

Definition at line 310 of file mEmcCalibratorModule.C.

References fRdc, fZeroSuppression, and emcCalibrator::SetZeroSuppression().

Referenced by Config().

void mEmcCalibratorModule::UseTimeStamp const PHTimeStamp &  when  ) 
 

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().


Member Data Documentation

emcCalibratedDataObject* mEmcCalibratorModule::fCdo [private]
 

Definition at line 113 of file mEmcCalibratorModule.h.

Referenced by event().

int mEmcCalibratorModule::fHighLowLimit [private]
 

Definition at line 120 of file mEmcCalibratorModule.h.

Referenced by SetHighLowLimit().

std::map<int, int> mEmcCalibratorModule::fIndexMap [private]
 

Definition at line 109 of file mEmcCalibratorModule.h.

Referenced by Config().

std::map<int, int>::iterator mEmcCalibratorModule::fIndexMapIter [private]
 

Definition at line 110 of file mEmcCalibratorModule.h.

emcMixedDataObject mEmcCalibratorModule::fMdo [private]
 

Definition at line 115 of file mEmcCalibratorModule.h.

Referenced by Config(), and event().

emcRawDataAccessor* mEmcCalibratorModule::fRda [private]
 

Definition at line 114 of file mEmcCalibratorModule.h.

Referenced by Config(), and Init().

emcCalibrator* mEmcCalibratorModule::fRdc [private]
 

Definition at line 116 of file mEmcCalibratorModule.h.

Referenced by Config(), event(), ForceDBCollection(), SelectSource(), SetCalibrator(), SetHighLowLimit(), and SetZeroSuppression().

emcRawDataObject* mEmcCalibratorModule::fRdo [private]
 

Definition at line 117 of file mEmcCalibratorModule.h.

Referenced by Config(), event(), and GetEmcRawDataObject().

PHTimeStamp mEmcCalibratorModule::fTimeStamp [private]
 

Definition at line 111 of file mEmcCalibratorModule.h.

Referenced by Config(), event(), ForceDBCollection(), and UseTimeStamp().

bool mEmcCalibratorModule::fUseTimeStamp [private]
 

Definition at line 112 of file mEmcCalibratorModule.h.

Referenced by Config(), event(), and UseTimeStamp().

int mEmcCalibratorModule::fVerbose [private]
 

Definition at line 119 of file mEmcCalibratorModule.h.

Referenced by event(), Init(), and SetVerbose().

bool mEmcCalibratorModule::fZeroSuppression [private]
 

Definition at line 118 of file mEmcCalibratorModule.h.

Referenced by SetZeroSuppression().


The documentation for this class was generated from the following files: