RdSdSimCheck/Verification.h
Go to the documentation of this file.
1 #ifndef _RdSdSimCheck_Verification_h_
2 #define _RdSdSimCheck_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() = default;
23 
24  fwk::VModule::ResultFlag Init() override;
25  fwk::VModule::ResultFlag Run(evt::Event& event) override;
27 
28  private:
29  std::ofstream* fTestResults = nullptr;
30  std::string fRefFileName;
31 
33 
34  struct TestInformation {
35 
36  unsigned long fParameterId;
37  std::string fParameterName;
39  double fTolerance;
40 
41  TestInformation(const long id, const std::string& name, const bool absTol, const double tol)
42  : fParameterId(id), fParameterName(name), fUseAbsoluteTolerance(absTol), fTolerance(tol) { }
43  };
44 
45  std::vector<TestInformation> fStationTests;
46  std::vector<TestInformation> fShowerTests;
47 
48  REGISTER_MODULE("Verification", Verification);
49 
50  };
51 
52 }
53 
54 
55 #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.