MdMuonIntegrator.h
Go to the documentation of this file.
1 #ifndef _MdMuonIntegratorAG_MdMuonIntegrator_h_
2 #define _MdMuonIntegratorAG_MdMuonIntegrator_h_
3 
4 #include <fwk/VModule.h>
5 #include <vector>
6 #include <fstream>
7 
8 
9 namespace MdMuonIntegratorAG {
10 
12  class VMuonIntegratorFunctor;
13 
14 
24  class MdMuonIntegrator : public boost::noncopyable, public fwk::VModule {
25 
26  public:
29 
30  VModule::ResultFlag Init();
31  VModule::ResultFlag Run(evt::Event& e);
32  VModule::ResultFlag Finish() { return eSuccess; }
33 
34  private:
36  void GetMuonsWithADC(const evt::Event& event, mevt::Module& module);
37 
39  void GetSignalCharge(double& charge,
40  const double leadingMuonBin, const double lastMuonBin,
41  const unsigned int windowSize, const utl::TraceUSI& adcTrace);
42 
44  void GetModuleFirstMuon(int& leadingMuonBin, int& lastMuonBin, mevt::Module& module);
45 
47  void GetUncertainties(double& errorLow, double& errorHigh, const double nMu, const double resolution);
48 
51 
54 
56  double fLowThreshold;
57 
60 
63 
66 
67  REGISTER_MODULE("MdMuonIntegratorAG", MdMuonIntegrator);
68 
69  };
70 
71 }
72 
73 
74 #endif
double fLowThreshold
Flag to indicate the low threshold to define the charge integration window. In terms of baseline RMS...
Report success to RunController.
Definition: VModule.h:62
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.
Module level event data.
Definition: MEvent/Module.h:41
int fShowerMaxWidth
Flag to indicate the integration window if the signal does not reach the threshold (number of bins)...
Module interface.
Definition: VModule.h:53
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.
Definition: Trace-fwd.h:19
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.

, generated on Tue Sep 26 2023.