1 #ifndef _SdBaselineFinderOG_SdBaselineFinder_h_
2 #define _SdBaselineFinderOG_SdBaselineFinder_h_
4 #include <fwk/VModule.h>
5 #include <sevt/Station.h>
8 namespace SdBaselineFinderOG {
class to hold data at PMT level
Report success to RunController.
REGISTER_MODULE("SdBaselineFinderOG", SdBaselineFinder)
bool fDecreaseLGFlatPieceTolerance
void MakeFlatBaseline(sevt::PMT &pmt, const sdet::PMTConstants::PMTGain gain) const
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
class to hold data at Station level
bool fApplyBackwardFlatPieceCheck
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
bool ComputeBaselines(sevt::Station &station) const
bool ComputeBaseline(const sevt::Station &station, sevt::PMT &pmt, const sdet::PMTConstants::PMTGain gain) const
ResultFlag
Flag returned by module methods to the RunController.
Finds baseline (based on flat pieces)