1 #ifndef _DoublePeakDetector_DoublePeakDetector_h_
2 #define _DoublePeakDetector_DoublePeakDetector_h_
6 #include <fwk/VModule.h>
7 #include <utl/Trace-fwd.h>
11 namespace DoublePeakDetectorNS
42 int FindPeaks(
const utl::TraceD &trace, std::vector<signalBlock_t> &signalBlocks,
const int nTraceBins);
bool ComputeIsMultiple(const std::vector< signalBlock_t > &signalBlocks)
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
REGISTER_MODULE("DoublePeakDetector", DoublePeakDetector)
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
int FindPeaks(const utl::TraceD &trace, std::vector< signalBlock_t > &signalBlocks, const int nTraceBins)
ResultFlag
Flag returned by module methods to the RunController.