Skip to content

Commit b8ddc7d

Browse files
committed
copy rather than reference world transformation
1 parent ea833ce commit b8ddc7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BeamPipeTracking_geo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s
5959
double plane_yrot = getAttrOrDefault<double>(slice_coll, _Unicode(plane_yrot), 0.0);
6060

6161
// Get the mother volume's transformation to world frame
62-
const auto& mother_matrix = mother.nominal().worldTransformation();
62+
auto mother_matrix = mother.nominal().worldTransformation();
6363
const Double_t* translation = mother_matrix.GetTranslation();
6464
const Double_t* rotation = mother_matrix.GetRotationMatrix();
6565

0 commit comments

Comments
 (0)