diff --git a/HLTrigger/JetMET/plugins/HLTJetTimingFilter.h b/HLTrigger/JetMET/plugins/HLTJetTimingFilter.h index 8a0719e23a6ae..491c323f1baa0 100644 --- a/HLTrigger/JetMET/plugins/HLTJetTimingFilter.h +++ b/HLTrigger/JetMET/plugins/HLTJetTimingFilter.h @@ -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_; @@ -54,6 +55,7 @@ HLTJetTimingFilter::HLTJetTimingFilter(const edm::ParameterSet& iConfig) consumes>(iConfig.getParameter("jetEcalEtForTiming"))}, minJets_{iConfig.getParameter("minJets")}, jetTimeThresh_{iConfig.getParameter("jetTimeThresh")}, + jetMaxTimeThresh_{iConfig.getParameter("jetMaxTimeThresh")}, jetEcalEtForTimingThresh_{iConfig.getParameter("jetEcalEtForTimingThresh")}, jetCellsForTimingThresh_{iConfig.getParameter("jetCellsForTimingThresh")}, minPt_{iConfig.getParameter("minJetPt")} {} @@ -74,7 +76,7 @@ bool HLTJetTimingFilter::hltFilter(edm::Event& iEvent, for (auto iterJet = jets->begin(); iterJet != jets->end(); ++iterJet) { edm::Ref> 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); @@ -97,6 +99,7 @@ void HLTJetTimingFilter::fillDescriptions(edm::ConfigurationDescriptions& des edm::InputTag("hltDisplacedHLTCaloJetCollectionProducerMidPtTiming", "jetEcalEtForTiming")); desc.add("minJets", 1); desc.add("jetTimeThresh", 1.); + desc.add("jetMaxTimeThresh", 999999); desc.add("jetCellsForTimingThresh", 5); desc.add("jetEcalEtForTimingThresh", 10.); desc.add("minJetPt", 40.);