Commit ff2564d2 authored by Mehulkumar Shiroya's avatar Mehulkumar Shiroya
Browse files

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.
parent 6c0f6833
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment