artdaq  v3_03_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 {
11  class EventBuilderApp;
12 }
13 
18 {
19 public:
24 
28  EventBuilderApp(EventBuilderApp const&) = delete;
29 
33  virtual ~EventBuilderApp() = default;
34 
39  EventBuilderApp& operator=(EventBuilderApp const&) = delete;
40 
41  // these methods provide the operations that are used by the state machine
47  bool do_initialize(fhicl::ParameterSet const& pset, uint64_t, uint64_t) override;
48 
54  bool do_start(art::RunID id, uint64_t, uint64_t) override;
55 
60  bool do_stop(uint64_t, uint64_t) override;
61 
66  bool do_pause(uint64_t, uint64_t) override;
67 
72  bool do_resume(uint64_t, uint64_t) override;
73 
78  bool do_shutdown(uint64_t) override;
79 
85  bool do_soft_initialize(fhicl::ParameterSet const& pset, uint64_t, uint64_t) override;
86 
92  bool do_reinitialize(fhicl::ParameterSet const& pset, uint64_t, uint64_t) override;
93 
99  bool do_rollover_subrun(uint64_t eventNum) 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) override
Rollover the subrun after the given event.
bool do_stop(uint64_t, uint64_t) override
Stop the EventBuilderCore.