From 522895b299d55b23921699f26141bb2a3e34362a Mon Sep 17 00:00:00 2001 From: mmusich Date: Tue, 6 Feb 2024 07:40:54 +0100 Subject: [PATCH] fix DAClusterizerInZ_vect for ASAN_X build --- RecoVertex/PrimaryVertexProducer/src/DAClusterizerInZ_vect.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RecoVertex/PrimaryVertexProducer/src/DAClusterizerInZ_vect.cc b/RecoVertex/PrimaryVertexProducer/src/DAClusterizerInZ_vect.cc index acefd0b8dd200..3477a1a33416c 100644 --- a/RecoVertex/PrimaryVertexProducer/src/DAClusterizerInZ_vect.cc +++ b/RecoVertex/PrimaryVertexProducer/src/DAClusterizerInZ_vect.cc @@ -1313,7 +1313,8 @@ vector DAClusterizerInZ_vect::fill_vertices(double beta, double zerror_squared = sumwp / (sumw * sumw); y.zvtx[k] = sumwz / sumw; } - const auto& bs = vertexTracks[0].stateAtBeamLine().beamSpot(); + + reco::BeamSpot bs = vertexTracks[0].stateAtBeamLine().beamSpot(); GlobalPoint pos(bs.x(y.zvtx[k]), bs.y(y.zvtx[k]), y.zvtx[k]); const float xerror_squared = pow(bs.BeamWidthX(), 2); const float yerror_squared = pow(bs.BeamWidthY(), 2);