artdaq  v3_09_00
dispatcher.cc
1 #include "artdaq/Application/LoadParameterSet.hh"
2 #include "proto/artdaqapp.hh"
3 
4 int main(int argc, char* argv[])
5 try
6 {
7  fhicl::ParameterSet config_ps = LoadParameterSet<artdaq::artdaqapp::Config>(argc, argv, "dispatcher", "The Dispatcher process recevies events from a DataLogger or EventBuilder art process and makes them available to online monitors. Filters may be used by each online monitor to reduce network traffic.");
8  artdaq::detail::TaskType task = artdaq::detail::TaskType::DispatcherTask;
9 
10  artdaq::artdaqapp::runArtdaqApp(task, config_ps);
11 
12  return 0;
13 }
14 catch (...)
15 {
16  return -1;
17 }
static void runArtdaqApp(detail::TaskType task, fhicl::ParameterSet const &config_ps)
Run an artdaq Application
Definition: artdaqapp.hh:54
TaskType
The types of applications in artdaq.
Definition: TaskType.hh:17