Skip to content

Commit fc799d3

Browse files
authored
Merge pull request #45550 from gkaratha/fix_l1t_trkht
Fixing track HT for phase2
2 parents cf6532a + 9d41ec2 commit fc799d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

L1Trigger/L1TTrackMatch/plugins/L1TkHTMissEmulatorProducer.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
// Original Author: Hardik Routray
88
// Created: Mon, 11 Oct 2021
9+
// Update: George Karathanasis, CU Boulder
10+
// 2/4/2024
911

1012
// system include files
1113
#include <memory>
@@ -138,6 +140,8 @@ void L1TkHTMissEmulatorProducer::produce(edm::Event& iEvent, const edm::EventSet
138140
//float tmp_jet_et_ = jetIter->pt(); // FIXME Get Et from the emulated jets
139141
float tmp_jet_pt_ = jetIter->pt();
140142

143+
bool tmp_jet_isDisplaced_ = jetIter->dispflag();
144+
141145
l1tmhtemu::pt_t tmp_jet_pt =
142146
l1tmhtemu::digitizeSignedValue<l1tmhtemu::pt_t>(jetIter->pt(), l1tmhtemu::kInternalPtWidth, l1tmhtemu::kStepPt);
143147
l1tmhtemu::eta_t tmp_jet_eta = l1tmhtemu::digitizeSignedValue<l1tmhtemu::eta_t>(
@@ -204,6 +208,8 @@ void L1TkHTMissEmulatorProducer::produce(edm::Event& iEvent, const edm::EventSet
204208
continue;
205209
if (tmp_jet_nt < minNtracksHighPt_ && tmp_jet_pt > 400)
206210
continue;
211+
if (displaced_ && !tmp_jet_isDisplaced_)
212+
continue;
207213

208214
if (debug_) {
209215
sumPx_ += tmp_jet_px_;

0 commit comments

Comments
 (0)