RdStationEFieldVectorCalculator.h
Go to the documentation of this file.
1 #ifndef _RdStationEFieldVectorCalculator_RdStationEFieldVectorCalculator_h_
2 #define _RdStationEFieldVectorCalculator_RdStationEFieldVectorCalculator_h_
3 
4 #include <fwk/VModule.h>
5 #include <revt/Station.h>
6 #include <TVector3.h>
7 
8 
10 
23 
24  public:
25  fwk::VModule::ResultFlag Init() override;
26  fwk::VModule::ResultFlag Run(evt::Event& event) override;
28 
29  private:
30  // Peakposistion from what trace? 0=EW, 1=NS, 2=V, 3=Trace with max. amp
31  unsigned int fTrace = 0;
32 
33  // where to search for the maximum peak: -1/+1 = before/after max. of evenlope of mag, 0 = everywhere
34  int fPeakSearch = 0;
35 
36  // search window for maximum puls (only has affect if fPeakSearch != 0)
38 
39  unsigned int fPeakSearchWindow = 0;
40  bool fMeanEFieldVector = false;
42 
43  double GetAngleToLorentzForceError(double snr);
44  std::pair<double, double> GetFWHM(const revt::StationTimeSeries& stationEnvelope, const double maxSignal,
45  const double tPeakPos);
46  TVector3 GetMeanEfieldInRange(const revt::StationTimeSeries& stationTrace,
47  const std::pair<double, double>& range, const TVector3& firstGuess);
48  double NormalizeAngle(const double x);
49 
50  REGISTER_MODULE("RdStationEFieldVectorCalculator", RdStationEFieldVectorCalculator);
51  };
52 
53 }
54 
55 #endif
Calculates the &quot;EField Vector&quot; as used in GAP Note from Klaus Weidenhaupt.
std::pair< double, double > GetFWHM(const revt::StationTimeSeries &stationEnvelope, const double maxSignal, const double tPeakPos)
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
REGISTER_MODULE("RdStationEFieldVectorCalculator", RdStationEFieldVectorCalculator)
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
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
TVector3 GetMeanEfieldInRange(const revt::StationTimeSeries &stationTrace, const std::pair< double, double > &range, const TVector3 &firstGuess)

, generated on Tue Sep 26 2023.