1 #ifndef _SdBaselineFinderKG_SdBaselineFinderKG_h_
2 #define _SdBaselineFinderKG_SdBaselineFinderKG_h_
4 #include <fwk/VModule.h>
5 #include <sevt/Station.h>
9 namespace SdBaselineFinderKG {
35 const utl::TraceI& trace,
const int start,
const int baselineLength)
const;
40 typedef std::pair<int, int>
PairI;
45 typedef std::pair<double, double>
PairD;
PairI fBaselineEstimationLengths
PairD fUbNegativeSignalFactors
class to hold data at PMT level
Report success to RunController.
std::pair< int, int > PairI
bool ComputeBaseline(const sevt::Station &station, sevt::PMT &pmt, const sdet::PMTConstants::PMTGain gain) const
double fUubTruncationSigma
std::pair< double, double > PairD
std::vector< double > ComputeBaselineEstimates(const bool isUUB, const utl::TraceI &trace, const int start, const int baselineLength) const
double fUbTruncationSigma
PairD fNegativeSignalFactors
PairI fUbBaselineEstimationLengths
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
PairI fUubBaselineEstimationLengths
PairD fUubNegativeSignalFactors
ResultFlag
Flag returned by module methods to the RunController.
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)
std::set< int > fRecalculateLSTriggerForTestStations