#include "TriggerNamesService.h"
Definition at line 44 of file TriggerNamesService.h.
Definition at line 71 of file TriggerNamesService_service.cc.
76 getProcessName(), data_for_process(trigger_paths_pset, physics_pset));
std::string const & getProcessName() const
std::map< std::string, DataPerProcess > dataPerProcess_
DataPerProcess const & art::TriggerNamesService::currentData_ |
( |
| ) |
const |
|
private |
Definition at line 80 of file TriggerNamesService_service.cc.
std::string const & getProcessName() const
std::map< std::string, DataPerProcess > dataPerProcess_
PathID art::TriggerNamesService::findTrigPath |
( |
std::string const & |
name | ) |
const |
string const & art::TriggerNamesService::getProcessName |
( |
| ) |
const |
string const & art::TriggerNamesService::getTrigPath |
( |
PathID const |
id | ) |
const |
Definition at line 149 of file TriggerNamesService_service.cc.
References art::errors::OtherArt, and fhicl::to_string().
152 if (i == invalid_entry) {
154 <<
"A path name could not be found corresponding to path ID " std::vector< PathSpec > triggerPathSpecs
size_t index_for(PathID id) const
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
std::string to_string(ModuleType const mt)
DataPerProcess const & currentData_() const
vector< string > const & art::TriggerNamesService::getTrigPathModules |
( |
std::string const & |
name | ) |
const |
Definition at line 161 of file TriggerNamesService_service.cc.
164 return modules.at(
index_(for_(name)));
size_t index_(detail::entry_selector_t selector) const
std::vector< std::vector< std::string > > moduleNames
DataPerProcess const & currentData_() const
vector< string > const & art::TriggerNamesService::getTrigPathModules |
( |
PathID |
id | ) |
const |
Definition at line 168 of file TriggerNamesService_service.cc.
size_t index_for(PathID id) const
std::vector< std::vector< std::string > > moduleNames
DataPerProcess const & currentData_() const
vector< string > const & art::TriggerNamesService::getTrigPaths |
( |
| ) |
const |
Definition at line 181 of file TriggerNamesService_service.cc.
References util::begin(), e, util::end(), and art::detail::path_specs().
187 auto it = find_if(b,
e, matched_entry);
189 return invalid_entry;
191 return distance(b, it);
std::vector< PathSpec > triggerPathSpecs
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
std::vector< PathSpec > path_specs(std::vector< std::string > const &path_spec_strs)
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
DataPerProcess const & currentData_() const
size_t art::TriggerNamesService::index_for |
( |
PathID |
id | ) |
const |
map< string, HLTPathStatus > art::TriggerNamesService::pathResults |
( |
Event const & |
e, |
|
|
std::string const & |
process_name = "current_process" |
|
) |
| const |
Definition at line 99 of file TriggerNamesService_service.cc.
References util::cend(), fhicl::ParameterSetRegistry::get(), art::ProcessHistory::getConfigurationForProcess(), n, art::Event::processHistory(), and util::size().
104 process_name ==
"current_process" ?
getProcessName() : process_name;
108 auto config =
e.processHistory().getConfigurationForProcess(pname);
110 throw lookup_exception(pname)
111 <<
"Could not locate process configuration for the process '" << pname
113 <<
"This can happen if the ParameterSets were dropped on input.\n" 114 <<
"Please contact artists@fnal.gov for guidance.\n";
120 data_for_process(trigger_pset, pset.get<
ParameterSet>(
"physics"));
124 auto const& names = it->second.triggerPathNames;
125 assert(
size(names) == tr.size());
127 map<string, HLTPathStatus> result;
128 for (
size_t i = 0,
n = tr.size(); i !=
n; ++i) {
129 result.try_emplace(names[i], tr.at(i));
decltype(auto) constexpr cend(T &&obj)
ADL-aware version of std::cend.
std::string const & getProcessName() const
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
TriggerResults const & triggerResults(Event const &e, std::string const &process_name="current_process") const
decltype(auto) get(T &&obj)
ADL-aware version of std::to_string.
std::map< std::string, DataPerProcess > dataPerProcess_
TriggerResults const & art::TriggerNamesService::triggerResults |
( |
Event const & |
e, |
|
|
std::string const & |
process_name = "current_process" |
|
) |
| const |
std::map<std::string, DataPerProcess> art::TriggerNamesService::dataPerProcess_ |
|
mutableprivate |
The documentation for this class was generated from the following files: