FdPulseFinder.h
Go to the documentation of this file.
1 #ifndef _FdPulseFinderOG_FdPulseFinder_h_
2 #define _FdPulseFinderOG_FdPulseFinder_h_
3 
4 #include <fwk/VModule.h>
5 
6 
7 namespace evt {
8  class ShowerFRecData;
9 }
10 
11 namespace fevt {
12  class Pixel;
13  class Telescope;
14  class Eye;
15 }
16 
17 
18 namespace FdPulseFinderOG {
19 
28  class FdPulseFinder : public fwk::VModule {
29 
30  public:
31  fwk::VModule::ResultFlag Init() override;
32  fwk::VModule::ResultFlag Run(evt::Event& event) override;
34 
35  private:
37  bool FindPulse(fevt::Pixel& pixel);
38  bool FindAdditionalPulse(fevt::Pixel& pixel, const fevt::Eye& eye, const evt::ShowerFRecData& frec) const;
39  bool FindBestSignalOverNoise(fevt::Pixel& pixel, const int start, const int stop) const;
40 
42  int fVerbosity = 0;
43 
45  bool fuseAllPixels = false;
46 
48  double fMinSnRatio = 0;
49 
51  unsigned int fOffset = 0; // in bins
52  unsigned int fOffsetTime = 0; // in ns
53 
55  int fMinWindowLength = 0; // in bins
56  int fMinWindowLengthTime = 0; // in ns
57 
59  int fMaxWindowLength = 0; // in bins
60  int fMaxWindowLengthTime = 0; // in ns
61 
62  // ------- internal counters --------
63  mutable int fCountPix = 0;
64  mutable int fCountFlt = 0;
65  mutable int fCountPulsed = 0;
66  mutable int fCountNoRecData = 0;
67  mutable int fCountNoTrigData = 0;
68  mutable int fCountBoundsErr = 0;
69 
70  REGISTER_MODULE("FdPulseFinderOG", FdPulseFinder);
71 
72  };
73 
74 }
75 
76 
77 #endif
Fluorescence Detector Eye Event.
Definition: FEvent/Eye.h:29
int fVerbosity
output control
Definition: FdPulseFinder.h:42
unsigned int fOffset
offset from trigger used to search for pulses
Definition: FdPulseFinder.h:51
REGISTER_MODULE("FdPulseFinderOG", FdPulseFinder)
bool FindPulse(fevt::Pixel &pixel)
true if pulse is found
Fluorescence Detector Pixel event.
Definition: FEvent/Pixel.h:28
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
Module interface.
Definition: VModule.h:53
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
int fMaxWindowLength
maximum width of signal assumed to search fluo pulses
Definition: FdPulseFinder.h:59
bool FindAdditionalPulse(fevt::Pixel &pixel, const fevt::Eye &eye, const evt::ShowerFRecData &frec) const
bool fuseAllPixels
use also non FLT pixels
Definition: FdPulseFinder.h:45
bool FindBestSignalOverNoise(fevt::Pixel &pixel, const int start, const int stop) const
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
Interface class to access to Fluorescence reconstruction of a Shower.
double fMinSnRatio
minimum S/N Ratio to define a pulse
Definition: FdPulseFinder.h:48
int fMinWindowLength
minimum width of signal assumed to search fluo pulses
Definition: FdPulseFinder.h:55

, generated on Tue Sep 26 2023.