Skip to content

Commit 6bfb34d

Browse files
Add possibility to read a labelled triggerbits tag in HLTHighLevel
1 parent ab77a26 commit 6bfb34d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

HLTrigger/HLTfilters/plugins/HLTHighLevel.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ HLTHighLevel::HLTHighLevel(const edm::ParameterSet& iConfig)
4040
andOr_(iConfig.getParameter<bool>("andOr")),
4141
throw_(iConfig.getParameter<bool>("throw")),
4242
eventSetupPathsKey_(iConfig.getParameter<std::string>("eventSetupPathsKey")),
43+
eventSetupPathsLabel_(iConfig.getParameter<std::string>("eventSetupPathsLabel")),
4344
HLTPatterns_(iConfig.getParameter<std::vector<std::string> >("HLTPaths")),
4445
HLTPathsByName_(),
4546
HLTPathsByIndex_() {
@@ -55,7 +56,8 @@ HLTHighLevel::HLTHighLevel(const edm::ParameterSet& iConfig)
5556
<< HLTPatterns_.size() << " HLTPaths and\n"
5657
<< " eventSetupPathsKey " << eventSetupPathsKey_ << ", choose either of them.";
5758
}
58-
alcaRecotriggerBitsToken_ = esConsumes<AlCaRecoTriggerBits, AlCaRecoTriggerBitsRcd>();
59+
alcaRecotriggerBitsToken_ =
60+
esConsumes<AlCaRecoTriggerBits, AlCaRecoTriggerBitsRcd>(edm::ESInputTag("", eventSetupPathsLabel_));
5961
watchAlCaRecoTriggerBitsRcd_.emplace();
6062
}
6163
}
@@ -72,6 +74,7 @@ void HLTHighLevel::fillDescriptions(edm::ConfigurationDescriptions& descriptions
7274
desc.add<std::vector<std::string> >("HLTPaths", hltPaths);
7375
// # not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
7476
desc.add<std::string>("eventSetupPathsKey", "");
77+
desc.add<std::string>("eventSetupPathsLabel", "");
7578
// # how to deal with multiple triggers: True (OR) accept if ANY is true, False (AND) accept if ALL are true
7679
desc.add<bool>("andOr", true);
7780
// # throw exception on unknown path names

HLTrigger/HLTfilters/plugins/HLTHighLevel.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class HLTHighLevel : public edm::stream::EDFilter<> {
7777

7878
/// not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
7979
const std::string eventSetupPathsKey_;
80+
const std::string eventSetupPathsLabel_;
8081
/// Watcher to be created and used if 'eventSetupPathsKey_' non empty:
8182
std::optional<edm::ESWatcher<AlCaRecoTriggerBitsRcd>> watchAlCaRecoTriggerBitsRcd_;
8283
/// ESGetToken to read AlCaRecoTriggerBits

0 commit comments

Comments
 (0)