Skip to content

Commit

Permalink
Avoid Wdangling-reference warning in CaloTPGTranscoderULUTs
Browse files Browse the repository at this point in the history
  • Loading branch information
iarspider committed Aug 17, 2024
1 parent 9347fe8 commit 3f0a9bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CalibCalorimetry/CaloTPG/plugins/CaloTPGTranscoderULUTs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<HcalLutMetadataRcd>().get(topoToken);
const auto& topoRecord = iRecord.getRecord<HcalLutMetadataRcd>();
const auto& topo = topoRecord.get(topoToken);

HcalLutMetadata fullLut{lutMetadata};
fullLut.setTopo(&topo);
Expand Down

0 comments on commit 3f0a9bb

Please sign in to comment.