diff --git a/examples/LHeD/src/Lhe_PolyhedraEndcapCalorimeter2_surfaces.cpp b/examples/LHeD/src/Lhe_PolyhedraEndcapCalorimeter2_surfaces.cpp index d6ea22b6711248b6752545e88ae94522c9069d58..76a80d8161ac6a4f2a382c8ae26c96a3538db7ca 100644 --- a/examples/LHeD/src/Lhe_PolyhedraEndcapCalorimeter2_surfaces.cpp +++ b/examples/LHeD/src/Lhe_PolyhedraEndcapCalorimeter2_surfaces.cpp @@ -31,7 +31,7 @@ void Installer<UserData>::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;