#include "TriggerNamesService.h"
|
using | Strings = std::vector< std::string > |
|
using | PosMap = std::map< std::string, unsigned int > |
|
using | size_type = PosMap::size_type |
|
Definition at line 41 of file TriggerNamesService.h.
TriggerNamesService::TriggerNamesService |
( |
fhicl::ParameterSet const & |
procPS, |
|
|
std::vector< std::string > const & |
triggerPathNames |
|
) |
| |
Definition at line 22 of file TriggerNamesService_service.cc.
References end_names_, end_pos_, modulenames_, process_name_, fhicl::ParameterSet::put(), trigger_pset_, trignames_, trigpos_, and wantSummary_.
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); });
fhicl::ParameterSet trigger_pset_
std::string process_name_
std::vector< Strings > modulenames_
std::vector< std::string > Strings
PosMap::size_type size_type
void put(std::string const &key)
size_type art::TriggerNamesService::find |
( |
PosMap const & |
posmap, |
|
|
std::string const & |
name |
|
) |
| const |
|
inline |
size_type art::TriggerNamesService::findTrigPath |
( |
std::string const & |
name | ) |
const |
|
inline |
std::string const& art::TriggerNamesService::getProcessName |
( |
| ) |
const |
|
inline |
std::string const& art::TriggerNamesService::getTrigPath |
( |
size_type const |
i | ) |
const |
|
inline |
std::string const & art::TriggerNamesService::getTrigPathModule |
( |
std::string const & |
name, |
|
|
size_type const |
j |
|
) |
| const |
|
inline |
std::string const & art::TriggerNamesService::getTrigPathModule |
( |
size_type const |
i, |
|
|
size_type const |
j |
|
) |
| const |
|
inline |
auto art::TriggerNamesService::getTrigPathModules |
( |
std::string const & |
name | ) |
const -> Strings const& |
|
inline |
auto art::TriggerNamesService::getTrigPathModules |
( |
size_type const |
i | ) |
const -> Strings const& |
|
inline |
Strings const& art::TriggerNamesService::getTrigPaths |
( |
| ) |
const |
|
inline |
bool TriggerNamesService::getTrigPaths |
( |
TriggerResults const & |
triggerResults, |
|
|
Strings & |
trigPaths |
|
) |
| const |
Definition at line 54 of file TriggerNamesService_service.cc.
References fhicl::ParameterSet::get(), art::TriggerResults::parameterSetID(), art::HLTGlobalStatus::size(), std::swap(), and art::errors::Unknown.
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";
std::vector< std::string > Strings
T get(std::string const &key) const
void swap(art::HLTGlobalStatus &lhs, art::HLTGlobalStatus &rhs)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
size_type art::TriggerNamesService::size |
( |
void |
| ) |
const |
|
inline |
bool art::TriggerNamesService::wantSummary |
( |
| ) |
const |
|
inline |
Strings art::TriggerNamesService::end_names_ {} |
|
private |
PosMap art::TriggerNamesService::end_pos_ {} |
|
private |
std::vector<Strings> art::TriggerNamesService::modulenames_ {} |
|
private |
std::string art::TriggerNamesService::process_name_ |
|
private |
Strings art::TriggerNamesService::trignames_ |
|
private |
PosMap art::TriggerNamesService::trigpos_ {} |
|
private |
bool art::TriggerNamesService::wantSummary_ |
|
private |
The documentation for this class was generated from the following files: