13#include <yaml-cpp/yaml.h>
19 fMonitor = std::make_unique<cbm::Monitor>(fOpt.MonitorUri());
24 std::ofstream fout(fOpt.SaveConfigYamlFile());
25 fout << config.ToYaml();
40 constexpr auto destruct_delay = std::chrono::milliseconds(200);
41 std::this_thread::sleep_for(destruct_delay);
~Application()
Destructor.
Application(ProgramOptions const &opt)
Standard constructor, initialize the application.
void Run()
Run the application.
std::unique_ptr< cbm::Monitor > fMonitor
The application's monitoring object.
std::unique_ptr< CbmReco > fCbmReco
CBM reconstruction steering class instance.
ProgramOptions const & fOpt
Program options object.
Program options class for the "cbmreco_fairrun" application.
const std::string & OutputRootFile() const
Get output file name (.root format)
bool DumpSetup() const
Get flag to dump the readout setup to yaml.
const std::vector< std::string > & InputUri() const
Get URI specifying input timeslice stream source(s)
int32_t MaxNumTs() const
Get maximum number of timeslices to process.
const std::string & MonitorUri() const
Get URI specifying the monitoring server interface.
uint16_t HttpServerPort() const
Get the port number for the HTTP server.
const std::string & ConfigYamlFile() const
Get configuration file name (.yaml format)
const std::string & SaveConfigYamlFile() const
Get save configuration file name (.yaml format)
Configuration of digi event building.