diff --git a/DDRec/src/gear/createGearForILD.cpp b/DDRec/src/gear/createGearForILD.cpp index a240eec22076580fea3bef58027c4d8b02427770..c58941743c6706a3cd49acae0331dfc13090608d 100644 --- a/DDRec/src/gear/createGearForILD.cpp +++ b/DDRec/src/gear/createGearForILD.cpp @@ -259,6 +259,26 @@ namespace DD4hep{ //============================================================================================ + try { + + DetElement coilDE = lcdd.detector("Coil") ; + + gear::GearParametersImpl* gearCOIL = new gear::GearParametersImpl(); + + Tube coilTube = Tube( coilDE.volume().solid() ) ; + + gearCOIL->setDoubleVal("Coil_cryostat_outer_radius" , coilTube->GetRmin() ) ; + gearCOIL->setDoubleVal("Coil_cryostat_inner_radius" , coilTube->GetRmax() ) ; + gearCOIL->setDoubleVal("Coil_cryostat_half_z" , coilTube->GetDZ() ) ; + + coilDE.addExtension< GearHandle >( new GearHandle( gearCOIL, "Coil" ) ) ; + + } catch( std::runtime_error& e ){ + std::cerr << " >>>> " << e.what() << std::endl ; + } + + //============================================================================================ + try { DetElement tubeDE = lcdd.detector("Tube") ;