|
|
Go to the documentation of this file.
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 filter(edm::Event &, edm::EventSetup const &) override
const edm::EDGetTokenT< trigger::TriggerEvent > triggerEventToken_
const edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
bool wasrun() const
Was at least one path run?
bool error() const
Has any path encountered an error (exception)
Log< level::Info, false > LogInfo
void dump(const std::string &what) const
Dumping config info to cout.
const std::vector< std::string > hltPathsOfInterest_
#define DEFINE_FWK_MODULE(type)
unsigned int size() const
Get number of paths stored.
unsigned int size() const
number of trigger paths in trigger table
std::map< std::string, unsigned int > hltPathsMap_
HLTPathSelector(const edm::ParameterSet &)
Log< level::Error, false > LogError
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
void beginRun(edm::Run const &, edm::EventSetup const &) override
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
bool accept() const
Has at least one path accepted the event?
const std::vector< std::string > & triggerNames() const
names of trigger paths
HLTConfigProvider hltConfig_
std::map< std::string, int > tmap_