22 : processName_(ps.getParameter<
std::
string>(
"processName")),
23 triggerName_(ps.getParameter<
std::
string>(
"triggerName")),
24 triggerResultsTag_(ps.getParameter<
edm::
InputTag>(
"triggerResults")),
26 triggerEventTag_(ps.getParameter<
edm::
InputTag>(
"triggerEvent")),
28 verbose_(ps.getParameter<
bool>(
"verbose")),
29 hltPrescaleProvider_(ps, consumesCollector(), *this) {
44 ->setComment(
"name of trigger Path to consider (use \"@\" to consider all Paths)");
47 desc.add<
unsigned int>(
"stageL1Trigger", 1);
48 desc.add<
bool>(
"verbose",
true)->setComment(
"enable verbose mode");
49 descriptions.
add(
"hltEventAnalyzerAODDefault",
desc);
62 if (triggerIndex >=
n) {
64 <<
" not available in (new) config!";
106 for (
unsigned int i = 0;
i !=
n; ++
i) {
126 if (triggerIndex >=
n) {
140 <<
"]\n prescales L1T: " << prescalesInDetail.first.size();
141 for (
size_t idx = 0;
idx < prescalesInDetail.first.size(); ++
idx) {
142 logtmp <<
" " <<
idx <<
":" << prescalesInDetail.first[
idx].first <<
"/" << prescalesInDetail.first[
idx].second;
144 logtmp <<
"\n prescale HLT: " << prescalesInDetail.second;
154 const unsigned int m(
hltConfig.size(triggerIndex));
155 const std::vector<std::string>& moduleLabels(
hltConfig.moduleLabels(triggerIndex));
156 assert(
m == moduleLabels.size());
169 LOG(
logMsgType_) <<
" Last active module - label/type: " << moduleLabels[moduleIndex] <<
"/" 170 <<
hltConfig.moduleType(moduleLabels[moduleIndex]) <<
" [" << moduleIndex <<
" out of 0-" << (
m - 1)
175 for (
unsigned int j = 0;
j <= moduleIndex; ++
j) {
181 if (filterIndex < triggerEventHandle_->sizeFilters()) {
190 LOG(
logMsgType_) <<
" " << nI <<
" accepted 'L3' objects found: ";
195 <<
" " << TO.
eta() <<
" " << TO.
phi() <<
" " << TO.
mass();
unsigned int index(const unsigned int i) const
Get index (slot position) of module giving the decision of the ith path.
bool accept() const
Has at least one path accepted the event?
const Keys & filterKeys(trigger::size_type index) const
virtual void analyzeTrigger(const edm::Event &, const edm::EventSetup &, const std::string &triggerName)
bool error() const
Has any path encountered an error (exception)
bool const verbose_
additional class data members
const edm::InputTag triggerResultsTag_
const edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const std::string triggerName_
std::pair< std::vector< std::pair< std::string, TL1 > >, THLT > prescaleValuesInDetail(const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger)
HLTConfigProvider const & hltConfigProvider() const
edm::Handle< trigger::TriggerEvent > triggerEventHandle_
const std::string processName_
module config parameters
HLTPrescaleProvider hltPrescaleProvider_
bool wasrun() const
Was at least one path run?
Single trigger physics object (e.g., an isolated muon)
unsigned int size() const
Get number of paths stored.
const edm::InputTag triggerEventTag_
std::pair< TL1, THLT > prescaleValues(const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger)
Combined L1T (pair.first) and HLT (pair.second) prescales per HLT path.
static constexpr const char * logMsgType_
void beginRun(edm::Run const &, edm::EventSetup const &) override
const TriggerObjectCollection & getObjects() const
void analyze(const edm::Event &, const edm::EventSetup &) override
const edm::EDGetTokenT< trigger::TriggerEvent > triggerEventToken_
edm::Handle< edm::TriggerResults > triggerResultsHandle_
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
const Vids & filterIds(trigger::size_type index) const
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
std::vector< size_type > Keys
HLTEventAnalyzerAOD(const edm::ParameterSet &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)