diff --git a/examples/LHeD/src/Lhe_PolyhedraEndcapCalorimeter2_surfaces.cpp b/examples/LHeD/src/Lhe_PolyhedraEndcapCalorimeter2_surfaces.cpp index d6ea22b67..76a80d816 100644 --- a/examples/LHeD/src/Lhe_PolyhedraEndcapCalorimeter2_surfaces.cpp +++ b/examples/LHeD/src/Lhe_PolyhedraEndcapCalorimeter2_surfaces.cpp @@ -31,7 +31,7 @@ void Installer::install(dd4hep::DetElement component, dd4hep::PlacedVo } else if ( !handleUsingCache(component,comp_vol) ) { dd4hep::DetElement par = component.parent(); - const TGeoHMatrix& m = par.nominal().worldTransformation(); + const TGeoHMatrix m = par.nominal().worldTransformation(); double dz = m.GetTranslation()[2]; const double* trans = placementTranslation(component); double half_mod_thickness = (mod_shape->GetZ(1)-mod_shape->GetZ(0))/2.0;