SdHistogramFitterKG.h
Go to the documentation of this file.
1 #ifndef _SdHistogramFitterKG_SdHistogramFitterKG_h_
2 #define _SdHistogramFitterKG_SdHistogramFitterKG_h_
3 
4 #include <fwk/VModule.h>
5 #include <sevt/Station.h>
6 
7 
8 namespace SdHistogramFitterKG {
9 
23 
24  public:
25  fwk::VModule::ResultFlag Init() override;
26  fwk::VModule::ResultFlag Run(evt::Event& event) override;
27  fwk::VModule::ResultFlag Finish() override { return eSuccess; }
28 
29  private:
31  bool CopySmallPMTCalibData(sevt::Station& station);
32 
33  bool fToldYaPeak = false;
34  bool fToldYaCharge = false;
35  bool fToldYaShape = false;
36  bool fIsUUB = false;
37 
38  // from XML config file
39  std::pair<double, double> fPeakFitRange{0, 0};
40  double fPeakFitChi2Accept = 0;
45  std::vector<int> fChargeSigmaThresholdFactors;
51  std::pair<double, double> fChargeMIPRange{5, 500};
52  std::pair<double, double> fShapeFitRangeBefore12{0, 0};
53  std::pair<double, double> fShapeFitRangeSince12{0, 0};
54  std::pair<double, double> fChargeVEMRangeUub{0, 0};
55 
56  REGISTER_MODULE("SdHistogramFitterKG", SdHistogramFitter);
57 
58  };
59 
60 }
61 
62 
63 #endif
std::pair< double, double > fChargeVEMRangeUub
Report success to RunController.
Definition: VModule.h:62
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
class to hold data at Station level
std::pair< double, double > fPeakFitRange
std::pair< double, double > fShapeFitRangeBefore12
Module interface.
Definition: VModule.h:53
bool CopySmallPMTCalibData(sevt::Station &station)
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
std::pair< double, double > fShapeFitRangeSince12
void CalculatePeakAndCharge(sevt::Station &station)
std::pair< double, double > fChargeMIPRange
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
REGISTER_MODULE("SdHistogramFitterKG", SdHistogramFitter)

, generated on Tue Sep 26 2023.