1 #include "TRACE/tracemf.h"
2 #include "artdaq/DAQdata/Globals.hh"
3 #define TRACE_NAME (app_name + "_EventBuilderCore").c_str()
5 #include "artdaq/Application/EventBuilderCore.hh"
7 #include "fhiclcpp/ParameterSet.h"
13 TLOG(TLVL_DEBUG + 32) <<
"initialize method called with DAQ "
14 <<
"ParameterSet = \"" << pset.to_string() <<
"\".";
17 fhicl::ParameterSet daq_pset;
20 daq_pset = pset.get<fhicl::ParameterSet>(
"daq");
25 <<
"Unable to find the DAQ parameters in the initialization "
26 <<
"ParameterSet: \"" + pset.to_string() +
"\".";
29 fhicl::ParameterSet evb_pset;
32 evb_pset = daq_pset.get<fhicl::ParameterSet>(
"event_builder");
36 if (!evb_pset.has_key(
"send_init_fragments"))
38 evb_pset.put<
bool>(
"send_init_fragments",
false);
44 <<
"Unable to find the event_builder parameters in the DAQ "
45 <<
"initialization ParameterSet: \"" + daq_pset.to_string() +
"\".";
49 fhicl::ParameterSet metric_pset = daq_pset.get<fhicl::ParameterSet>(
"metrics", fhicl::ParameterSet());
bool initialize(fhicl::ParameterSet const &pset) override
Processes the initialize request.
bool initializeDataReceiver(fhicl::ParameterSet const &pset, fhicl::ParameterSet const &data_pset, fhicl::ParameterSet const &metric_pset)
Initialize the DataReceiverCore (should be called from initialize() overrides.