Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HLTPrescaler work (93X) #19580

Merged
merged 1 commit into from
Jul 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions HLTrigger/HLTcore/interface/HLTPrescaleProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "L1Trigger/GlobalTriggerAnalyzer/interface/L1GtUtils.h"
#include "L1Trigger/L1TGlobal/interface/L1TGlobalUtil.h"
#include "DataFormats/L1TGlobal/interface/GlobalLogicParser.h"
#include "DataFormats/Common/interface/TriggerResults.h"

#include <string>
#include <utility>
Expand Down Expand Up @@ -76,6 +77,8 @@ class HLTPrescaleProvider {
std::pair<std::vector<std::pair<std::string,int> >,int> prescaleValuesInDetail(const edm::Event& iEvent,
const edm::EventSetup& iSetup,
const std::string& trigger);
// Event rejected by HLTPrescaler on ith HLT path?
bool rejectedByHLTPrescaler(const edm::TriggerResults& triggerResults, unsigned int i) const;

private:

Expand Down
10 changes: 8 additions & 2 deletions HLTrigger/HLTcore/src/HLTPrescaleProvider.cc
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ HLTPrescaleProvider::prescaleValues(const edm::Event& iEvent,
// no L1 seed module on path hence no L1 seed hence formally no L1 prescale
result.first=1;
} else if (nL1TSeedModules==1) {
l1tGlobalUtil_.retrieveL1Event(iEvent,iSetup);
// l1tGlobalUtil_.retrieveL1Event(iEvent,iSetup);
const std::string l1tname(hltConfigProvider_.hltL1TSeeds(trigger).at(0));
bool l1error(!l1tGlobalUtil_.getPrescaleByName(l1tname,result.first));
if (l1error) {
Expand Down Expand Up @@ -282,7 +282,7 @@ HLTPrescaleProvider::prescaleValuesInDetail(const edm::Event& iEvent,
// no L1 seed module on path hence no L1 seed hence formally no L1 prescale
result.first.clear();
} else if (nL1TSeedModules==1) {
l1tGlobalUtil_.retrieveL1Event(iEvent,iSetup);
// l1tGlobalUtil_.retrieveL1Event(iEvent,iSetup);
std::string l1tname(hltConfigProvider_.hltL1TSeeds(trigger).at(0));
GlobalLogicParser l1tGlobalLogicParser = GlobalLogicParser(l1tname);
const std::vector<GlobalLogicParser::OperandToken> l1tSeeds = l1tGlobalLogicParser.expressionSeedsOperandList();
Expand Down Expand Up @@ -344,3 +344,9 @@ HLTPrescaleProvider::prescaleValuesInDetail(const edm::Event& iEvent,

return result;
}

bool HLTPrescaleProvider::rejectedByHLTPrescaler(const edm::TriggerResults& triggerResults, unsigned int i) const {

return hltConfigProvider_.moduleType(hltConfigProvider_.moduleLabel(i,triggerResults.index(i)))=="HLTPrescaler";

}