artdaq  v3_07_01
routing_master.cc
1 #include "artdaq/Application/LoadParameterSet.hh"
2 #include "proto/artdaqapp.hh"
3 
4 int main(int argc, char* argv[])
5 {
6  fhicl::ParameterSet config_ps = LoadParameterSet<artdaq::artdaqapp::Config>(argc, argv, "routing_master", "This is the artdaq Routing Master application\nThe Routing Master receives tokens from the receivers, builds Routing Tables using those tokens and a Routing Policy plugin, then sends the routing tables to the senders.");
7 
8  artdaq::detail::TaskType task = artdaq::detail::TaskType::RoutingMasterTask;
9 
10  artdaq::artdaqapp::runArtdaqApp(task, config_ps);
11 }
static void runArtdaqApp(detail::TaskType task, fhicl::ParameterSet const &config_ps)
Run an artdaq Application
Definition: artdaqapp.hh:53
TaskType
The types of applications in artdaq.
Definition: TaskType.hh:17