SdBaselineFinderKG.h
Go to the documentation of this file.
1 #ifndef _SdBaselineFinderKG_SdBaselineFinderKG_h_
2 #define _SdBaselineFinderKG_SdBaselineFinderKG_h_
3 
4 #include <fwk/VModule.h>
5 #include <sevt/Station.h>
6 #include <utl/Is.h>
7 
8 
9 namespace SdBaselineFinderKG {
10 
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 ComputeBaselines(sevt::Station& station) const;
32  bool ComputeBaseline(const sevt::Station& station, sevt::PMT& pmt, const sdet::PMTConstants::PMTGain gain) const;
33 
34  std::vector<double> ComputeBaselineEstimates(const bool isUUB,
35  const utl::TraceI& trace, const int start, const int baselineLength) const;
36 
37  // from XML config
39 
40  typedef std::pair<int, int> PairI;
44 
45  typedef std::pair<double, double> PairD;
49 
52 
56 
57  double fLowerSigma = 0;
58  double fUbLowerSigma = 0;
59  double fUubLowerSigma = 0;
60 
61  double fTruncationSigma = 0;
62  double fUbTruncationSigma = 0;
63  double fUubTruncationSigma = 0;
64 
68 
69  REGISTER_MODULE("SdBaselineFinderKG", SdBaselineFinderKG);
70 
71  };
72 
73 }
74 
75 
76 #endif
class to hold data at PMT level
Definition: SEvent/PMT.h:28
Report success to RunController.
Definition: VModule.h:62
bool ComputeBaseline(const sevt::Station &station, sevt::PMT &pmt, const sdet::PMTConstants::PMTGain gain) const
std::vector< double > ComputeBaselineEstimates(const bool isUUB, const utl::TraceI &trace, const int start, const int baselineLength) const
int gain
Definition: dump1090.h:241
class to hold data at Station level
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
void MakeFlatBaseline(sevt::PMT &pmt, const sdet::PMTConstants::PMTGain gain) const
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
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)
bool ComputeBaselines(sevt::Station &station) const
REGISTER_MODULE("SdBaselineFinderKG", SdBaselineFinderKG)

, generated on Tue Sep 26 2023.