diff --git a/src/cb_VTX.cpp b/src/cb_VTX.cpp index 808641b03ca8937b4c75d806e92425ab89209e2d..398fba33f9f77af5aba8be9085952e6e2602f554 100644 --- a/src/cb_VTX.cpp +++ b/src/cb_VTX.cpp @@ -147,7 +147,7 @@ static Ref_t createDetector(Detector& desc, xml_h e, SensitiveDetector sens) NUMF = 18; fVTX_END_EDY = 14.0 * cm; Fdeltaphi = 20.0 * deg; - Ftheta = -44.0 * deg; + Ftheta = -45.0 * deg; RxF[lay] = 1.0 * cm; RyF[lay] = RxF[lay]; RzF[lay] = -Rzshift + 1.0 * cm; @@ -174,8 +174,8 @@ static Ref_t createDetector(Detector& desc, xml_h e, SensitiveDetector sens) Volume ladderENDEVol(logicladderENDEName,Trap(fVTX_END_EDZ,fVTX_END_EDY + lay * 2.0, fVTX_END_EDX1, fVTX_END_EDX2), slice_mat); for (int ia = 0; ia < NUMF; ia++) { phi = ia * Fdeltaphi; - x = -RxF[lay] * cos(phi) * cm; - y = -RyF[lay] * sin(phi) * cm; + x = -RxF[lay] * cos(phi); + y = -RyF[lay] * sin(phi); z = RzF[lay]; RotationZYX ladder_ENDE_rot = RotationZYX(-90.0 + (Fdeltaphi * (ia + 1)), 0.0, Ftheta); @@ -191,8 +191,8 @@ static Ref_t createDetector(Detector& desc, xml_h e, SensitiveDetector sens) Volume ladderENDHVol(logicladderENDHName,Trap(fVTX_END_EDZ, fVTX_END_EDY, fVTX_END_EDX1, fVTX_END_EDX2), slice_mat); for (int ia = 0; ia < NUMF; ia++) { phi = ia * Fdeltaphi; - x = -RxF2[lay] * cos(phi) * cm; - y = -RyF2[lay] * sin(phi) * cm; + x = -RxF2[lay] * cos(phi); + y = -RyF2[lay] * sin(phi); z = RzF2[lay]; RotationZYX ladder_ENDH_rot = RotationZYX(-90.0 + (Fdeltaphi * (ia + 1)), 0.0, -Ftheta);