Skip to content

Commit 0211f1f

Browse files
author
Benjamin Huber
committed
Fix prompt HT sum interface
1 parent 67b159d commit 0211f1f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

L1Trigger/Phase2L1GT/plugins/L1GTProducer.cc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,13 @@ namespace l1t {
231231
const std::vector<l1t::EtSum> &collection = event.get(gttPromptHtSumToken_);
232232
if (collection.size() > 0) {
233233
const l1t::EtSum &obj = collection[0];
234-
P2GTCandidate gtObj(
235-
0,
236-
reco::ParticleState::PolarLorentzVector(scales_.to_pT(obj.p4().energy()), 0, scales_.to_phi(obj.hwPhi()), 0));
237-
l1tmhtemu::EtMiss etmiss;
238-
gtObj.hwPT_ = obj.p4().energy();
234+
l1tmhtemu::EtMiss htMiss;
235+
htMiss.Et = obj.p4().energy();
236+
P2GTCandidate gtObj(0,
237+
reco::ParticleState::PolarLorentzVector(
238+
scales_.to_pT(htMiss.Et.V.to_int()), 0, scales_.to_phi(obj.hwPhi()), 0));
239+
240+
gtObj.hwPT_ = htMiss.Et.V.to_int();
239241
gtObj.hwPhi_ = obj.hwPhi();
240242
gtObj.hwScalarSumPT_ = obj.hwPt();
241243
gtObj.objectType_ = P2GTCandidate::GTTPromptHtSum;

0 commit comments

Comments
 (0)