6 #include <boost/tokenizer.hpp>
7 #include <boost/filesystem.hpp>
8 #include <boost/algorithm/string.hpp>
9 #include "art/Framework/Art/artapp.h"
10 #include "cetlib/BasicPluginFactory.h"
12 #define TRACE_NAME "DataLoggerCore"
13 #include "artdaq/DAQdata/Globals.hh"
14 #include "artdaq-core/Core/SimpleMemoryReader.hh"
15 #include "artdaq-core/Utilities/ExceptionHandler.hh"
16 #include "artdaq-core/Data/RawEvent.hh"
18 #include "artdaq/Application/DataLoggerCore.hh"
19 #include "artdaq/DAQrate/detail/FragCounter.hh"
20 #include "artdaq/TransferPlugins/MakeTransferPlugin.hh"
29 TLOG_DEBUG(app_name) <<
"Destructor" << TLOG_ENDL;
34 TLOG_DEBUG(app_name) <<
"initialize method called with DAQ " <<
"ParameterSet = \"" << pset.to_string() <<
"\"." << TLOG_ENDL;
37 fhicl::ParameterSet daq_pset;
40 daq_pset = pset.get<fhicl::ParameterSet>(
"daq");
45 <<
"Unable to find the DAQ parameters in the initialization "
46 <<
"ParameterSet: \"" + pset.to_string() +
"\"." << TLOG_ENDL;
49 fhicl::ParameterSet agg_pset;
52 agg_pset = daq_pset.get<fhicl::ParameterSet>(
"datalogger", daq_pset.get<fhicl::ParameterSet>(
"aggregator"));
57 <<
"Unable to find the DataLogger parameters in the DAQ "
58 <<
"initialization ParameterSet: \"" + daq_pset.to_string() +
"\"." << TLOG_ENDL;
63 fhicl::ParameterSet metric_pset;
67 metric_pset = daq_pset.get<fhicl::ParameterSet>(
"metrics");
72 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.