From ff2564d2017280ee6e438d12c7e0bb2f1de8e3b8 Mon Sep 17 00:00:00 2001 From: Mehulkumar Shiroya <m.shiroya@gsi.de> Date: Fri, 19 Nov 2021 16:21:25 +0100 Subject: [PATCH] Corrects STS v21e geometry version Change in tranformation from global origin (centre of magnet) to local origin of sts (last station) to a 59.5cm shift. Front face of sts from a target placed at 44cm is now 1.6 cm. --- macro/sts/geometry/create_stsgeo_v21e.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/macro/sts/geometry/create_stsgeo_v21e.C b/macro/sts/geometry/create_stsgeo_v21e.C index 0dfc890f63..63c82167ce 100644 --- a/macro/sts/geometry/create_stsgeo_v21e.C +++ b/macro/sts/geometry/create_stsgeo_v21e.C @@ -805,8 +805,8 @@ void create_stsgeo_v21e(const char* geoTag = "v21e") // TGeoTranslation* stsTrans = new TGeoTranslation(0., 0., stsPosZ); - // to make translation from the second STS station (Reason: Origin point{x=0, y=0, z=0} is taken from the last sts station.) - TGeoTranslation* stsTrans = new TGeoTranslation(0., 0., (statPos[13] - statPos[0])); + // to make translation to the center of magnet (Reason: Origin point{x=0, y=0, z=0} is taken from the last sts station.) + TGeoTranslation* stsTrans = new TGeoTranslation(0., 0., 59.5); top->AddNode(sts, 1, stsTrans); top->GetShape()->ComputeBBox(); cout << endl << endl; @@ -825,7 +825,7 @@ void create_stsgeo_v21e(const char* geoTag = "v21e") sts->Export(geoFileName); // an another way of writing the stsvolume placement TFile* geoFile = new TFile(geoFileName, "UPDATE"); - TGeoTranslation* sts_volume_placement = new TGeoTranslation("sts_trans", 0., 0., (statPos[13] - statPos[0])); + TGeoTranslation* sts_volume_placement = new TGeoTranslation("sts_trans", 0., 0., 59.5); sts_volume_placement->Write(); //*/ cout << endl; -- GitLab