Skip to content

Commit

Permalink
Merge pull request #45728 from iarspider/iarspider-patch-20240817-1
Browse files Browse the repository at this point in the history
[GCC13][AlCa] Avoid storing reference to a temporary object
  • Loading branch information
cmsbuild authored Aug 19, 2024
2 parents 9f8ff8e + e1b4925 commit f529d2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ void PixelBaryCentreAnalyzer::analyze(const edm::Event& iEvent, const edm::Event
const SiPixelQuality* badPixelInfo = &iSetup.getData(siPixelQualityToken_);

// Tracker global position
const AlignTransform& glbCoord = align::DetectorGlobalPosition(iSetup.getData(gprToken_), DetId(DetId::Tracker));
const AlignTransform glbCoord = align::DetectorGlobalPosition(iSetup.getData(gprToken_), DetId(DetId::Tracker));

// Convert AlignTransform::Translation to GlobalVector using the appropriate constructor
GlobalVector globalTkPosition(glbCoord.translation().x(), glbCoord.translation().y(), glbCoord.translation().z());
Expand Down

0 comments on commit f529d2a

Please sign in to comment.