Skip to content

Commit f4be974

Browse files
author
Benjamin Huber
committed
3BodyCuts: Fix resolution reduction to match FW
1 parent ea64476 commit f4be974

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

L1Trigger/Phase2L1GT/plugins/L1GT3BodyCut.h

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,18 @@ namespace l1t {
5252
scaleNormalShift_(std::round(std::log2(std::ceil(coshEtaLUT_.output_scale() / coshEtaLUT2_.output_scale())))),
5353
invMassResolutionReduceShift_([&]() {
5454
if (minInvMassSqrDiv2_) {
55-
return std::max<int>(
56-
std::ceil(std::log2(std::floor(minInvMassSqrDiv2_.value() * cosPhiLUT_.output_scale() + 1.0))) - 16,
57-
0);
55+
return std::max<int>(std::ceil(std::log2(minInvMassSqrDiv2_.value() + 1.0)) - 16, 0);
5856
} else if (maxInvMassSqrDiv2_) {
59-
return std::max<int>(
60-
std::ceil(std::log2(std::ceil(maxInvMassSqrDiv2_.value() * cosPhiLUT_.output_scale()))) - 16, 0);
57+
return std::max<int>(std::ceil(std::log2(maxInvMassSqrDiv2_.value())) - 16, 0);
6158
} else {
6259
return 0;
6360
}
6461
}()),
6562
transMassResolutionReduceShift_([&]() {
6663
if (minTransMassSqrDiv2_) {
67-
return std::max<int>(
68-
std::ceil(std::log2(std::floor(minTransMassSqrDiv2_.value() * cosPhiLUT_.output_scale() + 1.0))) - 16,
69-
0);
64+
return std::max<int>(std::ceil(std::log2(minTransMassSqrDiv2_.value() + 1.0)) - 16, 0);
7065
} else if (maxTransMassSqrDiv2_) {
71-
return std::max<int>(
72-
std::ceil(std::log2(std::ceil(maxTransMassSqrDiv2_.value() * cosPhiLUT_.output_scale()))) - 16, 0);
66+
return std::max<int>(std::ceil(std::log2(maxTransMassSqrDiv2_.value())) - 16, 0);
7367
} else {
7468
return 0;
7569
}

0 commit comments

Comments
 (0)