Skip to content
Snippets Groups Projects
Commit 2fba98fe authored by Daniele Zanzi's avatar Daniele Zanzi
Browse files

muon fix (ATR-24501)

parent 057c1e69
No related branches found
No related tags found
5 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!48169muon muctpi->topo fix (ATR-24501)
......@@ -385,6 +385,8 @@ namespace LVL1MUCTPIPHASE1 {
int ptword = sectorData->pt(icand);
if (ptword < 0) continue;
// the following doesn't quite follow the correct nomenclature, should be (side, isub, isec, roiID) thus there was a typo chain in L399+ using isub instead of the correct isys
// see: https://gitlab.cern.ch/atlas/athena/-/blob/master/Trigger/TrigT1/TrigT1MuctpiPhase1/src/L1TopoLUT.cxx#L161
L1TopoCoordinates coord = m_l1topoLUT->getCoordinates(isub, isys, isec, roiID);
//check for invalid decoding
......@@ -396,13 +398,13 @@ namespace LVL1MUCTPIPHASE1 {
}
int ptValue = 0;
auto enc = m_ptEncoding[isub].find(ptword);
if (enc == m_ptEncoding[isub].end())
auto enc = m_ptEncoding[isys].find(ptword);
if (enc == m_ptEncoding[isys].end())
{
auto last_enc = m_ptEncoding[isub].rbegin();
if (last_enc != m_ptEncoding[isub].rend() && ptword > last_enc->first)
auto last_enc = m_ptEncoding[isys].rbegin();
if (last_enc != m_ptEncoding[isys].rend() && ptword > last_enc->first)
{
ptValue = m_ptEncoding[isub].rbegin()->second;
ptValue = m_ptEncoding[isys].rbegin()->second;
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment