RdTopDownStationSelector.h
Go to the documentation of this file.
1 #ifndef _RdTopDownStationSelector_RdTopDownStationSelector_h_
2 #define _RdTopDownStationSelector_RdTopDownStationSelector_h_
3 
4 #include <fwk/VModule.h>
5 
6 namespace RdTopDownStationSelector {
7 
18 
19  public:
20  fwk::VModule::ResultFlag Init() override;
21  fwk::VModule::ResultFlag Run(evt::Event& event) override;
23 
24  private:
25  int fCurrentRunId = 0;
26  int fCurrentEventId = 0;
27  std::string fCurrentHeaderId;
28 
29  double fIteration = 0; // iteration of time calibration
31 
32  unsigned int fMaxNumberOfStations = 999;
34  unsigned int fCurrentNumberOfStations = 0;
35 
36  // chi2 per ndf of wave fit of previous station selection
37  double fChiSquaredNDF = 1;
38 
39  // the probability denotes the probability that an observed Chi-squared exceeds
40  // the value chi2 by chance, even for a correct model.
42 
43  // stop adding station after one station war rejected?
44  bool fStopAtFirstStation = true;
45 
46  // check if the incoming direction reconstructed from the closest 3 stations
47  // roughly matches the SD reconstruction
48  bool fInitialSDCheck = true;
49 
52 
53  REGISTER_MODULE("RdTopDownStationSelector", RdTopDownStationSelector);
54 };
55 
56 }
57 
58 #endif
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
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
REGISTER_MODULE("RdTopDownStationSelector", RdTopDownStationSelector)

, generated on Tue Sep 26 2023.