artdaq  v3_10_01
eventbuilder.cc
1 #include "artdaq/Application/LoadParameterSet.hh"
2 #include "proto/artdaqapp.hh"
3 
4 int main(int argc, char* argv[]) try
5 {
6  fhicl::ParameterSet config_ps = LoadParameterSet<artdaq::artdaqapp::Config>(argc, argv, "eventbuilder", "The EventBuilder application receives Fragments from BoardReaders, concatenating them to form RawEvents. RawEvents are processed by an art process which typically runs first-level filtering, then it sends events on to the DataLogger");
7  artdaq::detail::TaskType task = artdaq::detail::TaskType::EventBuilderTask;
8 
9  artdaq::artdaqapp::runArtdaqApp(task, config_ps);
10 
11  return 0;
12 }
13 catch (...)
14 {
15  return -1;
16 }
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