1 #ifndef _MdADCCalibrationAG_MdADCCalibration_h_
2 #define _MdADCCalibrationAG_MdADCCalibration_h_
4 #include <fwk/VModule.h>
8 namespace MdADCCalibrationAG{
11 class VADCCalibrationFunctor;
27 VModule::ResultFlag
Init();
29 VModule::ResultFlag
Finish();
std::map< int, double > fModuleOfflineCalibrationLG
Offline LG calibration needed for simulated data, and data with no online calibration.
bool fUseOfflineCalibration
Flag to indicate if the we should use the offline calibration, if available.
VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
REGISTER_MODULE("MdADCCalibrationAG", MdADCCalibration)
Counter level event data.
VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
std::map< int, double > fModuleOfflineResolutionHG
Offline HG single-muon resolution needed for simulated data, and data with no online calibration...
void GetOnlineCalibration(double &calibrationA, double &resolutionA, double &calibrationB, double &resolutionB, mevt::Module &module)
Get calibration histogram.
VModule::ResultFlag Run(evt::Event &e)
Run: invoked once per event.
void LoadModuleCalibration(mevt::Counter &counter, mevt::Module &module)
Obtain module calibration.
std::map< int, double > fModuleOfflineCalibrationHG
Offline HG calibration needed for simulated data, and data with no online calibration.
void GetOfflineCalibration(double &calibrationA, double &resolutionA, double &calibrationB, double &resolutionB, mevt::Counter &counter, mevt::Module &module)
Get calibration from XML.
std::map< int, double > fModuleOfflineResolutionLG
Offline LG single-muon resolution needed for simulated data, and data with no online calibration...
Obtain the estimated number of muons with the ADC channel.
bool fUseOnlineCalibration
Flag to indicate if the we should use the online calibration, if available.