1 #include "artdaq/Application/LoadParameterSet.hh"
2 #include "proto/artdaqapp.hh"
4 int main(
int argc,
char* argv[])
8 fhicl::TableFragment<artdaq::artdaqapp::Config> artdaqapp_config;
9 fhicl::Atom<std::string> app_type{fhicl::Name{
"app_type"}, fhicl::Comment{
"Type of the artdaq application to run"},
""};
12 fhicl::ParameterSet config_ps = LoadParameterSet<Config>(argc, argv,
"artdaq",
"This meta-application may be configured to run any of the core artdaq processes through the \"app_type\" configuration parameter.");
15 if (config_ps.has_key(
"app_type"))
18 if (task == artdaq::detail::TaskType::UnknownTask)
23 else if (config_ps.has_key(
"application_type"))
26 if (task == artdaq::detail::TaskType::UnknownTask)
TaskType StringToTaskType(std::string const &task)
Convert a string to a TaskType (Used by artdaq.cc)
TaskType IntToTaskType(int const &task)
Convert an integer to the corresponding TaskType
Configuration for simple_metric_sender.
static void runArtdaqApp(detail::TaskType task, fhicl::ParameterSet const &config_ps)
Run an artdaq Application
TaskType
The types of applications in artdaq.