DoublePeakDetector.h
Go to the documentation of this file.
1 #ifndef _DoublePeakDetector_DoublePeakDetector_h_
2 #define _DoublePeakDetector_DoublePeakDetector_h_
3 
4 #include <vector>
5 
6 #include <fwk/VModule.h>
7 #include <utl/Trace-fwd.h>
8 #include <utl/Trace.h>
9 
10 
11 namespace DoublePeakDetectorNS
12 {
26  {
27  double start;
28  double end;
29  double score;
30  signalBlock_t() : start(-1), end(-1), score(-1){};
31  };
32 
34  {
35 
36  public:
40 
41  private:
42  int FindPeaks(const utl::TraceD &trace, std::vector<signalBlock_t> &signalBlocks, const int nTraceBins);
43  bool ComputeIsMultiple(const std::vector<signalBlock_t> &signalBlocks);
44 
45  REGISTER_MODULE("DoublePeakDetector", DoublePeakDetector);
46  };
47 
48 }
49 
50 #endif
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)
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60

, generated on Tue Sep 26 2023.