11 #include "cetlib/container_algorithms.h" 12 #include "cetlib_except/exception.h" 17 using namespace fhicl;
22 TriggerNamesService::TriggerNamesService(
ParameterSet const& procPS,
23 Strings const& trigger_path_names)
24 : trignames_{trigger_path_names}
26 ,
wantSummary_{procPS.get<
bool>(
"services.scheduler.wantSummary",
false)}
32 auto const& physics = procPS.get<
ParameterSet>(
"physics", {});
35 auto assign_position = [](
auto& posmap,
size_type const i,
auto const& name) {
39 using namespace std::placeholders;
40 cet::for_all_with_index(
42 cet::for_all_with_index(
43 end_names_, std::bind(assign_position, std::ref(
end_pos_), _1, _2));
48 [&physics](std::string
const& par) {
return physics.get<
Strings>(par); });
58 if (!ParameterSetRegistry::get(triggerResults.
parameterSetID(), pset)) {
61 auto tmpPaths = pset.
get<
Strings>(
"trigger_paths", {});
62 if (tmpPaths.size() != triggerResults.
size()) {
64 <<
"TriggerNamesService::getTrigPaths, Trigger names vector and\n" 65 "TriggerResults are different sizes. This should be impossible,\n" 66 "please send information to reproduce this problem to\n" 67 "the ART developers.\n";
fhicl::ParameterSet trigger_pset_
std::string process_name_
Strings const & getTrigPaths() const
std::vector< Strings > modulenames_
std::vector< std::string > Strings
PosMap::size_type size_type
T get(std::string const &key) const
fhicl::ParameterSetID const & parameterSetID() const
void swap(art::HLTGlobalStatus &lhs, art::HLTGlobalStatus &rhs)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
void put(std::string const &key)