diff --git a/CalibCalorimetry/CaloTPG/plugins/CaloTPGTranscoderULUTs.cc b/CalibCalorimetry/CaloTPG/plugins/CaloTPGTranscoderULUTs.cc index 99473986f4d62..72ce528c1563a 100644 --- a/CalibCalorimetry/CaloTPG/plugins/CaloTPGTranscoderULUTs.cc +++ b/CalibCalorimetry/CaloTPG/plugins/CaloTPGTranscoderULUTs.cc @@ -155,7 +155,8 @@ CaloTPGTranscoderULUTs::ReturnType CaloTPGTranscoderULUTs::produce(const CaloTPG const auto& lutMetadata = iRecord.get(lutMetadataToken); const auto& theTrigTowerGeometry = iRecord.get(theTrigTowerGeometryToken); - const auto& topo = iRecord.getRecord().get(topoToken); + const auto& topoRecord = iRecord.getRecord(); + const auto& topo = topoRecord.get(topoToken); HcalLutMetadata fullLut{lutMetadata}; fullLut.setTopo(&topo);