diff --git a/Detector/DetCRD/compact/CRD_common_v01/Ecal_Crystal_Endcap_v01_01.xml b/Detector/DetCRD/compact/CRD_common_v01/Ecal_Crystal_Endcap_v01_01.xml index a9ab8c907ac719b3b3241d4a4d7a459e1601ff10..170fcb7acda81eab634b0fd736294cd48c6c8b53 100755 --- a/Detector/DetCRD/compact/CRD_common_v01/Ecal_Crystal_Endcap_v01_01.xml +++ b/Detector/DetCRD/compact/CRD_common_v01/Ecal_Crystal_Endcap_v01_01.xml @@ -30,7 +30,7 @@ </regions> <detectors> - <detector id="DetID_ECAL_ENDCAP" name="CaloDetectorEndcap" type="LongCrystalBarEndcapCalorimeter_v01" readout="EcalEndcapsCollection" vis="Invisible" sensitive="true" region="EcalendcapRegion"> + <detector id="DetID_ECAL_ENDCAP" name="EcalEndcaps" type="LongCrystalBarEndcapCalorimeter_v01" readout="EcalEndcapsCollection" vis="Invisible" sensitive="true" region="EcalendcapRegion"> <!-- Use cm as unit if you want to use Pandora for reconstruction --> </detector> </detectors> diff --git a/Detector/DetCRD/src/Calorimeter/LongCrystalBarEndcapCalorimeter_v01.cpp b/Detector/DetCRD/src/Calorimeter/LongCrystalBarEndcapCalorimeter_v01.cpp index 26bd43475ff43d8e5459470ca5d9daf088905b72..b127f648b43b0b72ca722035d90fd843ed885aff 100755 --- a/Detector/DetCRD/src/Calorimeter/LongCrystalBarEndcapCalorimeter_v01.cpp +++ b/Detector/DetCRD/src/Calorimeter/LongCrystalBarEndcapCalorimeter_v01.cpp @@ -90,7 +90,7 @@ static dd4hep::Ref_t create_detector(dd4hep::Detector& theDetector, // dd4hep::Volume envelopeVolZminus("envelopeVolZminus", boolean, vacuum); - dd4hep::Volume envelopeVol("envelopeVol", unionean, vacuum); + dd4hep::Volume envelopeVol(det_name, unionean, vacuum); dd4hep::Transform3D transform(dd4hep::RotationZ(90*degree), dd4hep::Position(0.0, 0.0, -z_min-z_depth/2)); dd4hep::PlacedVolume envelopePlv = motherVol.placeVolume(envelopeVol, transform);