RdStationPulseShapeRejector.h
Go to the documentation of this file.
1 #ifndef _RdStationPulseShapeRejector_RdStationPulseShapeRejector_h_
2 #define _RdStationPulseShapeRejector_RdStationPulseShapeRejector_h_
3 
4 #include <fwk/VModule.h>
5 #include <revt/Channel.h>
6 #include <revt/REvent.h>
7 #include <utl/TimeStamp.h>
8 #include <utl/CoordinateSystem.h>
9 #include <utl/RadioGeometryUtilities.h>
10 #include <evt/ShowerRRecData.h>
11 
12 namespace RdStationPulseShapeRejector {
13 
24 
25  public:
26 
27  fwk::VModule::ResultFlag Init() override;
28  fwk::VModule::ResultFlag Run(evt::Event& event) override;
30 
31  bool CheckT1Crossings(revt::Station& station, int peakInt);
32  void CheckT2Crossings(revt::Station& station, int peakInt);
33 
34  private:
35 
37  int fTotalStations = 0;
38  bool fCheckT1Crossings = true;
39  bool fCheckT2Crossings = false;
40  double fT1 = 0;
41  double fT2 = 0;
42  double fT1MinSNR = 0;
43  double fPulseRegion = 0;
44  double fTPer = 0;
45  double fT2MinSNR = 0;
46  int fNCMax = 0;
47  bool fUseVerticalComponent = true;
48 
49  bool IsSignalRising(const revt::StationTimeSeries& trace, int point);
50  int FindTraceMaximum(revt::Station& station);
51 
52  REGISTER_MODULE("RdStationPulseShapeRejector", RdStationPulseShapeRejector);
53  };
54 
55 }
56 
57 #endif
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
class to hold data at the radio Station level.
bool IsSignalRising(const revt::StationTimeSeries &trace, int point)
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
Module interface.
Definition: VModule.h:53
REGISTER_MODULE("RdStationPulseShapeRejector", RdStationPulseShapeRejector)
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
Template class for a FADC data or calibrated data container. Use the typedefs (TraceD, TraceI, etc.) defined in Trace-fwd.h.
Definition: Trace-fwd.h:19
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)

, generated on Tue Sep 26 2023.