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"
16 TLOG(TLVL_DEBUG) <<
"initialize method called with DAQ "
17 <<
"ParameterSet = \"" << pset.to_string() <<
"\".";
20 fhicl::ParameterSet daq_pset;
23 daq_pset = pset.get<fhicl::ParameterSet>(
"daq");
28 <<
"Unable to find the DAQ parameters in the initialization "
29 <<
"ParameterSet: \"" + pset.to_string() +
"\".";
32 fhicl::ParameterSet evb_pset;
35 evb_pset = daq_pset.get<fhicl::ParameterSet>(
"event_builder");
39 if (!evb_pset.has_key(
"send_init_fragments"))
41 evb_pset.put<
bool>(
"send_init_fragments",
false);
47 <<
"Unable to find the event_builder parameters in the DAQ "
48 <<
"initialization ParameterSet: \"" + daq_pset.to_string() +
"\".";
52 fhicl::ParameterSet metric_pset;
55 metric_pset = daq_pset.get<fhicl::ParameterSet>(
"metrics");
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.