SdGainRatioCorrector.h
Go to the documentation of this file.
1 #ifndef _SdGainRatioCorrectorKG_SdGainRatioCorrector_h_
2 #define _SdGainRatioCorrectorKG_SdGainRatioCorrector_h_
3 
4 #include <fwk/VModule.h>
5 #include <map>
6 
7 
8 namespace evt {
9  class Event;
10 }
11 
12 namespace SdGainRatioCorrectorKG {
13 
25 
26  public:
27  fwk::VModule::ResultFlag Init() override;
28  fwk::VModule::ResultFlag Run(evt::Event& event) override;
29  fwk::VModule::ResultFlag Finish() override { return eSuccess; }
30 
31  private:
33 
35  struct Factors {
36  static const short fgNPmts = 3;
37  float fPMT[fgNPmts] = { 0 };
38  };
39  typedef std::map<int, Factors> StationFactors;
40  typedef std::map<int, StationFactors> YearStationFactors;
42 
43 
44  REGISTER_MODULE("SdGainRatioCorrectorKG", SdGainRatioCorrector);
45 
46  };
47 
48 }
49 
50 
51 #endif
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
Report success to RunController.
Definition: VModule.h:62
std::map< int, StationFactors > YearStationFactors
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
REGISTER_MODULE("SdGainRatioCorrectorKG", SdGainRatioCorrector)
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.

, generated on Tue Sep 26 2023.