artdaq  v3_08_00
EventBuilderApp.hh
1 #ifndef artdaq_Application_MPI2_EventBuilderApp_hh
2 #define artdaq_Application_MPI2_EventBuilderApp_hh
3 
4 #include <future>
5 
6 #include "artdaq/Application/Commandable.hh"
7 #include "artdaq/Application/EventBuilderCore.hh"
8 
9 namespace artdaq {
10 class EventBuilderApp;
11 }
12 
17 {
18 public:
23 
27  EventBuilderApp(EventBuilderApp const&) = delete;
28 
32  virtual ~EventBuilderApp() = default;
33 
38  EventBuilderApp& operator=(EventBuilderApp const&) = delete;
39 
40  // these methods provide the operations that are used by the state machine
46  bool do_initialize(fhicl::ParameterSet const& pset, uint64_t, uint64_t) override;
47 
53  bool do_start(art::RunID id, uint64_t, uint64_t) override;
54 
59  bool do_stop(uint64_t, uint64_t) override;
60 
65  bool do_pause(uint64_t, uint64_t) override;
66 
71  bool do_resume(uint64_t, uint64_t) override;
72 
77  bool do_shutdown(uint64_t) override;
78 
84  bool do_soft_initialize(fhicl::ParameterSet const& pset, uint64_t, uint64_t) override;
85 
91  bool do_reinitialize(fhicl::ParameterSet const& pset, uint64_t, uint64_t) override;
92 
99  bool do_rollover_subrun(uint64_t eventNum, uint32_t subrunNum) override;
100 
106  void BootedEnter() override;
107 
108  /* Report_ptr */
114  std::string report(std::string const& which) const override;
115 
120  bool do_add_config_archive_entry(std::string const&, std::string const&) override;
121 
126  bool do_clear_config_archive() override;
127 
128 private:
129  std::unique_ptr<artdaq::EventBuilderCore> event_builder_ptr_;
130 };
131 
132 #endif /* artdaq_Application_MPI2_EventBuilderApp_hh */
Commandable is the base class for all artdaq components which implement the artdaq state machine...
Definition: Commandable.hh:20
bool do_resume(uint64_t, uint64_t) override
Resume the EventBuilderCore.
void BootedEnter() override
Action taken upon entering the &quot;Booted&quot; state.
std::string report(std::string const &which) const override
If which is &quot;transition_status&quot;, report the status of the last transition. Otherwise pass through to ...
bool do_reinitialize(fhicl::ParameterSet const &pset, uint64_t, uint64_t) override
Reinitialize the EventBuilderCore.
virtual ~EventBuilderApp()=default
Default Destructor.
bool do_shutdown(uint64_t) override
Shutdown the EventBuilderCore.
bool do_pause(uint64_t, uint64_t) override
Pause the EventBuilderCore.
bool do_soft_initialize(fhicl::ParameterSet const &pset, uint64_t, uint64_t) override
Soft-Initialize the EventBuilderCore.
EventBuilderApp is an artdaq::Commandable derived class which controls the EventBuilderCore.
EventBuilderApp & operator=(EventBuilderApp const &)=delete
Copy Assignment Operator is deleted.
bool do_add_config_archive_entry(std::string const &, std::string const &) override
Add the specified configuration archive entry to the EventBuilderCore.
EventBuilderApp()
EventBuilderApp Constructor.
bool do_initialize(fhicl::ParameterSet const &pset, uint64_t, uint64_t) override
Initialize the EventBuilderCore.
bool do_clear_config_archive() override
Clear the configuration archive list in the EventBuilderCore.
bool do_start(art::RunID id, uint64_t, uint64_t) override
Start the EventBuilderCore.
bool do_rollover_subrun(uint64_t eventNum, uint32_t subrunNum) override
Rollover the subrun after the given event.
bool do_stop(uint64_t, uint64_t) override
Stop the EventBuilderCore.