1 #include "art/Framework/Art/artapp.h"
2 #include "canvas/Utilities/Exception.h"
4 #include "artdaq/DAQdata/Globals.hh"
5 #define TRACE_NAME (app_name + "_EventBuilderCore").c_str()
6 #include "artdaq-core/Core/SimpleMemoryReader.hh"
7 #include "artdaq-core/Utilities/ExceptionHandler.hh"
9 #include "artdaq/Application/EventBuilderCore.hh"
10 #include "artdaq/TransferPlugins/TransferInterface.hh"
21 TLOG(TLVL_DEBUG) <<
"Destructor";
26 TLOG(TLVL_DEBUG) <<
"initialize method called with DAQ "
27 <<
"ParameterSet = \"" << pset.to_string() <<
"\".";
30 fhicl::ParameterSet daq_pset;
33 daq_pset = pset.get<fhicl::ParameterSet>(
"daq");
38 <<
"Unable to find the DAQ parameters in the initialization "
39 <<
"ParameterSet: \"" + pset.to_string() +
"\".";
42 fhicl::ParameterSet evb_pset;
45 evb_pset = daq_pset.get<fhicl::ParameterSet>(
"event_builder");
49 if (!evb_pset.has_key(
"send_init_fragments"))
51 evb_pset.put<
bool>(
"send_init_fragments",
false);
57 <<
"Unable to find the event_builder parameters in the DAQ "
58 <<
"initialization ParameterSet: \"" + daq_pset.to_string() +
"\".";
62 fhicl::ParameterSet metric_pset;
65 metric_pset = daq_pset.get<fhicl::ParameterSet>(
"metrics");
70 return initializeDataReceiver(pset, evb_pset, metric_pset);
bool initialize(fhicl::ParameterSet const &pset) override
Processes the initialize request.
DataReceiverCore implements the state machine for the DataReceiver artdaq application. DataReceiverCore receives Fragment objects from the DataReceiverManager, and sends them to the EventStore.
EventBuilderCore()
EventBuilderCore Constructor.