From 32ff4b06b43541a1d80e16bcbf0d2ef4e0151a8a Mon Sep 17 00:00:00 2001 From: Giovanni Marchiori Date: Thu, 21 Sep 2023 16:46:12 +0200 Subject: [PATCH] small updates after review of PR --- .../FCCee_ECalBarrel_thetamodulemerged.xml | 23 +++---------------- .../include/DetSegmentation/GridTheta.h | 2 +- 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/Detector/DetFCCeeECalInclined/compact/FCCee_ECalBarrel_thetamodulemerged.xml b/Detector/DetFCCeeECalInclined/compact/FCCee_ECalBarrel_thetamodulemerged.xml index d4b13390..e9401b96 100644 --- a/Detector/DetFCCeeECalInclined/compact/FCCee_ECalBarrel_thetamodulemerged.xml +++ b/Detector/DetFCCeeECalInclined/compact/FCCee_ECalBarrel_thetamodulemerged.xml @@ -79,38 +79,21 @@ - - - - - - - - - + + - system:4,cryo:1,type:3,subtype:3,layer:8,module:11,theta:10 - + - system:4,cryo:1,type:3,subtype:3,layer:8,module:11,theta:10 - - diff --git a/Detector/DetSegmentation/include/DetSegmentation/GridTheta.h b/Detector/DetSegmentation/include/DetSegmentation/GridTheta.h index e8f086ea..5707d2e7 100644 --- a/Detector/DetSegmentation/include/DetSegmentation/GridTheta.h +++ b/Detector/DetSegmentation/include/DetSegmentation/GridTheta.h @@ -69,7 +69,7 @@ class GridTheta : public Segmentation { inline void setFieldNameTheta(const std::string& fieldName) { m_thetaID = fieldName; } /// calculates the Cartesian position from cylindrical coordinates (r, phi, theta) inline Vector3D positionFromRThetaPhi(double ar, double atheta, double aphi) const { - return Vector3D(ar * std::cos(aphi), ar * std::sin(aphi), ar * std::cos(atheta)/std::sin(atheta)); + return Vector3D(ar * std::cos(aphi), ar * std::sin(aphi), ar * std::cos(atheta)/std::sin(atheta)); } /// calculates the theta angle from Cartesian coordinates inline double thetaFromXYZ(const Vector3D& aposition) const {