diff --git a/src/ffi_ZDC.cpp b/src/ffi_ZDC.cpp index 89690bc244b4578487fde45c8469c283b09e40fc..cedcdb388ddd7b272598ffb4fba4bfd909d7defa 100644 --- a/src/ffi_ZDC.cpp +++ b/src/ffi_ZDC.cpp @@ -31,19 +31,13 @@ static Ref_t createDetector(Detector& desc, xml_h e, SensitiveDetector sens) double mGap = mod.attr<double>(_Unicode(gap)); int mNTowers = mod.attr<double>(_Unicode(ntower)); - //DetElement det(detName, detID); - //Volume motherVol = desc.pickMotherVolume(det); - // Create Global Volume Box ffi_ZDC_GVol_Solid(Width * 0.5, Width * 0.5, Thickness * 0.5); Volume detVol("ffi_ZDC_GVol_Logic", ffi_ZDC_GVol_Solid, Vacuum); - //Transform3D tr(RotationZYX(rot.z(), rot.y(), rot.x()), Position(pos.x(), pos.y(), pos.z())); - //PlacedVolume detPV = motherVol.placeVolume(detVol, tr); - //detPV.addPhysVolID("system", detID); detVol.setVisAttributes(desc.visAttributes(x_det.visStr())); // Construct Tower - // Module + // Single Module Box ffi_ZDC_ECAL_Solid_Tower(mWidth * 0.5, mWidth * 0.5, mThickness * 0.5); Volume modVol("ffi_ZDC_ECAL_Logic_Tower", ffi_ZDC_ECAL_Solid_Tower, mPbWO4); modVol.setVisAttributes(desc.visAttributes(mod.visStr())); @@ -82,7 +76,8 @@ static Ref_t createDetector(Detector& desc, xml_h e, SensitiveDetector sens) DetElement det(detName, detID); Volume motherVol = desc.pickMotherVolume(det); - Transform3D tr(RotationZYX(rot.z(), rot.y(), rot.x()), Position(pos.x(), pos.y(), pos.z())); + Transform3D tr(RotationZYX(0.0, 0.0, 0.0), Position(pos.x(), pos.y(), pos.z())); + //Transform3D tr(RotationZYX(rot.z(), rot.y(), rot.x()), Position(pos.x(), pos.y(), pos.z())); PlacedVolume detPV = motherVol.placeVolume(detVol, tr); detPV.addPhysVolID("system", detID); det.setPlacement(detPV);