SdSimulationCalibrationFillerOG/SdSimulationCalibrationFiller.h
Go to the documentation of this file.
1 #ifndef _SdSimulationCalibrationFillerNEU_SdSimulationCalibrationFiller_h_
2 #define _SdSimulationCalibrationFillerNEU_SdSimulationCalibrationFiller_h_
3 
4 #include <fwk/VModule.h>
5 
6 
7 namespace utl {
8  class TimeStamp;
9 }
10 
11 namespace SdSimulationCalibrationFillerOG {
12 
32  public:
33  virtual ~SdSimulationCalibrationFiller() = default;
34 
35  fwk::VModule::ResultFlag Init() override;
36  fwk::VModule::ResultFlag Run(evt::Event& event) override;
37  fwk::VModule::ResultFlag Finish() override { return eSuccess; }
38 
39  private:
40  unsigned int fCalibVersion = 0;
42 
43  // These are magic numbers applied in SdCalibrator to get
44  // VEMs from the online peak values, so they have to be
45  // applied in reverse here in SdSimulationCalibrator.
48 
49  // For SmallPMT calibration filling (temporary TODO)
50  int fSPMTVersion = 0;
51  double fBeta = 0;
52  double fBetaError = 0;
53  double fChi2 = 0;
54  double fBetaLPMT[3] = { 0 };
55  double fBetaErrorLPMT[3] = { 0 };
56  double fChi2LPMT[3] = { 0 };
57 
58  REGISTER_MODULE("SdSimulationCalibrationFillerOG", SdSimulationCalibrationFiller);
59  };
60 
61 }
62 
63 
64 #endif
Report success to RunController.
Definition: VModule.h:62
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
Copy simulated detector calibration constants into sevt::StationCalibData block.
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
REGISTER_MODULE("SdSimulationCalibrationFillerOG", SdSimulationCalibrationFiller)
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
A TimeStamp holds GPS second and nanosecond for some event.
Definition: TimeStamp.h:110
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60

, generated on Tue Sep 26 2023.