From aa43152191b1f5f3909e29f703d1a072055d55b3 Mon Sep 17 00:00:00 2001 From: martinez Date: Thu, 3 May 2007 15:56:54 +0000 Subject: [PATCH] New traslation of the half-chamber pannels of St345 to take into account the the rotation of 0.794 degrees along the X axis with respect the center of the chamber (Gines) --- MUON/AliMUONSlatGeometryBuilder.cxx | 36 ++++++++++++++++++----------- MUON/data/transform.dat | 32 ++++++++++++------------- 2 files changed, 39 insertions(+), 29 deletions(-) diff --git a/MUON/AliMUONSlatGeometryBuilder.cxx b/MUON/AliMUONSlatGeometryBuilder.cxx index 534064eada9..e925ca0fc4f 100644 --- a/MUON/AliMUONSlatGeometryBuilder.cxx +++ b/MUON/AliMUONSlatGeometryBuilder.cxx @@ -530,7 +530,7 @@ void AliMUONSlatGeometryBuilder::CreateGeometry() gMC->Gspos("S05E",2*index-1,"SB5B", xx, 0.,-kBframeWidth/2.+ kNulocWidth/2, 0, "ONLY"); gMC->Gspos("S05E",2*index ,"SB5B", xx, 0., kBframeWidth/2.- kNulocWidth/2, 0, "ONLY"); } - } + } // position the volumes approximating the circular section of the pipe Float_t epsilon = 0.001; @@ -1294,29 +1294,39 @@ void AliMUONSlatGeometryBuilder::SetTransformations() TGeoRotation st345inclination("rot99"); st345inclination.RotateX(AliMUONConstants::St345Inclination()); +// The rotation of the half-chamber is done with respect the center of the chamber. +// the distance beween the roation axis and the chamber position is +// AliMUONConstants::DzCh()+AliMUONConstants::DzSlat() +// Therefore the position of the half-chamber has to be corrected by a traslation in Z and Y axis + Double_t delta_y = (AliMUONConstants::DzCh()+AliMUONConstants::DzSlat())* + TMath::Sin(AliMUONConstants::St345Inclination() * TMath::Pi()/180.); + Double_t delta_z = (AliMUONConstants::DzCh()+AliMUONConstants::DzSlat())* + (1.-TMath::Cos(AliMUONConstants::St345Inclination() * TMath::Pi()/180.)); + + Double_t zpos1= - AliMUONConstants::DefaultChamberZ(4); - SetTransformation(4, TGeoTranslation(0., 0., zpos1), st345inclination); - SetTransformation(5, TGeoTranslation(0., 0., zpos1), st345inclination); + SetTransformation(4, TGeoTranslation(0., -delta_y, -delta_z+zpos1), st345inclination); + SetTransformation(5, TGeoTranslation(0., delta_y, delta_z+zpos1), st345inclination); zpos1= - AliMUONConstants::DefaultChamberZ(5); - SetTransformation(6, TGeoTranslation(0., 0., zpos1), st345inclination); - SetTransformation(7, TGeoTranslation(0., 0., zpos1), st345inclination); + SetTransformation(6, TGeoTranslation(0., -delta_y, -delta_z+zpos1), st345inclination); + SetTransformation(7, TGeoTranslation(0., delta_y, delta_z+zpos1), st345inclination); zpos1 = - AliMUONConstants::DefaultChamberZ(6); - SetTransformation(8, TGeoTranslation(0., 0., zpos1), st345inclination); - SetTransformation(9, TGeoTranslation(0., 0., zpos1), st345inclination); + SetTransformation(8, TGeoTranslation(0., -delta_y, -delta_z+zpos1), st345inclination); + SetTransformation(9, TGeoTranslation(0., delta_y, delta_z+zpos1), st345inclination); zpos1 = - AliMUONConstants::DefaultChamberZ(7); - SetTransformation(10, TGeoTranslation(0., 0., zpos1), st345inclination ); - SetTransformation(11, TGeoTranslation(0., 0., zpos1), st345inclination ); + SetTransformation(10, TGeoTranslation(0., -delta_y, -delta_z+zpos1), st345inclination ); + SetTransformation(11, TGeoTranslation(0., delta_y, delta_z+zpos1), st345inclination ); zpos1 = - AliMUONConstants::DefaultChamberZ(8); - SetTransformation(12, TGeoTranslation(0., 0., zpos1), st345inclination); - SetTransformation(13, TGeoTranslation(0., 0., zpos1), st345inclination); + SetTransformation(12, TGeoTranslation(0., -delta_y, -delta_z+zpos1), st345inclination); + SetTransformation(13, TGeoTranslation(0., delta_y, delta_z+zpos1), st345inclination); zpos1 = - AliMUONConstants::DefaultChamberZ(9); - SetTransformation(14, TGeoTranslation(0., 0., zpos1), st345inclination); - SetTransformation(15, TGeoTranslation(0., 0., zpos1), st345inclination); + SetTransformation(14, TGeoTranslation(0., -delta_y, -delta_z+zpos1), st345inclination); + SetTransformation(15, TGeoTranslation(0., delta_y, delta_z+zpos1), st345inclination); } diff --git a/MUON/data/transform.dat b/MUON/data/transform.dat index 6bdadfabb28..4fb60ba3510 100644 --- a/MUON/data/transform.dat +++ b/MUON/data/transform.dat @@ -2,18 +2,18 @@ GM 0 pos: 0.0000 0.0000 -526.1600 rot: 90.0000 0.0000 90 GM 1 pos: 0.0000 0.0000 -545.2400 rot: 90.0000 0.0000 90.0000 90.0000 0.0000 0.0000 GM 2 pos: 0.0000 0.0000 -676.4000 rot: 90.0000 0.0000 90.0000 90.0000 0.0000 0.0000 GM 3 pos: 0.0000 0.0000 -695.4000 rot: 90.0000 0.0000 90.0000 90.0000 0.0000 0.0000 -GM 4 pos: 0.0000 0.0000 -967.5000 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 -GM 5 pos: 0.0000 0.0000 -967.5000 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 -GM 6 pos: 0.0000 0.0000 -998.5000 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 -GM 7 pos: 0.0000 0.0000 -998.5000 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 -GM 8 pos: 0.0000 0.0000 -1276.5000 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 -GM 9 pos: 0.0000 0.0000 -1276.5000 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 -GM 10 pos: 0.0000 0.0000 -1307.5000 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 -GM 11 pos: 0.0000 0.0000 -1307.5000 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 -GM 12 pos: 0.0000 0.0000 -1406.6000 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 -GM 13 pos: 0.0000 0.0000 -1406.6000 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 -GM 14 pos: 0.0000 0.0000 -1437.6000 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 -GM 15 pos: 0.0000 0.0000 -1437.6000 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 +GM 4 pos: 0.0000 -0.1663 -967.4988 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 +GM 5 pos: 0.0000 0.1663 -967.5012 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 +GM 6 pos: 0.0000 -0.1663 -998.4988 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 +GM 7 pos: 0.0000 0.1663 -998.5012 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 +GM 8 pos: 0.0000 -0.1663 -1276.4988 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 +GM 9 pos: 0.0000 0.1663 -1276.5012 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 +GM 10 pos: 0.0000 -0.1663 -1307.4988 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 +GM 11 pos: 0.0000 0.1663 -1307.5012 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 +GM 12 pos: 0.0000 -0.1663 -1406.5988 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 +GM 13 pos: 0.0000 0.1663 -1406.6011 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 +GM 14 pos: 0.0000 -0.1663 -1437.5988 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 +GM 15 pos: 0.0000 0.1663 -1437.6011 rot: 90.0000 0.0000 90.7940 90.0000 0.7940 90.0000 GM 16 pos: 0.0000 0.0000 -1603.5000 rot: 90.0000 0.0000 90.0000 90.0000 0.0000 0.0000 GM 17 pos: 0.0000 0.0000 -1620.5000 rot: 90.0000 0.0000 90.0000 90.0000 0.0000 0.0000 GM 18 pos: 0.0000 0.0000 -1703.5000 rot: 90.0000 0.0000 90.0000 90.0000 0.0000 0.0000 @@ -243,10 +243,10 @@ DE 1315 pos: 137.5756 -217.2091 -3.6000 rot: 90.0000 0.0000 90 DE 1303 pos: 137.5756 217.2091 -3.6000 rot: 90.0000 0.0000 90.0000 90.0000 0.0000 0.0000 DE 1312 pos: -137.5756 -216.2360 3.6000 rot: 90.0000 180.0000 90.0000 90.0000 180.0000 0.0000 DE 1306 pos: -137.5756 216.2360 3.6000 rot: 90.0000 180.0000 90.0000 90.0000 180.0000 0.0000 -DE 1314 pos: 137.5756 -288.3147 3.6000 rot: 90.0000 0.0000 90.0000 90.0000 0.0000 0.0000 -DE 1304 pos: 137.5756 288.3147 3.6000 rot: 90.0000 0.0000 90.0000 90.0000 0.0000 0.0000 -DE 1313 pos: -137.5756 -289.6122 -3.6000 rot: 90.0000 180.0000 90.0000 90.0000 180.0000 0.0000 -DE 1305 pos: -137.5756 289.6122 -3.6000 rot: 90.0000 180.0000 90.0000 90.0000 180.0000 0.0000 +DE 1314 pos: 137.5756 -288.3146 3.6000 rot: 90.0000 0.0000 90.0000 90.0000 0.0000 0.0000 +DE 1304 pos: 137.5756 288.3146 3.6000 rot: 90.0000 0.0000 90.0000 90.0000 0.0000 0.0000 +DE 1313 pos: -137.5756 -289.6121 -3.6000 rot: 90.0000 180.0000 90.0000 90.0000 180.0000 0.0000 +DE 1305 pos: -137.5756 289.6121 -3.6000 rot: 90.0000 180.0000 90.0000 90.0000 180.0000 0.0000 DE 1400 pos: 166.3088 0.0000 3.6000 rot: 90.0000 0.0000 90.0000 90.0000 0.0000 0.0000 DE 1409 pos: -166.3088 0.0000 -3.6000 rot: 90.0000 180.0000 90.0000 90.0000 180.0000 0.0000 -- 2.39.3