Line data Source code
1 : #include "artdaq/Application/LoadParameterSet.hh"
2 : #include "proto/artdaqapp.hh"
3 :
4 0 : int main(int argc, char* argv[])
5 : try
6 : {
7 0 : 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 0 : artdaq::detail::TaskType task = artdaq::detail::TaskType::DispatcherTask;
9 :
10 0 : artdaq::artdaqapp::runArtdaqApp(task, config_ps);
11 :
12 0 : return 0;
13 0 : }
14 0 : catch (std::exception& ex)
15 : {
16 0 : std::cerr << "Exception caught: " << ex.what() << std::endl;
17 0 : return -1;
18 0 : }
19 0 : catch (...)
20 : {
21 0 : return -1;
22 0 : }
|