RdSdCheck/Verification.h
Go to the documentation of this file.
1 #ifndef _RdSdCheck_Verification_h_
2 #define _RdSdCheck_Verification_h_
3 
4 #include <fwk/VModule.h>
5 #include <string>
6 
7 
8 namespace VerificationRadio {
9 
19  class Verification : public fwk::VModule {
20 
21  public:
22  virtual ~Verification() { }
23 
24  fwk::VModule::ResultFlag Init() override;
25  fwk::VModule::ResultFlag Run(evt::Event& event) override;
27 
28  private:
29  std::stringstream* fTestResults = nullptr;
30  std::string fRefFileName;
31 
32  enum Mode {
33  eCreate = 0,
34  eCompare = 1
35  };
36 
37  Mode fMode = eCreate;
38 
40 
41  struct TestInformation {
42 
43  unsigned long fParameterId;
44  std::string fParameterName;
46  double fTolerance;
47 
48  TestInformation(const long id, const std::string& name, const bool absTol, const double tol)
49  : fParameterId(id), fParameterName(name), fUseAbsoluteTolerance(absTol), fTolerance(tol) { }
50  };
51 
52  std::vector<TestInformation> fStationTests;
53  std::vector<TestInformation> fShowerTests;
54 
55  REGISTER_MODULE("Verification", Verification);
56 
57  };
58 
59 }
60 
61 
62 #endif
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
std::vector< TestInformation > fStationTests
std::vector< TestInformation > fShowerTests
Module interface.
Definition: VModule.h:53
fwk::VModule::ResultFlag Finish()
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
Confirms that radio works depending on modulesequence.
REGISTER_MODULE("Verification", Verification)
TestInformation(const long id, const std::string &name, const bool absTol, const double tol)

, generated on Tue Sep 26 2023.