SdSimulationCalibrator.h
Go to the documentation of this file.
1 #ifndef _SdSimulationCalibratorOG_SdSimulationCalibrator_h_
2 #define _SdSimulationCalibratorOG_SdSimulationCalibrator_h_
3 
4 #include <fwk/VModule.h>
5 #include <utl/Accumulator.h>
6 #include <utl/TimeDistribution.h>
7 #include <vector>
8 #include <fstream>
9 
10 
11 namespace sevt {
12  class Station;
13 }
14 namespace sdet {
15  class Station;
16 }
17 
18 namespace SdSimulationCalibratorOG {
19 
31 
32  public:
33  fwk::VModule::ResultFlag Init() override;
34  fwk::VModule::ResultFlag Run(evt::Event& event) override;
36 
37  private:
38  void ProcessStation(const sevt::Station& station, const sdet::Station& dStation);
39 
40  void ResizeArrays(const unsigned int n);
41 
42  void Clear();
43 
44  unsigned int fSingleTankId = 0;
45  bool fIsUUB = false;
46  int fHardwareType = 0;
47  int fNParticles = 0;
48 
49  std::string fSignature;
50 
52  typedef std::pair<Std, Std> StdPair;
53 
54  // bundle all WCD PMTs together to increase the statistics
55  // FBW or UB peak and charge
57  // downsampled-filtered peak
59  // ratio of FBW and downsampled-filtered peak
61 
62  // for separate PMT IDs
63  std::vector<StdPair> fPeakCharge;
64  std::vector<Std> fCompatibilityPeak;
65  std::vector<Std> fPeakRatio;
66 
67  std::ofstream fDumpFile;
68  std::ofstream* fDumpTraceFile = nullptr;
69 
70  REGISTER_MODULE("SdSimulationCalibratorOG", SdSimulationCalibrator);
71 
72  };
73 
74 }
75 
76 
77 #endif
Detector description interface for Station-related data.
Extracts calibration constants for a tank/electronics sim combo.
REGISTER_MODULE("SdSimulationCalibratorOG", SdSimulationCalibrator)
class to hold data at Station level
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
Module interface.
Definition: VModule.h:53
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
utl::Accumulator::SampleStandardDeviation Std
void ProcessStation(const sevt::Station &station, const sdet::Station &dStation)
Accumulates and calculates standard deviation.
Definition: XbArray.h:7

, generated on Tue Sep 26 2023.