From a44a24f08de162b5b6e7f9081627170f1afc7ac4 Mon Sep 17 00:00:00 2001 From: Petr Balek Date: Fri, 28 Jan 2022 12:32:12 +0100 Subject: [PATCH] another fix for AFP Geometry --- .../AFP/AFP_Geometry/src/AFP_Geometry.cxx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/ForwardDetectors/AFP/AFP_Geometry/src/AFP_Geometry.cxx b/ForwardDetectors/AFP/AFP_Geometry/src/AFP_Geometry.cxx index 4e6af42ae12..a6b313f629b 100644 --- a/ForwardDetectors/AFP/AFP_Geometry/src/AFP_Geometry.cxx +++ b/ForwardDetectors/AFP/AFP_Geometry/src/AFP_Geometry.cxx @@ -145,17 +145,17 @@ HepGeom::Transform3D AFP_Geometry::getSIDTransform(const eSIDTransformType eType AFP_SIDCONFIGURATION sidcfg=m_CfgParams.sidcfg.at(eStation); double falpha = sidcfg.fSlope; - double fxm=-(sidcfg.vecChipXPos[nPlateID]+0.5*sidcfg.vecChipXLength[nPlateID])*std::cos(falpha); double fzm=0.0; - double fZCorrOffset=(DETXSIDE==+1 || falpha==0)? -0:4*AfpConstants.SiT_CorrZOffset; - - HepGeom::Transform3D TransInMotherVolume=getStationElementTransform(pszStationName,ESE_SID,nPlateID); - HepGeom::Transform3D NominalPosInPocket=HepGeom::Translate3D(0.0*CLHEP::mm,0.0*CLHEP::mm, (fzm-fZCorrOffset)); - + double fzm=0.0; if(eType==ESTT_VACUUMSENSOR) { if(nPlateID