diff --git a/DDRec/src/Surface.cpp b/DDRec/src/Surface.cpp index 49f5255d875f145a284c7d68283ddd522a93bd16..52a7d444e037136c847d8f043ff48a12b70e54ba 100644 --- a/DDRec/src/Surface.cpp +++ b/DDRec/src/Surface.cpp @@ -572,8 +572,8 @@ namespace dd4hep { +" [Internal error -- bad detector constructor]"); } - PlacedVolume pv_dau = Ref_t(daughter); // why use a Ref_t here ??? - + PlacedVolume pv_dau( daughter ); + if( findVolume( pv_dau , theVol , volList ) ) { // std::cout << " ----- found in daughter volume !!! " << std::hex << pv_dau.volume().ptr() << std::endl ;