Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion HLTrigger/JetMET/plugins/HLTJetTimingFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class HLTJetTimingFilter : public HLTFilter {
// Thresholds for selection
const unsigned int minJets_;
const double jetTimeThresh_;
const double jetMaxTimeThresh_;
const double jetEcalEtForTimingThresh_;
const unsigned int jetCellsForTimingThresh_;
const double minPt_;
Expand All @@ -54,6 +55,7 @@ HLTJetTimingFilter<T>::HLTJetTimingFilter(const edm::ParameterSet& iConfig)
consumes<edm::ValueMap<float>>(iConfig.getParameter<edm::InputTag>("jetEcalEtForTiming"))},
minJets_{iConfig.getParameter<unsigned int>("minJets")},
jetTimeThresh_{iConfig.getParameter<double>("jetTimeThresh")},
jetMaxTimeThresh_{iConfig.getParameter<double>("jetMaxTimeThresh")},
jetEcalEtForTimingThresh_{iConfig.getParameter<double>("jetEcalEtForTimingThresh")},
jetCellsForTimingThresh_{iConfig.getParameter<unsigned int>("jetCellsForTimingThresh")},
minPt_{iConfig.getParameter<double>("minJetPt")} {}
Expand All @@ -74,7 +76,7 @@ bool HLTJetTimingFilter<T>::hltFilter(edm::Event& iEvent,
for (auto iterJet = jets->begin(); iterJet != jets->end(); ++iterJet) {
edm::Ref<std::vector<T>> const caloJetRef(jets, std::distance(jets->begin(), iterJet));
if (iterJet->pt() > minPt_ and jetTimes[caloJetRef] > jetTimeThresh_ and
jetEcalEtForTiming[caloJetRef] > jetEcalEtForTimingThresh_ and
jetTimes[caloJetRef] < jetMaxTimeThresh_ and jetEcalEtForTiming[caloJetRef] > jetEcalEtForTimingThresh_ and
jetCellsForTiming[caloJetRef] > jetCellsForTimingThresh_) {
// add caloJetRef to the event
filterproduct.addObject(trigger::TriggerJet, caloJetRef);
Expand All @@ -97,6 +99,7 @@ void HLTJetTimingFilter<T>::fillDescriptions(edm::ConfigurationDescriptions& des
edm::InputTag("hltDisplacedHLTCaloJetCollectionProducerMidPtTiming", "jetEcalEtForTiming"));
desc.add<unsigned int>("minJets", 1);
desc.add<double>("jetTimeThresh", 1.);
desc.add<double>("jetMaxTimeThresh", 999999);
desc.add<unsigned int>("jetCellsForTimingThresh", 5);
desc.add<double>("jetEcalEtForTimingThresh", 10.);
desc.add<double>("minJetPt", 40.);
Expand Down