LCOV - code coverage report
Current view: top level - artdaq/Application - DataLoggerCore.cc (source / functions) Coverage Total Hit
Test: artdaq.info.cleaned Lines: 0.0 % 22 0
Test Date: 2025-09-04 00:45:34 Functions: 0.0 % 4 0

            Line data    Source code
       1              : #include "TRACE/tracemf.h"
       2              : #include "artdaq/DAQdata/Globals.hh"  // include these 2 first -
       3              : #define TRACE_NAME (app_name + "_DataLoggerCore").c_str()
       4              : 
       5              : #include "artdaq/Application/DataLoggerCore.hh"
       6              : 
       7              : #include "fhiclcpp/ParameterSet.h"
       8              : 
       9            0 : bool artdaq::DataLoggerCore::initialize(fhicl::ParameterSet const& pset)
      10              : {
      11            0 :         TLOG(TLVL_DEBUG + 32) << "initialize method called with DAQ "
      12            0 :                               << "ParameterSet = \"" << pset.to_string() << "\".";
      13              : 
      14              :         // pull out the relevant parts of the ParameterSet
      15            0 :         fhicl::ParameterSet daq_pset;
      16              :         try
      17              :         {
      18            0 :                 daq_pset = pset.get<fhicl::ParameterSet>("daq");
      19              :         }
      20            0 :         catch (...)
      21              :         {
      22            0 :                 TLOG(TLVL_ERROR)
      23            0 :                     << "Unable to find the DAQ parameters in the initialization "
      24            0 :                     << "ParameterSet: \"" + pset.to_string() + "\".";
      25            0 :                 return false;
      26            0 :         }
      27            0 :         fhicl::ParameterSet agg_pset;
      28              :         try
      29              :         {
      30            0 :                 agg_pset = daq_pset.get<fhicl::ParameterSet>("datalogger", daq_pset.get<fhicl::ParameterSet>("aggregator"));
      31              :         }
      32            0 :         catch (...)
      33              :         {
      34            0 :                 TLOG(TLVL_ERROR)
      35            0 :                     << "Unable to find the DataLogger parameters in the DAQ "
      36            0 :                     << "initialization ParameterSet: \"" + daq_pset.to_string() + "\".";
      37            0 :                 return false;
      38            0 :         }
      39              : 
      40              :         // initialize the MetricManager and the names of our metrics
      41            0 :         fhicl::ParameterSet metric_pset = daq_pset.get<fhicl::ParameterSet>("metrics", fhicl::ParameterSet());
      42              : 
      43            0 :         return initializeDataReceiver(pset, agg_pset, metric_pset);
      44            0 : }
        

Generated by: LCOV version 2.0-1