6 #include <boost/algorithm/string.hpp>
7 #include <boost/filesystem.hpp>
8 #include <boost/tokenizer.hpp>
9 #include "art/Framework/Art/artapp.h"
10 #include "cetlib/BasicPluginFactory.h"
12 #include "artdaq/DAQdata/Globals.hh"
13 #define TRACE_NAME (app_name + "_DataLoggerCore").c_str()
14 #include "artdaq-core/Core/SimpleMemoryReader.hh"
15 #include "artdaq-core/Data/RawEvent.hh"
16 #include "artdaq-core/Utilities/ExceptionHandler.hh"
18 #include "artdaq/Application/DataLoggerCore.hh"
19 #include "artdaq/DAQrate/detail/FragCounter.hh"
20 #include "artdaq/TransferPlugins/MakeTransferPlugin.hh"
29 TLOG(TLVL_DEBUG) <<
"Destructor";
34 TLOG(TLVL_DEBUG) <<
"initialize method called with DAQ "
35 <<
"ParameterSet = \"" << pset.to_string() <<
"\".";
38 fhicl::ParameterSet daq_pset;
41 daq_pset = pset.get<fhicl::ParameterSet>(
"daq");
46 <<
"Unable to find the DAQ parameters in the initialization "
47 <<
"ParameterSet: \"" + pset.to_string() +
"\".";
50 fhicl::ParameterSet agg_pset;
53 agg_pset = daq_pset.get<fhicl::ParameterSet>(
"datalogger", daq_pset.get<fhicl::ParameterSet>(
"aggregator"));
58 <<
"Unable to find the DataLogger parameters in the DAQ "
59 <<
"initialization ParameterSet: \"" + daq_pset.to_string() +
"\".";
64 fhicl::ParameterSet metric_pset;
68 metric_pset = daq_pset.get<fhicl::ParameterSet>(
"metrics");
73 return initializeDataReceiver(pset, agg_pset, metric_pset);
DataReceiverCore implements the state machine for the DataReceiver artdaq application. DataReceiverCore receives Fragment objects from the DataReceiverManager, and sends them to the EventStore.
bool initialize(fhicl::ParameterSet const &pset) override
Processes the initialize request.
DataLoggerCore()
DataLoggerCore Constructor.