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;
43 end_names_, std::bind(assign_position, std::ref(
end_pos_), _1, _2));
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";
void put(std::string const &key)
fhicl::ParameterSet trigger_pset_
void for_all_with_index(FwdCont &, Func)
std::string process_name_
Strings const & getTrigPaths() const
std::vector< Strings > modulenames_
void swap(art::HLTGlobalStatus &lhs, art::HLTGlobalStatus &rhs)
std::vector< std::string > Strings
PosMap::size_type size_type
T get(std::string const &key) const
auto transform_all(Container &, OutputIt, UnaryOp)
fhicl::ParameterSetID const & parameterSetID() const
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception