1 #include "proto/artdaqapp.hh"
2 #include "artdaq/Application/LoadParameterSet.hh"
4 int main(
int argc,
char* argv[])
6 fhicl::ParameterSet config_ps = LoadParameterSet(argc, argv);
9 if (config_ps.has_key(
"app_type"))
11 task = artdaq::detail::StringToTaskType(config_ps.get<std::string>(
"app_type",
""));
12 if (task == artdaq::detail::TaskType::UnknownTask) {
13 task = artdaq::detail::IntToTaskType(config_ps.get<
int>(
"app_type"));
16 else if (config_ps.has_key(
"application_type"))
18 task = artdaq::detail::StringToTaskType(config_ps.get<std::string>(
"application_type",
""));
19 if (task == artdaq::detail::TaskType::UnknownTask) {
20 task = artdaq::detail::IntToTaskType(config_ps.get<
int>(
"application_type"));
23 artdaq::artdaqapp::runArtdaqApp(task, config_ps);
TaskType
The types of applications in artdaq.