LCOV - code coverage report
Current view: top level - artdaq/DAQrate/detail - MergeParameterSets.hh (source / functions) Coverage Total Hit
Test: artdaq.info.cleaned Lines: 100.0 % 6 6
Test Date: 2026-10-29 00:35:58 Functions: 100.0 % 1 1

            Line data    Source code
       1              : #ifndef artdaq_DAQrate_detail_MergeParameterSets_hh
       2              : #define artdaq_DAQrate_detail_MergeParameterSets_hh
       3              : 
       4              : #include <fhiclcpp/ParameterSet.h>
       5              : 
       6              : namespace artdaq {
       7              : /**
       8              :  * \brief Merge two FHiCL ParameterSets into one
       9              :  * \param first The first fhicl::ParameterSet (keys in \a second override those in \a first)
      10              :  * \param second The second fhicl::ParameterSet
      11              :  * \return A new fhicl::ParameterSet containing all keys from both inputs
      12              :  */
      13            4 : inline fhicl::ParameterSet merge(fhicl::ParameterSet const& first, fhicl::ParameterSet const& second)
      14              : {
      15            4 :         auto first_str = first.to_string();
      16            4 :         auto second_str = second.to_string();
      17              : 
      18            4 :         auto combined = first_str + " " + second_str;
      19              : 
      20            8 :         return fhicl::ParameterSet::make(combined);
      21            4 : }
      22              : }  // namespace artdaq
      23              : 
      24              : #endif  // artdaq_DAQrate_detail_MergeParameterSets_hh
        

Generated by: LCOV version 2.0-1