1 #ifndef _MdMuonIntegratorAG_MdMuonIntegrator_h_
2 #define _MdMuonIntegratorAG_MdMuonIntegrator_h_
4 #include <fwk/VModule.h>
9 namespace MdMuonIntegratorAG {
12 class VMuonIntegratorFunctor;
30 VModule::ResultFlag
Init();
40 const double leadingMuonBin,
const double lastMuonBin,
41 const unsigned int windowSize,
const utl::TraceUSI& adcTrace);
47 void GetUncertainties(
double& errorLow,
double& errorHigh,
const double nMu,
const double resolution);
double fLowThreshold
Flag to indicate the low threshold to define the charge integration window. In terms of baseline RMS...
Report success to RunController.
double fHighThreshold
Flag to indicate the low threshold to define the charge integration window. In terms of baseline RMS...
VModule::ResultFlag Run(evt::Event &e)
Run: invoked once per event.
void GetSignalCharge(double &charge, const double leadingMuonBin, const double lastMuonBin, const unsigned int windowSize, const utl::TraceUSI &adcTrace)
Calculate signal charge.
REGISTER_MODULE("MdMuonIntegratorAG", MdMuonIntegrator)
Obtain the estimated number of muons with the ADC channel.
int fShowerMaxWidth
Flag to indicate the integration window if the signal does not reach the threshold (number of bins)...
int fBaseLineLowLimit
Flag to indicate the low limit for the baseline calculation (number of bins).
Template class for a FADC data or calibrated data container. Use the typedefs (TraceD, TraceI, etc.) defined in Trace-fwd.h.
int fBaseLineHighLimit
Flag to indicate the high limit for the baseline calculation (number of bins).
void GetMuonsWithADC(const evt::Event &event, mevt::Module &module)
Obtain muon number estimation with ADC channel.
VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
void GetModuleFirstMuon(int &leadingMuonBin, int &lastMuonBin, mevt::Module &module)
Get module first muon.
int fDelayBinaryADC
Flag to indicate the delay between the binary and ADC channel (number of bins).
void GetUncertainties(double &errorLow, double &errorHigh, const double nMu, const double resolution)
Obtain uncertainties.