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 4 : inline fhicl::ParameterSet merge(fhicl::ParameterSet const& first, fhicl::ParameterSet const& second)
8 : {
9 4 : auto first_str = first.to_string();
10 4 : auto second_str = second.to_string();
11 :
12 4 : auto combined = first_str + " " + second_str;
13 :
14 8 : return fhicl::ParameterSet::make(combined);
15 4 : }
16 : } // namespace artdaq
17 :
18 : #endif // artdaq_DAQrate_detail_MergeParameterSets_hh
|