diff --git a/src/cb_DIRC.cpp b/src/cb_DIRC.cpp index f2b7c55b3f976fa1aba3fa584e1d97b17457eddf..41932ef80615b869914d52776232812b701059cd 100644 --- a/src/cb_DIRC.cpp +++ b/src/cb_DIRC.cpp @@ -26,7 +26,7 @@ static Ref_t createDetector(Detector& desc, xml_h e, SensitiveDetector sens) Material Vacuum = desc.material("Vacuum"); Tube cb_DIRC_Barrel_GVol_Solid(RIn, ROut, SizeZ / 2.0, 0., 360.0 * deg); Volume detVol("cb_DIRC_GVol_Solid_Logic", cb_DIRC_Barrel_GVol_Solid, Vacuum); - detVol.setVisAttributes(desc.visAttributes(x_det.visStr())); + detVol.setVisAttributes(desc.invisible()); DetElement det(detName, detID); Volume motherVol = desc.pickMotherVolume(det);