diff --git a/Detector/DetCRD/src/Calorimeter/LongCrystalBarEndcapCalorimeter_v01.cpp b/Detector/DetCRD/src/Calorimeter/LongCrystalBarEndcapCalorimeter_v01.cpp index 5fba0ab7d99b9f2967cd45dc1f7c59aad1b9138d..26bd43475ff43d8e5459470ca5d9daf088905b72 100755 --- a/Detector/DetCRD/src/Calorimeter/LongCrystalBarEndcapCalorimeter_v01.cpp +++ b/Detector/DetCRD/src/Calorimeter/LongCrystalBarEndcapCalorimeter_v01.cpp @@ -231,11 +231,11 @@ static dd4hep::Ref_t create_detector(dd4hep::Detector& theDetector, double last_bar = length_crystal - (Nbar-1)*width_crystal; - dd4hep::Volume bar_s0("bar_s0", dd4hep::Box(length_crystal/2, width_crystal/2-crystal_wrapping, width_crystal/2-crystal_wrapping), mat_BGO); + dd4hep::Volume bar_s0("bar_s0", dd4hep::Box(length_crystal/2-photoelectronic-crystal_wrapping, width_crystal/2-crystal_wrapping, width_crystal/2-crystal_wrapping), mat_BGO); bar_s0.setVisAttributes(theDetector, "EcalBarrelVis"); bar_s0.setSensitiveDetector(sens); - dd4hep::Volume bar_s1("bar_s1", dd4hep::Box(length_crystal/2, last_bar/2-crystal_wrapping, width_crystal/2-crystal_wrapping), mat_BGO); + dd4hep::Volume bar_s1("bar_s1", dd4hep::Box(length_crystal/2-photoelectronic-crystal_wrapping, last_bar/2-crystal_wrapping, width_crystal/2-crystal_wrapping), mat_BGO); bar_s1.setVisAttributes(theDetector, "EcalBarrelVis"); bar_s1.setSensitiveDetector(sens);