12 : verbose_(ps.getUntrackedParameter<
bool>(
"verbose",
false)),
13 processName_(ps.getParameter<
std::
string>(
"processName")),
18 ps.getUntrackedParameter<
edm::
InputTag>(
"triggerEvent",
edm::
InputTag(
"hltTriggerSummaryAOD",
"",
"HLT"))),
31 for (
const auto&
path : pathList) {
35 nmatch += TPRegexp(kt).Match(
path);
41 if (triggerIndex >=
n) {
54 if (!triggerResultsHandle_.
isValid()) {
55 edm::LogError(
"HLTPathSelector") <<
"Error in getting TriggerResults product from Event!";
61 if (!triggerEventHandle_.
isValid()) {
62 edm::LogError(
"HLTPathSelector") <<
"Error in getting TriggerEvent product from Event!";
71 const unsigned int triggerIndex(it.second);
72 assert(triggerIndex ==
iEvent.triggerNames(*triggerResultsHandle_).triggerIndex(
path));
77 <<
" WasRun=" << triggerResultsHandle_->
wasrun(triggerIndex)
78 <<
" Accept=" << triggerResultsHandle_->
accept(triggerIndex)
79 <<
" Error=" << triggerResultsHandle_->
error(triggerIndex);
81 if (triggerResultsHandle_->
wasrun(triggerIndex) && triggerResultsHandle_->
accept(triggerIndex)) {
94 edm::LogInfo(
"HLTPathSelector") << setw(32) <<
"HLT Path" << setw(9) <<
"ACCEPT";
95 for (
auto const& jt :
tmap_)
bool accept() const
Has at least one path accepted the event?
HLTConfigProvider hltConfig_
bool error() const
Has any path encountered an error (exception)
std::map< std::string, unsigned int > hltPathsMap_
#define DEFINE_FWK_MODULE(type)
bool filter(edm::Event &, edm::EventSetup const &) override
const edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
Log< level::Error, false > LogError
bool wasrun() const
Was at least one path run?
const std::vector< std::string > hltPathsOfInterest_
unsigned int size() const
Get number of paths stored.
void dump(const std::string &what) const
Dumping config info to cout.
unsigned int size() const
number of trigger paths in trigger table
void beginRun(edm::Run const &, edm::EventSetup const &) override
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
Log< level::Info, false > LogInfo
std::map< std::string, int > tmap_
const edm::EDGetTokenT< trigger::TriggerEvent > triggerEventToken_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
const std::vector< std::string > & triggerNames() const
names of trigger paths
HLTPathSelector(const edm::ParameterSet &)