#define SQ(A) (A)*(A)
//______________________________________________________________________
-void AliITSv11GeometrySupport::SPDCone(TGeoVolume *moth,TGeoManager *mgr)
+void AliITSv11GeometrySupport::SPDCone(TGeoVolume *moth,const TGeoManager *mgr)
{
//
// Creates the SPD thermal shield as a volume assembly
void AliITSv11GeometrySupport::CreateSPDThermalShape(
Double_t ina, Double_t inb, Double_t inr,
Double_t oua, Double_t oub, Double_t our,
- Double_t t, Double_t *x , Double_t *y )
+ Double_t t, Double_t *x , Double_t *y ) const
{
//
// Creates the proper sequence of X and Y coordinates to determine
//______________________________________________________________________
void AliITSv11GeometrySupport::CreateSPDOmegaShape(
- Double_t *xin, Double_t *yin, Double_t d,
- Double_t *x, Double_t *y)
+ const Double_t *xin, const Double_t *yin, Double_t d,
+ Double_t *x, Double_t *y)
{
//
// Creates the proper sequence of X and Y coordinates to determine
//______________________________________________________________________
void AliITSv11GeometrySupport::FillSPDXtruShape(Double_t a, Double_t b,
Double_t r, Double_t t,
- Double_t *x, Double_t *y)
+ Double_t *x, Double_t *y) const
{
//
// Creates the partial sequence of X and Y coordinates to determine
//______________________________________________________________________
void AliITSv11GeometrySupport::PointFromParallelLines(Double_t x1, Double_t y1,
Double_t x2, Double_t y2, Double_t d,
- Double_t &x, Double_t &y)
+ Double_t &x, Double_t &y) const
{
//
// Determines the X and Y of the first internal point of the Omega shape
Double_t b = (x1 - x2)*(y1 - y2);
Double_t c = (y1 - y2)*(y1 - y2) - d*d;
- // (Delta4 is Delta/4 because we use the reduced formula)
- Double_t Delta4 = b*b - a*c;
+ // (delta4 is Delta/4 because we use the reduced formula)
+ Double_t delta4 = b*b - a*c;
// Compute the slope of the two parallel lines
// (one of the two possible slopes, the one with the smaller
// absolute value is needed)
- if (Delta4 < 0) { // Should never happen with our data, but just to be sure
+ if (delta4 < 0) { // Should never happen with our data, but just to be sure
x = -1; // x is expected positive, so this flags an error
return;
} else
- m = (b + TMath::Sqrt(Delta4))/a; // b is negative with our data
+ m = (b + TMath::Sqrt(delta4))/a; // b is negative with our data
// Finally compute the coordinates of the point
x = x2 + (y1 - y2 - d)/m;
void AliITSv11GeometrySupport::ReflectPoint(Double_t x1, Double_t y1,
Double_t x2, Double_t y2,
Double_t x3, Double_t y3,
- Double_t &x, Double_t &y)
+ Double_t &x, Double_t &y) const
{
//
// Given two points (x1,y1) and (x2,y2), determines the point (x,y)
}
//______________________________________________________________________
-void AliITSv11GeometrySupport::SDDCone(TGeoVolume *moth,TGeoManager *mgr)
+void AliITSv11GeometrySupport::SDDCone(TGeoVolume *moth,const TGeoManager *mgr)
{
//
// Creates the SDD support cone and cylinder geometry as a
}
//______________________________________________________________________
-void AliITSv11GeometrySupport::SSDCone(TGeoVolume *moth,TGeoManager *mgr)
+void AliITSv11GeometrySupport::SSDCone(TGeoVolume *moth,const TGeoManager *mgr)
{
//
// Creates the SSD support cone and cylinder geometry. as a
//______________________________________________________________________
void AliITSv11GeometrySupport::TraySupportsSideA(TGeoVolume *moth,
- TGeoManager *mgr){
+ const TGeoManager *mgr){
//
// Creates the structure supporting the ITS cable trays on Side A
//
//______________________________________________________________________
void AliITSv11GeometrySupport::SPDCableTraysSideA(TGeoVolume *moth,
- TGeoManager *mgr){
+ const TGeoManager *mgr){
//
// Creates the SPD cable trays which are outside the ITS support cones
// but still inside the TPC on Side A
// Created: 15 Feb 2010 Mario Sitta
// Updated: 10 Jun 2010 Mario Sitta Freon inside cooling pipes
// Updated: 08 Sep 2010 Mario Sitta
+// Updated: 14 Sep 2010 Mario Sitta Cables prolonged till cone
//
// Technical data are taken from AutoCAD drawings, L.Simonetti technical
// drawings and other (oral) information given by F.Tosello and D.Elia
const Double_t kForwardTrayInterSpace = 18.00 *fgkmm;//!!!TO BE CHECKED!!!
const Double_t kForwardTrayThick = 2.00 *fgkmm;
- const Int_t kForwardSideNpoints = 6;
+ const Int_t kForwardSideNpoints = 6;
const Double_t kExternalTrayLen = 1200.00 *fgkmm;
const Double_t kExternalTrayWide = kForwardTrayWide;
const Double_t kLowVoltageCableHighPUR = 1.000*fgkmm;// Computed
const Double_t kHiVoltageCableSectCu = 1.535*fgkmm;// Computed
const Double_t kHiVoltageCableHighPUR = 0.500*fgkmm;// Computed
- const Double_t kCoaxCableSectCu = 6.140*fgkmm;//!!!ESTIMATED!!!
- const Double_t kCoaxCableHighPUR = 1.000*fgkmm;//!!!ESTIMATED!!!
+ const Double_t kCoaxCableSectCu = 6.024*fgkmm;// Computed
+ const Double_t kCoaxCableHighMeg = 5.695*fgkmm;// Computed
+
+ const Double_t kTrayCCablesRot = 75.000*fgkDegree;// Computed
+ const Double_t kTrayCCablesZLenOut = 227.000*fgkmm;// Computed
// Local variables
0, SinD(kTrayAZRot),-CosD(kTrayAZRot),
0, 0, 1);
- // The optical fibers inside the forward tray: a BBox
- TGeoBBox *optFibsForw = new TGeoBBox(kOpticalFibersSect/2,
- kOpticalFibersSect/2,
- kForwardTrayTotalLen/2);
+ // The optical fibers inside the forward tray: a Xtru
+ TGeoXtru *optFibsForw = new TGeoXtru(2);
+
+ xprof[0] = -kTrayCCablesZLenOut;
+ yprof[0] = xprof[0]/TanD(kTrayCCablesRot);
+ xprof[1] = 0;
+ yprof[1] = 0;
+ xprof[2] = kForwardTrayTotalLen;
+ yprof[2] = yprof[1];
+ xprof[3] = xprof[2];
+ yprof[3] = yprof[2] + kOpticalFibersSect;
+ xprof[4] = xprof[1];
+ yprof[4] = yprof[3];
+ xprof[5] = xprof[0];
+ yprof[5] = yprof[0] + kOpticalFibersSect;
+
+ optFibsForw->DefinePolygon(6, xprof, yprof);
+ optFibsForw->DefineSection(0,-kOpticalFibersSect/2);
+ optFibsForw->DefineSection(1, kOpticalFibersSect/2);
// The optical fibers inside the external tray: a Xtru
TGeoXtru *optFibsExt = new TGeoXtru(2);
optFibsExt->DefineSection(0, 0);
optFibsExt->DefineSection(1, kOpticalFibersSect);
- // The Low Voltage cables inside the forward tray: two BBox
- TGeoBBox *lowCablesForwCu = new TGeoBBox(kLowVoltageCableSectCu,
- kLowVoltageCableSectCu/4,
- kForwardTrayTotalLen/2);
+ // The Low Voltage cables inside the forward tray: two Xtru
+ TGeoXtru *lowCablesForwCu = new TGeoXtru(2);
+
+ xprof[0] = -kTrayCCablesZLenOut;
+ yprof[0] = xprof[0]/TanD(kTrayCCablesRot);
+ xprof[1] = 0;
+ yprof[1] = 0;
+ xprof[2] = kForwardTrayTotalLen;
+ yprof[2] = yprof[1];
+ xprof[3] = xprof[2];
+ yprof[3] = yprof[2] + kLowVoltageCableSectCu/2;
+ xprof[4] = xprof[1];
+ yprof[4] = yprof[3];
+ xprof[5] = xprof[0];
+ yprof[5] = yprof[0] + kLowVoltageCableSectCu/2;
+
+ lowCablesForwCu->DefinePolygon(6, xprof, yprof);
+ lowCablesForwCu->DefineSection(0,-kLowVoltageCableSectCu);
+ lowCablesForwCu->DefineSection(1, kLowVoltageCableSectCu);
+
+ TGeoXtru *lowCablesForwPUR = new TGeoXtru(2);
+
+ xprof[0] = lowCablesForwCu->GetX(5);
+ yprof[0] = lowCablesForwCu->GetY(5);
+ xprof[1] = lowCablesForwCu->GetX(4);
+ yprof[1] = lowCablesForwCu->GetY(4);
+ xprof[2] = lowCablesForwCu->GetX(3);
+ yprof[2] = lowCablesForwCu->GetY(3);
+ xprof[3] = xprof[2];
+ yprof[3] = yprof[2] + kLowVoltageCableHighPUR/2;
+ xprof[4] = xprof[1];
+ yprof[4] = yprof[3];
+ xprof[5] = xprof[0];
+ yprof[5] = yprof[0] + kLowVoltageCableHighPUR/2;
- TGeoBBox *lowCablesForwPUR = new TGeoBBox(kLowVoltageCableSectCu,
- kLowVoltageCableHighPUR/4,
- kForwardTrayTotalLen/2);
+ lowCablesForwPUR->DefinePolygon(6, xprof, yprof);
+ lowCablesForwPUR->DefineSection(0,-kLowVoltageCableSectCu);
+ lowCablesForwPUR->DefineSection(1, kLowVoltageCableSectCu);
// The Low Voltage inside the external tray: two Xtru
TGeoXtru *lowCablesExtCu = new TGeoXtru(2);
lowCablesExtPUR->DefineSection(0, 0);
lowCablesExtPUR->DefineSection(1, kLowVoltageCableSectCu*2);
- // The High Voltage cables inside the forward tray: two BBox
- TGeoBBox *hiCablesForwCu = new TGeoBBox(kHiVoltageCableSectCu,
- kHiVoltageCableSectCu/4,
- kForwardTrayTotalLen/2);
+ // The High Voltage cables inside the forward tray: two Xtru
+ TGeoXtru *hiCablesForwCu = new TGeoXtru(2);
+
+ xprof[0] = -kTrayCCablesZLenOut;
+ yprof[0] = xprof[0]/TanD(kTrayCCablesRot);
+ xprof[1] = 0;
+ yprof[1] = 0;
+ xprof[2] = kForwardTrayTotalLen;
+ yprof[2] = yprof[1];
+ xprof[3] = xprof[2];
+ yprof[3] = yprof[2] + kHiVoltageCableSectCu/2;
+ xprof[4] = xprof[1];
+ yprof[4] = yprof[3];
+ xprof[5] = xprof[0];
+ yprof[5] = yprof[0] + kHiVoltageCableSectCu/2;
+
+ hiCablesForwCu->DefinePolygon(6, xprof, yprof);
+ hiCablesForwCu->DefineSection(0,-kHiVoltageCableSectCu);
+ hiCablesForwCu->DefineSection(1, kHiVoltageCableSectCu);
+
+ TGeoXtru *hiCablesForwPUR = new TGeoXtru(2);
- TGeoBBox *hiCablesForwPUR = new TGeoBBox(kHiVoltageCableSectCu,
- kHiVoltageCableHighPUR/4,
- kForwardTrayTotalLen/2);
+ xprof[0] = hiCablesForwCu->GetX(5);
+ yprof[0] = hiCablesForwCu->GetY(5);
+ xprof[1] = hiCablesForwCu->GetX(4);
+ yprof[1] = hiCablesForwCu->GetY(4);
+ xprof[2] = hiCablesForwCu->GetX(3);
+ yprof[2] = hiCablesForwCu->GetY(3);
+ xprof[3] = xprof[2];
+ yprof[3] = yprof[2] + kHiVoltageCableHighPUR/2;
+ xprof[4] = xprof[1];
+ yprof[4] = yprof[3];
+ xprof[5] = xprof[0];
+ yprof[5] = yprof[0] + kHiVoltageCableHighPUR/2;
+
+ hiCablesForwPUR->DefinePolygon(6, xprof, yprof);
+ hiCablesForwPUR->DefineSection(0,-kHiVoltageCableSectCu);
+ hiCablesForwPUR->DefineSection(1, kHiVoltageCableSectCu);
// The High Voltage inside the external tray: two Xtru
TGeoXtru *hiCablesExtCu = new TGeoXtru(2);
hiCablesExtPUR->DefineSection(0, 0);
hiCablesExtPUR->DefineSection(1, kHiVoltageCableSectCu*2);
- // The Coaxial cables inside the forward tray: two BBox
- TGeoBBox *coaxCablesForwCu = new TGeoBBox(kCoaxCableSectCu,
- kCoaxCableSectCu/4,
- kForwardTrayTotalLen/2);
+ // The Coaxial cables inside the forward tray: two Xtru
+ TGeoXtru *coaxCablesForwCu = new TGeoXtru(2);
+ coaxCablesForwCu->SetName("ITSsuppSPDForwTrayCoaxCu");
- TGeoBBox *coaxCablesForwPUR = new TGeoBBox(kCoaxCableSectCu,
- kCoaxCableHighPUR/4,
- kForwardTrayTotalLen/2);
+ xprof[0] = -kTrayCCablesZLenOut;
+ yprof[0] = xprof[0]/TanD(kTrayCCablesRot);
+ xprof[1] = 0;
+ yprof[1] = 0;
+ xprof[2] = kForwardTrayTotalLen;
+ yprof[2] = yprof[1];
+ xprof[3] = xprof[2];
+ yprof[3] = yprof[2] + kCoaxCableSectCu/2;
+ xprof[4] = xprof[1];
+ yprof[4] = yprof[3];
+ xprof[5] = xprof[0];
+ yprof[5] = yprof[0] + kCoaxCableSectCu/2;
+
+ coaxCablesForwCu->DefinePolygon(6, xprof, yprof);
+ coaxCablesForwCu->DefineSection(0,-kCoaxCableSectCu);
+ coaxCablesForwCu->DefineSection(1, kCoaxCableSectCu);
+
+ TGeoXtru *coaxCablesForwMeg = new TGeoXtru(2);
+ coaxCablesForwMeg->SetName("ITSsuppSPDForwTrayCoaxMeg");
+
+ xprof[0] = coaxCablesForwCu->GetX(5);
+ yprof[0] = coaxCablesForwCu->GetY(5);
+ xprof[1] = coaxCablesForwCu->GetX(4);
+ yprof[1] = coaxCablesForwCu->GetY(4);
+ xprof[2] = coaxCablesForwCu->GetX(3);
+ yprof[2] = coaxCablesForwCu->GetY(3);
+ xprof[3] = xprof[2];
+ yprof[3] = yprof[2] + kCoaxCableHighMeg/2;
+ xprof[4] = xprof[1];
+ yprof[4] = yprof[3];
+ xprof[5] = xprof[0];
+ yprof[5] = yprof[0] + kCoaxCableHighMeg/2;
+
+ coaxCablesForwMeg->DefinePolygon(6, xprof, yprof);
+ coaxCablesForwMeg->DefineSection(0,-kCoaxCableSectCu);
+ coaxCablesForwMeg->DefineSection(1, kCoaxCableSectCu);
// The Coaxial inside the external tray: two Xtru
TGeoXtru *coaxCablesExtCu = new TGeoXtru(2);
coaxCablesExtCu->DefineSection(0, 0);
coaxCablesExtCu->DefineSection(1, kCoaxCableSectCu*2);
- TGeoXtru *coaxCablesExtPUR = new TGeoXtru(2);
- coaxCablesExtPUR->SetName("ITSsuppSPDExtTrayCoaxPUR");
+ TGeoXtru *coaxCablesExtMeg = new TGeoXtru(2);
+ coaxCablesExtMeg->SetName("ITSsuppSPDExtTrayCoaxMeg");
xprof[0] = coaxCablesExtCu->GetX(3);
yprof[0] = coaxCablesExtCu->GetY(3);
xprof[1] = coaxCablesExtCu->GetX(2);
yprof[1] = coaxCablesExtCu->GetY(2);
xprof[2] = xprof[1];
- yprof[2] = yprof[1] + kCoaxCableHighPUR/2;
+ yprof[2] = yprof[1] + kCoaxCableHighMeg/2;
yprof[3] = yprof[2];
xprof[3] = yprof[2]*TanD(kTrayAZRot);
- coaxCablesExtPUR->DefinePolygon(4, xprof, yprof);
- coaxCablesExtPUR->DefineSection(0, 0);
- coaxCablesExtPUR->DefineSection(1, kCoaxCableSectCu*2);
+ coaxCablesExtMeg->DefinePolygon(4, xprof, yprof);
+ coaxCablesExtMeg->DefineSection(0, 0);
+ coaxCablesExtMeg->DefineSection(1, kCoaxCableSectCu*2);
// We have all shapes: now create the real volumes
TGeoMedium *medFibs = mgr->GetMedium("ITS_SDD OPTICFIB$");//!TO BE CHECKED!
TGeoMedium *medCu = mgr->GetMedium("ITS_COPPER$");
TGeoMedium *medPUR = mgr->GetMedium("ITS_POLYURETHANE$");
+ TGeoMedium *medMeg = mgr->GetMedium("ITS_MEGOLON$");
TGeoVolume *forwTrayABase = new TGeoVolume("ITSsuppSPDSideAForwTrayABase",
forwTrayLowerFace, medAl);
forwCoaxCu->SetFillColor(forwCoaxCu->GetLineColor());
forwCoaxCu->SetFillStyle(4000); // 0% transparent
- TGeoVolume *forwCoaxPUR = new TGeoVolume("ITSsuppSPDSideAForwTrayCoaxPUR",
- coaxCablesForwPUR, medPUR);
+ TGeoVolume *forwCoaxMeg = new TGeoVolume("ITSsuppSPDSideAForwTrayCoaxMeg",
+ coaxCablesForwMeg, medMeg);
- forwCoaxPUR->SetVisibility(kTRUE);
- forwCoaxPUR->SetLineColor(kBlack); // Black
- forwCoaxPUR->SetLineWidth(1);
- forwCoaxPUR->SetFillColor(forwCoaxPUR->GetLineColor());
- forwCoaxPUR->SetFillStyle(4000); // 0% transparent
+ forwCoaxMeg->SetVisibility(kTRUE);
+ forwCoaxMeg->SetLineColor(kBlack); // Black
+ forwCoaxMeg->SetLineWidth(1);
+ forwCoaxMeg->SetFillColor(forwCoaxMeg->GetLineColor());
+ forwCoaxMeg->SetFillStyle(4000); // 0% transparent
TGeoVolume *extCoaxCu = new TGeoVolume("ITSsuppSPDSideAExtTrayCoaxCu",
coaxCablesExtCu, medCu);
extCoaxCu->SetFillColor(extCoaxCu->GetLineColor());
extCoaxCu->SetFillStyle(4000); // 0% transparent
- TGeoVolume *extCoaxPUR = new TGeoVolume("ITSsuppSPDSideAExtTrayCoaxPUR",
- coaxCablesExtPUR, medPUR);
+ TGeoVolume *extCoaxMeg = new TGeoVolume("ITSsuppSPDSideAExtTrayCoaxMeg",
+ coaxCablesExtMeg, medMeg);
- extCoaxPUR->SetVisibility(kTRUE);
- extCoaxPUR->SetLineColor(kBlack); // Black
- extCoaxPUR->SetLineWidth(1);
- extCoaxPUR->SetFillColor(extCoaxPUR->GetLineColor());
- extCoaxPUR->SetFillStyle(4000); // 0% transparent
+ extCoaxMeg->SetVisibility(kTRUE);
+ extCoaxMeg->SetLineColor(kBlack); // Black
+ extCoaxMeg->SetLineWidth(1);
+ extCoaxMeg->SetFillColor(extCoaxMeg->GetLineColor());
+ extCoaxMeg->SetFillStyle(4000); // 0% transparent
// Now build up the trays
cableTrayAForw->AddNode(forwCoolTube, 1,
new TGeoTranslation(0, yloc, zloc));
- xloc = optFibsForw->GetDX() + coolTubeForw->GetRmax();
- yloc = 2*kForwardTrayThick + 2*forwTrayWall->GetDY() + optFibsForw->GetDY();
- zloc = optFibsForw->GetDZ();
+ xloc = optFibsForw->GetZ(1) + coolTubeForw->GetRmax();
+ yloc = 2*kForwardTrayThick + 2*forwTrayWall->GetDY();
cableTrayAForw->AddNode(forwOptFibs, 1,
- new TGeoTranslation(xloc, yloc, zloc));
+ new TGeoCombiTrans( xloc, yloc, 0,
+ new TGeoRotation("",-90.,90.,90.)));
- xloc = lowCablesForwCu->GetDX() + coolTubeForw->GetRmax();
- yloc = 2*kForwardTrayThick + 2*forwTrayWall->GetDY() +
- lowCablesForwCu->GetDY();
- zloc = lowCablesForwCu->GetDZ();
+ xloc = 2*optFibsForw->GetZ(1) + lowCablesForwCu->GetZ(1) +
+ coolTubeForw->GetRmax();
+ yloc = 2*kForwardTrayThick + 2*forwTrayWall->GetDY();
cableTrayAForw->AddNode(forwLowCabsCu, 1,
- new TGeoTranslation(-xloc, yloc, zloc));
- yloc += lowCablesForwCu->GetDY()+ lowCablesForwPUR->GetDY();
+ new TGeoCombiTrans( xloc, yloc, 0,
+ new TGeoRotation("",-90.,90.,90.)));
cableTrayAForw->AddNode(forwLowCabsPUR, 1,
- new TGeoTranslation(-xloc, yloc, zloc));
+ new TGeoCombiTrans( xloc, yloc, 0,
+ new TGeoRotation("",-90.,90.,90.)));
- xloc = hiCablesForwCu->GetDX() + 2*lowCablesForwCu->GetDX()
- + coolTubeForw->GetRmax();
- yloc = 2*kForwardTrayThick + 2*forwTrayWall->GetDY() +
- hiCablesForwCu->GetDY();
- zloc = hiCablesForwCu->GetDZ();
+ xloc = 2*optFibsForw->GetZ(1) + 2*lowCablesForwCu->GetZ(1) +
+ hiCablesForwCu->GetZ(1) + coolTubeForw->GetRmax();
+ yloc = 2*kForwardTrayThick + 2*forwTrayWall->GetDY();
cableTrayAForw->AddNode(forwHiCabsCu, 1,
- new TGeoTranslation(-xloc, yloc, zloc));
- yloc += hiCablesForwCu->GetDY()+ hiCablesForwPUR->GetDY();
+ new TGeoCombiTrans( xloc, yloc, 0,
+ new TGeoRotation("",-90.,90.,90.)));
cableTrayAForw->AddNode(forwHiCabsPUR, 1,
- new TGeoTranslation(-xloc, yloc, zloc));
+ new TGeoCombiTrans( xloc, yloc, 0,
+ new TGeoRotation("",-90.,90.,90.)));
- xloc = coaxCablesForwCu->GetDX() + 2*optFibsForw->GetDX() +
- coolTubeForw->GetRmax();
- yloc = 2*kForwardTrayThick + 2*forwTrayWall->GetDY() +
- coaxCablesForwCu->GetDY();
- zloc = coaxCablesForwCu->GetDZ();
+ xloc = coaxCablesForwCu->GetZ(1) + coolTubeForw->GetRmax();
+ yloc = 2*kForwardTrayThick + 2*forwTrayWall->GetDY();
cableTrayAForw->AddNode(forwCoaxCu, 1,
- new TGeoTranslation( xloc, yloc, zloc));
- yloc += coaxCablesForwCu->GetDY()+ coaxCablesForwPUR->GetDY();
- cableTrayAForw->AddNode(forwCoaxPUR, 1,
- new TGeoTranslation( xloc, yloc, zloc));
+ new TGeoCombiTrans(-xloc, yloc, 0,
+ new TGeoRotation("",-90.,90.,90.)));
+ cableTrayAForw->AddNode(forwCoaxMeg, 1,
+ new TGeoCombiTrans(-xloc, yloc, 0,
+ new TGeoRotation("",-90.,90.,90.)));
// To simplify following placement in MARS, origin is on top
yloc = -kExternalTrayHigh + kExternalTrayThick/2;
cableTrayAExt->AddNode(extCoaxCu, 1,
new TGeoCombiTrans( xloc, 0, 0,
new TGeoRotation("",90,-90,-90)));
- cableTrayAExt->AddNode(extCoaxPUR, 1,
+ cableTrayAExt->AddNode(extCoaxMeg, 1,
new TGeoCombiTrans( xloc, 0, 0,
new TGeoRotation("",90,-90,-90)));
//______________________________________________________________________
void AliITSv11GeometrySupport::SPDCableTraysSideC(TGeoVolume *moth,
- TGeoManager *mgr){
+ const TGeoManager *mgr){
//
// Creates the SPD cable trays which are outside the ITS support cones
// but still inside the TPC on Side C
// Updated: 22 Apr 2010 Mario Sitta
// Updated: 10 Jun 2010 Mario Sitta Freon inside cooling pipes
// Updated: 08 Sep 2010 Mario Sitta
+// Updated: 14 Sep 2010 Mario Sitta Cables prolonged till cone
//
// Technical data are taken from AutoCAD drawings and other (oral)
// information given by D.Elia
// Dimensions and positions of the C-Side Cable Tray elements
const Int_t kNumTraysSideC = 10;
+ const Double_t kTrayCCablesOutRot = 75.000 *fgkDegree;// Computed
+ const Double_t kTrayCCablesZLenOut = 245.000 *fgkmm;// Computed
+
const Double_t kTrayCHalfWide = 6.350 *fgkcm;
const Double_t kTrayCLength1 = 172.800 *fgkcm;
const Double_t kTrayCLength2 = 189.300 *fgkcm;
const Double_t kLowVoltCableHighPUR = 1.000 *fgkmm;// Computed
const Double_t kHiVoltCableSectCu = 1.535 *fgkmm;// Computed
const Double_t kHiVoltCableHighPUR = 0.500 *fgkmm;// Computed
- const Double_t kCoaxCableSectCu = 6.140 *fgkmm;//!!!ESTIMATED!!!
- const Double_t kCoaxCableHighPUR = 1.000 *fgkmm;//!!!ESTIMATED!!!
+ const Double_t kCoaxCableSectCu = 6.024 *fgkmm;// Computed
+ const Double_t kCoaxCableHighMeg = 5.695 *fgkmm;// Computed
// Overall position and rotation of the C-Side Cable Trays
const Double_t kTraySideCRPos = 45.300 *fgkcm;
0, SinD(kTrayCFoldAngle),-CosD(kTrayCFoldAngle),
0, 0, 1);
+ // The part of the cooling tube outside the tray: a Ctub
+ TGeoCtub *outTube = new TGeoCtub(0, kCoolingTubeRmax,
+ 0.5*kTrayCCablesZLenOut/SinD(kTrayCCablesOutRot),
+ 0, 360,
+ 0, 0, -1,
+ 0,-SinD(kTrayCCablesOutRot), CosD(kTrayCCablesOutRot));
+
+ // The freon inside the part of the cooling tube outside the tray: a Ctub
+ TGeoCtub *outFreon = new TGeoCtub(0, kCoolingTubeRmin,
+ outTube->GetDz(),
+ 0, 360,
+ 0, 0, -1,
+ 0,-SinD(kTrayCCablesOutRot), CosD(kTrayCCablesOutRot));
+
// The optical fibers inside the tray: a Xtru
TGeoXtru *optFibs = new TGeoXtru(2);
- xprof[0] = sideCMidFace->GetX(5);
- yprof[0] = sideCMidFace->GetY(5);
- xprof[1] = sideCMidFace->GetX(4);
- yprof[1] = sideCMidFace->GetY(4);
- xprof[2] = sideCMidFace->GetX(3);
- yprof[2] = sideCMidFace->GetY(3);
- xprof[3] = xprof[2] - kOpticalFibersSect*SinD(kTrayCFoldAngle);
- yprof[3] = yprof[2] + kOpticalFibersSect*CosD(kTrayCFoldAngle);
- InsidePoint(xprof[0], yprof[0], xprof[1], yprof[1], xprof[2], yprof[2],
- kOpticalFibersSect , xprof[4], yprof[4]);
- xprof[5] = 0.;
- yprof[5] = yprof[0] + kOpticalFibersSect;
+ xprof[0] = -kTrayCCablesZLenOut;
+ yprof[0] = xprof[0]/TanD(kTrayCCablesOutRot);
+ xprof[1] = sideCMidFace->GetX(5);
+ yprof[1] = sideCMidFace->GetY(5);
+ xprof[2] = sideCMidFace->GetX(4);
+ yprof[2] = sideCMidFace->GetY(4);
+ xprof[3] = sideCMidFace->GetX(3);
+ yprof[3] = sideCMidFace->GetY(3);
+ xprof[4] = xprof[3] - kOpticalFibersSect*SinD(kTrayCFoldAngle);
+ yprof[4] = yprof[3] + kOpticalFibersSect*CosD(kTrayCFoldAngle);
+ InsidePoint(xprof[1], yprof[1], xprof[2], yprof[2], xprof[3], yprof[3],
+ kOpticalFibersSect , xprof[5], yprof[5]);
+ xprof[6] = 0.;
+ yprof[6] = yprof[1] + kOpticalFibersSect;
+ xprof[7] = xprof[0];
+ yprof[7] = yprof[0] + kOpticalFibersSect;
- optFibs->DefinePolygon(6, xprof, yprof);
+ optFibs->DefinePolygon(8, xprof, yprof);
optFibs->DefineSection(0, 0);
optFibs->DefineSection(1, kOpticalFibersSect);
// The low voltage cables inside the tray: two Xtru
TGeoXtru *lowCablesCu = new TGeoXtru(2);
- xprof[0] = sideCMidFace->GetX(5);
- yprof[0] = sideCMidFace->GetY(5);
- xprof[1] = sideCMidFace->GetX(4);
- yprof[1] = sideCMidFace->GetY(4);
- xprof[2] = sideCMidFace->GetX(3);
- yprof[2] = sideCMidFace->GetY(3);
- xprof[3] = xprof[2] - kLowVoltCableSectCu*SinD(kTrayCFoldAngle);
- yprof[3] = yprof[2] + kLowVoltCableSectCu*CosD(kTrayCFoldAngle);
- InsidePoint(xprof[0], yprof[0], xprof[1], yprof[1], xprof[2], yprof[2],
- kLowVoltCableSectCu , xprof[4], yprof[4]);
- xprof[5] = 0.;
- yprof[5] = yprof[0] + kLowVoltCableSectCu;
+ xprof[0] = -kTrayCCablesZLenOut;
+ yprof[0] = xprof[0]/TanD(kTrayCCablesOutRot);
+ xprof[1] = sideCMidFace->GetX(5);
+ yprof[1] = sideCMidFace->GetY(5);
+ xprof[2] = sideCMidFace->GetX(4);
+ yprof[2] = sideCMidFace->GetY(4);
+ xprof[3] = sideCMidFace->GetX(3);
+ yprof[3] = sideCMidFace->GetY(3);
+ xprof[4] = xprof[3] - kLowVoltCableSectCu*SinD(kTrayCFoldAngle);
+ yprof[4] = yprof[3] + kLowVoltCableSectCu*CosD(kTrayCFoldAngle);
+ InsidePoint(xprof[1], yprof[1], xprof[2], yprof[2], xprof[3], yprof[3],
+ kLowVoltCableSectCu , xprof[5], yprof[5]);
+ xprof[6] = 0.;
+ yprof[6] = yprof[1] + kLowVoltCableSectCu;
+ xprof[7] = xprof[0];
+ yprof[7] = yprof[0] + kLowVoltCableSectCu;
- lowCablesCu->DefinePolygon(6, xprof, yprof);
+ lowCablesCu->DefinePolygon(8, xprof, yprof);
lowCablesCu->DefineSection(0, 0);
lowCablesCu->DefineSection(1, kLowVoltCableSectCu);
TGeoXtru *lowCablesPUR = new TGeoXtru(2);
- xprof[0] = lowCablesCu->GetX(5);
- yprof[0] = lowCablesCu->GetY(5);
- xprof[1] = lowCablesCu->GetX(4);
- yprof[1] = lowCablesCu->GetY(4);
- xprof[2] = lowCablesCu->GetX(3);
- yprof[2] = lowCablesCu->GetY(3);
- xprof[3] = xprof[2] - kLowVoltCableHighPUR*SinD(kTrayCFoldAngle);
- yprof[3] = yprof[2] + kLowVoltCableHighPUR*CosD(kTrayCFoldAngle);
- InsidePoint(xprof[0], yprof[0], xprof[1], yprof[1], xprof[2], yprof[2],
- kLowVoltCableHighPUR , xprof[4], yprof[4]);
- xprof[5] = 0.;
- yprof[5] = yprof[0] + kLowVoltCableHighPUR;
+ xprof[0] = lowCablesCu->GetX(7);
+ yprof[0] = lowCablesCu->GetY(7);
+ xprof[1] = lowCablesCu->GetX(6);
+ yprof[1] = lowCablesCu->GetY(6);
+ xprof[2] = lowCablesCu->GetX(5);
+ yprof[2] = lowCablesCu->GetY(5);
+ xprof[3] = lowCablesCu->GetX(4);
+ yprof[3] = lowCablesCu->GetY(4);
+ xprof[4] = xprof[3] - kLowVoltCableHighPUR*SinD(kTrayCFoldAngle);
+ yprof[4] = yprof[3] + kLowVoltCableHighPUR*CosD(kTrayCFoldAngle);
+ InsidePoint(xprof[1], yprof[1], xprof[2], yprof[2], xprof[3], yprof[3],
+ kLowVoltCableHighPUR , xprof[5], yprof[5]);
+ xprof[6] = 0.;
+ yprof[6] = yprof[1] + kLowVoltCableHighPUR;
+ xprof[7] = xprof[0];
+ yprof[7] = yprof[0] + kLowVoltCableHighPUR;
- lowCablesPUR->DefinePolygon(6, xprof, yprof);
+ lowCablesPUR->DefinePolygon(8, xprof, yprof);
lowCablesPUR->DefineSection(0, 0);
lowCablesPUR->DefineSection(1, kLowVoltCableSectCu);
// The high voltage cables inside the tray: two Xtru
TGeoXtru *hiCablesCu = new TGeoXtru(2);
- xprof[0] = sideCMidFace->GetX(5);
- yprof[0] = sideCMidFace->GetY(5);
- xprof[1] = sideCMidFace->GetX(4);
- yprof[1] = sideCMidFace->GetY(4);
- xprof[2] = sideCMidFace->GetX(3);
- yprof[2] = sideCMidFace->GetY(3);
- xprof[3] = xprof[2] - kHiVoltCableSectCu*SinD(kTrayCFoldAngle);
- yprof[3] = yprof[2] + kHiVoltCableSectCu*CosD(kTrayCFoldAngle);
- InsidePoint(xprof[0], yprof[0], xprof[1], yprof[1], xprof[2], yprof[2],
- kHiVoltCableSectCu , xprof[4], yprof[4]);
- xprof[5] = 0.;
- yprof[5] = yprof[0] + kHiVoltCableSectCu;
+ xprof[0] = -kTrayCCablesZLenOut;
+ yprof[0] = xprof[0]/TanD(kTrayCCablesOutRot);
+ xprof[1] = sideCMidFace->GetX(5);
+ yprof[1] = sideCMidFace->GetY(5);
+ xprof[2] = sideCMidFace->GetX(4);
+ yprof[2] = sideCMidFace->GetY(4);
+ xprof[3] = sideCMidFace->GetX(3);
+ yprof[3] = sideCMidFace->GetY(3);
+ xprof[4] = xprof[3] - kHiVoltCableSectCu*SinD(kTrayCFoldAngle);
+ yprof[4] = yprof[3] + kHiVoltCableSectCu*CosD(kTrayCFoldAngle);
+ InsidePoint(xprof[1], yprof[1], xprof[2], yprof[2], xprof[3], yprof[3],
+ kHiVoltCableSectCu , xprof[5], yprof[5]);
+ xprof[6] = 0.;
+ yprof[6] = yprof[1] + kHiVoltCableSectCu;
+ xprof[7] = xprof[0];
+ yprof[7] = yprof[0] + kHiVoltCableSectCu;
- hiCablesCu->DefinePolygon(6, xprof, yprof);
+ hiCablesCu->DefinePolygon(8, xprof, yprof);
hiCablesCu->DefineSection(0, 0);
hiCablesCu->DefineSection(1, kHiVoltCableSectCu);
TGeoXtru *hiCablesPUR = new TGeoXtru(2);
- xprof[0] = hiCablesCu->GetX(5);
- yprof[0] = hiCablesCu->GetY(5);
- xprof[1] = hiCablesCu->GetX(4);
- yprof[1] = hiCablesCu->GetY(4);
- xprof[2] = hiCablesCu->GetX(3);
- yprof[2] = hiCablesCu->GetY(3);
- xprof[3] = xprof[2] - kHiVoltCableHighPUR*SinD(kTrayCFoldAngle);
- yprof[3] = yprof[2] + kHiVoltCableHighPUR*CosD(kTrayCFoldAngle);
- InsidePoint(xprof[0], yprof[0], xprof[1], yprof[1], xprof[2], yprof[2],
- kHiVoltCableHighPUR , xprof[4], yprof[4]);
- xprof[5] = 0.;
- yprof[5] = yprof[0] + kHiVoltCableHighPUR;
+ xprof[0] = hiCablesCu->GetX(7);
+ yprof[0] = hiCablesCu->GetY(7);
+ xprof[1] = hiCablesCu->GetX(6);
+ yprof[1] = hiCablesCu->GetY(6);
+ xprof[2] = hiCablesCu->GetX(5);
+ yprof[2] = hiCablesCu->GetY(5);
+ xprof[3] = hiCablesCu->GetX(4);
+ yprof[3] = hiCablesCu->GetY(4);
+ xprof[4] = xprof[3] - kHiVoltCableHighPUR*SinD(kTrayCFoldAngle);
+ yprof[4] = yprof[3] + kHiVoltCableHighPUR*CosD(kTrayCFoldAngle);
+ InsidePoint(xprof[1], yprof[1], xprof[2], yprof[2], xprof[3], yprof[3],
+ kHiVoltCableHighPUR , xprof[5], yprof[5]);
+ xprof[6] = 0.;
+ yprof[6] = yprof[1] + kHiVoltCableHighPUR;
+ xprof[7] = xprof[0];
+ yprof[7] = yprof[0] + kHiVoltCableHighPUR;
- hiCablesPUR->DefinePolygon(6, xprof, yprof);
+ hiCablesPUR->DefinePolygon(8, xprof, yprof);
hiCablesPUR->DefineSection(0, 0);
hiCablesPUR->DefineSection(1, kHiVoltCableSectCu);
// The coaxial cables inside the tray: two Xtru
TGeoXtru *coaxCablesCu = new TGeoXtru(2);
- xprof[0] = sideCMidFace->GetX(5);
- yprof[0] = sideCMidFace->GetY(5);
- xprof[1] = sideCMidFace->GetX(4);
- yprof[1] = sideCMidFace->GetY(4);
- xprof[2] = sideCMidFace->GetX(3);
- yprof[2] = sideCMidFace->GetY(3);
- xprof[3] = xprof[2] - kCoaxCableSectCu*SinD(kTrayCFoldAngle);
- yprof[3] = yprof[2] + kCoaxCableSectCu*CosD(kTrayCFoldAngle);
- InsidePoint(xprof[0], yprof[0], xprof[1], yprof[1], xprof[2], yprof[2],
- kCoaxCableSectCu , xprof[4], yprof[4]);
- xprof[5] = 0.;
- yprof[5] = yprof[0] + kCoaxCableSectCu;
+ xprof[0] = -kTrayCCablesZLenOut;
+ yprof[0] = xprof[0]/TanD(kTrayCCablesOutRot);
+ xprof[1] = sideCMidFace->GetX(5);
+ yprof[1] = sideCMidFace->GetY(5);
+ xprof[2] = sideCMidFace->GetX(4);
+ yprof[2] = sideCMidFace->GetY(4);
+ xprof[3] = sideCMidFace->GetX(3);
+ yprof[3] = sideCMidFace->GetY(3);
+ xprof[4] = xprof[3] - kCoaxCableSectCu*SinD(kTrayCFoldAngle);
+ yprof[4] = yprof[3] + kCoaxCableSectCu*CosD(kTrayCFoldAngle);
+ InsidePoint(xprof[1], yprof[1], xprof[2], yprof[2], xprof[3], yprof[3],
+ kCoaxCableSectCu , xprof[5], yprof[5]);
+ xprof[6] = 0.;
+ yprof[6] = yprof[1] + kCoaxCableSectCu;
+ xprof[7] = xprof[0];
+ yprof[7] = yprof[0] + kCoaxCableSectCu;
- coaxCablesCu->DefinePolygon(6, xprof, yprof);
+ coaxCablesCu->DefinePolygon(8, xprof, yprof);
coaxCablesCu->DefineSection(0, 0);
coaxCablesCu->DefineSection(1, kCoaxCableSectCu);
- TGeoXtru *coaxCablesPUR = new TGeoXtru(2);
-
- xprof[0] = coaxCablesCu->GetX(5);
- yprof[0] = coaxCablesCu->GetY(5);
- xprof[1] = coaxCablesCu->GetX(4);
- yprof[1] = coaxCablesCu->GetY(4);
- xprof[2] = coaxCablesCu->GetX(3);
- yprof[2] = coaxCablesCu->GetY(3);
- xprof[3] = xprof[2] - kCoaxCableHighPUR*SinD(kTrayCFoldAngle);
- yprof[3] = yprof[2] + kCoaxCableHighPUR*CosD(kTrayCFoldAngle);
- InsidePoint(xprof[0], yprof[0], xprof[1], yprof[1], xprof[2], yprof[2],
- kCoaxCableHighPUR , xprof[4], yprof[4]);
- xprof[5] = 0.;
- yprof[5] = yprof[0] + kCoaxCableHighPUR;
+ TGeoXtru *coaxCablesMeg = new TGeoXtru(2);
+
+ xprof[0] = coaxCablesCu->GetX(7);
+ yprof[0] = coaxCablesCu->GetY(7);
+ xprof[1] = coaxCablesCu->GetX(6);
+ yprof[1] = coaxCablesCu->GetY(6);
+ xprof[2] = coaxCablesCu->GetX(5);
+ yprof[2] = coaxCablesCu->GetY(5);
+ xprof[3] = coaxCablesCu->GetX(4);
+ yprof[3] = coaxCablesCu->GetY(4);
+ xprof[4] = xprof[3] - kCoaxCableHighMeg*SinD(kTrayCFoldAngle);
+ yprof[4] = yprof[3] + kCoaxCableHighMeg*CosD(kTrayCFoldAngle);
+ InsidePoint(xprof[1], yprof[1], xprof[2], yprof[2], xprof[3], yprof[3],
+ kCoaxCableHighMeg , xprof[5], yprof[5]);
+ xprof[6] = 0.;
+ yprof[6] = yprof[1] + kCoaxCableHighMeg;
+ xprof[7] = xprof[0];
+ yprof[7] = yprof[0] + kCoaxCableHighMeg;
- coaxCablesPUR->DefinePolygon(6, xprof, yprof);
- coaxCablesPUR->DefineSection(0, 0);
- coaxCablesPUR->DefineSection(1, kCoaxCableSectCu);
+ coaxCablesMeg->DefinePolygon(8, xprof, yprof);
+ coaxCablesMeg->DefineSection(0, 0);
+ coaxCablesMeg->DefineSection(1, kCoaxCableSectCu);
// We have all shapes: now create the real volumes
TGeoMedium *medFibs = mgr->GetMedium("ITS_SDD OPTICFIB$");//!!TO BE CHECKED!!
TGeoMedium *medCu = mgr->GetMedium("ITS_COPPER$");
TGeoMedium *medPUR = mgr->GetMedium("ITS_POLYURETHANE$");
+ TGeoMedium *medMeg = mgr->GetMedium("ITS_MEGOLON$");
TGeoVolume *traySideCHorFace = new TGeoVolume("ITSsuppSPDTraySideCHor",
sideCHorFace, medAl);
traySideCIncFreon->SetFillColor(traySideCIncFreon->GetLineColor());
traySideCIncFreon->SetFillStyle(4000); // 0% transparent
+ TGeoVolume *traySideCOutTube = new TGeoVolume("ITSsuppSPDTraySideCOutTube",
+ outTube, medIn);
+
+ traySideCOutTube->SetVisibility(kTRUE);
+ traySideCOutTube->SetLineColor(kGray); // as in GeometrySPD
+ traySideCOutTube->SetLineWidth(1);
+ traySideCOutTube->SetFillColor(traySideCOutTube->GetLineColor());
+ traySideCOutTube->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *traySideCOutFreon = new TGeoVolume("ITSsuppSPDTraySideCOutFreon",
+ outFreon, medFr);
+
+ traySideCOutFreon->SetVisibility(kTRUE);
+ traySideCOutFreon->SetLineColor(kBlue); // Blue
+ traySideCOutFreon->SetLineWidth(1);
+ traySideCOutFreon->SetFillColor(traySideCOutFreon->GetLineColor());
+ traySideCOutFreon->SetFillStyle(4000); // 0% transparent
+
TGeoVolume *traySideCOptFibs = new TGeoVolume("ITSsuppSPDTraySideCOptFibs",
optFibs, medFibs);
traySideCCoaxCu->SetFillColor(traySideCCoaxCu->GetLineColor());
traySideCCoaxCu->SetFillStyle(4000); // 0% transparent
- TGeoVolume *traySideCCoaxPUR = new TGeoVolume("ITSsuppSPDTraySideCCoaxPUR",
- coaxCablesPUR, medPUR);
+ TGeoVolume *traySideCCoaxMeg = new TGeoVolume("ITSsuppSPDTraySideCCoaxMeg",
+ coaxCablesMeg, medMeg);
- traySideCCoaxPUR->SetVisibility(kTRUE);
- traySideCCoaxPUR->SetLineColor(kBlack); // Black
- traySideCCoaxPUR->SetLineWidth(1);
- traySideCCoaxPUR->SetFillColor(traySideCCoaxPUR->GetLineColor());
- traySideCCoaxPUR->SetFillStyle(4000); // 0% transparent
+ traySideCCoaxMeg->SetVisibility(kTRUE);
+ traySideCCoaxMeg->SetLineColor(kBlack); // Black
+ traySideCCoaxMeg->SetLineWidth(1);
+ traySideCCoaxMeg->SetFillColor(traySideCCoaxMeg->GetLineColor());
+ traySideCCoaxMeg->SetFillStyle(4000); // 0% transparent
// Now build up the trays
traySideCHorTube->AddNode(traySideCHorFreon, 1, 0);
traySideCIncTube->AddNode(traySideCIncFreon, 1, 0);
+ traySideCOutTube->AddNode(traySideCOutFreon, 1, 0);
xloc = horTube->GetDz();
yloc = sideCMidFace->GetY(5) + horTube->GetRmax();
new TGeoCombiTrans( xloc, yloc, 0,
new TGeoRotation("",-90.+kTrayCFoldAngle,-90.,90.)));
+ xloc = -kTrayCCablesZLenOut/2 - outTube->GetRmax();
+ yloc = xloc/TanD(kTrayCCablesOutRot) + sideCMidFace->GetY(4) -
+ 2*outTube->GetRmax();
+ cableTrayC->AddNode(traySideCOutTube, 1,
+ new TGeoCombiTrans( xloc, yloc, 0,
+ new TGeoRotation("",-70.,-90.,90.)));
+
zloc = horTube->GetRmax();
cableTrayC->AddNode(traySideCOptFibs, 1,
new TGeoTranslation( 0, 0, zloc));
zloc = kOpticalFibersSect + kCoaxCableSectCu + horTube->GetRmax();
cableTrayC->AddNode(traySideCCoaxCu, 1,
new TGeoTranslation( 0, 0, zloc));
- cableTrayC->AddNode(traySideCCoaxPUR, 1,
+ cableTrayC->AddNode(traySideCCoaxMeg, 1,
new TGeoTranslation( 0, 0, zloc));
externTrayCover->SetFillColor(externTrayCover->GetLineColor());
externTrayCover->SetFillStyle(4000); // 0% transparent
- TGeoVolume *POMCoolManif = new TGeoVolume("ITSsuppSDDSideACoolManifPOM",
+ TGeoVolume *pomCoolManif = new TGeoVolume("ITSsuppSDDSideACoolManifPOM",
coolManifPOM, medPOM);
- POMCoolManif->SetVisibility(kTRUE);
- POMCoolManif->SetLineColor(kRed); // Red
- POMCoolManif->SetLineWidth(1);
- POMCoolManif->SetFillColor(POMCoolManif->GetLineColor());
- POMCoolManif->SetFillStyle(4000); // 0% transparent
+ pomCoolManif->SetVisibility(kTRUE);
+ pomCoolManif->SetLineColor(kRed); // Red
+ pomCoolManif->SetLineWidth(1);
+ pomCoolManif->SetFillColor(pomCoolManif->GetLineColor());
+ pomCoolManif->SetFillStyle(4000); // 0% transparent
- TGeoVolume *SteelCoolManif = new TGeoVolume("ITSsuppSDDSideACoolManifSteel",
+ TGeoVolume *steelCoolManif = new TGeoVolume("ITSsuppSDDSideACoolManifSteel",
coolManifSteel, medSteel);
- SteelCoolManif->SetVisibility(kTRUE);
- SteelCoolManif->SetLineColor(kBlue); // Blue
- SteelCoolManif->SetLineWidth(1);
- SteelCoolManif->SetFillColor(SteelCoolManif->GetLineColor());
- SteelCoolManif->SetFillStyle(4000); // 0% transparent
+ steelCoolManif->SetVisibility(kTRUE);
+ steelCoolManif->SetLineColor(kBlue); // Blue
+ steelCoolManif->SetLineWidth(1);
+ steelCoolManif->SetFillColor(steelCoolManif->GetLineColor());
+ steelCoolManif->SetFillStyle(4000); // 0% transparent
- TGeoVolume *WaterCoolManif = new TGeoVolume("ITSsuppSDDSideACoolManifWater",
+ TGeoVolume *waterCoolManif = new TGeoVolume("ITSsuppSDDSideACoolManifWater",
coolManifWater, medWater);
- WaterCoolManif->SetVisibility(kTRUE);
- WaterCoolManif->SetLineColor(33); // Light Blue
- WaterCoolManif->SetLineWidth(1);
- WaterCoolManif->SetFillColor(WaterCoolManif->GetLineColor());
- WaterCoolManif->SetFillStyle(4000); // 0% transparent
+ waterCoolManif->SetVisibility(kTRUE);
+ waterCoolManif->SetLineColor(33); // Light Blue
+ waterCoolManif->SetLineWidth(1);
+ waterCoolManif->SetFillColor(waterCoolManif->GetLineColor());
+ waterCoolManif->SetFillStyle(4000); // 0% transparent
- TGeoVolume *AlCoolManif = new TGeoVolume("ITSsuppSDDSideACoolManifAl",
+ TGeoVolume *alCoolManif = new TGeoVolume("ITSsuppSDDSideACoolManifAl",
coolManifAl, medAl);
- AlCoolManif->SetVisibility(kTRUE);
- AlCoolManif->SetLineColor(6); // Purple
- AlCoolManif->SetLineWidth(1);
- AlCoolManif->SetFillColor(AlCoolManif->GetLineColor());
- AlCoolManif->SetFillStyle(4000); // 0% transparent
+ alCoolManif->SetVisibility(kTRUE);
+ alCoolManif->SetLineColor(6); // Purple
+ alCoolManif->SetLineWidth(1);
+ alCoolManif->SetFillColor(alCoolManif->GetLineColor());
+ alCoolManif->SetFillStyle(4000); // 0% transparent
- TGeoVolume *PURCoolTubes = new TGeoVolume("ITSsuppSDDSideACoolTubesPUR",
+ TGeoVolume *purCoolTubes = new TGeoVolume("ITSsuppSDDSideACoolTubesPUR",
coolTubesPUR, medPUR);
- PURCoolTubes->SetVisibility(kTRUE);
- PURCoolTubes->SetLineColor(kRed); // Red
- PURCoolTubes->SetLineWidth(1);
- PURCoolTubes->SetFillColor(PURCoolTubes->GetLineColor());
- PURCoolTubes->SetFillStyle(4000); // 0% transparent
+ purCoolTubes->SetVisibility(kTRUE);
+ purCoolTubes->SetLineColor(kRed); // Red
+ purCoolTubes->SetLineWidth(1);
+ purCoolTubes->SetFillColor(purCoolTubes->GetLineColor());
+ purCoolTubes->SetFillStyle(4000); // 0% transparent
- TGeoVolume *WaterCoolTubes = new TGeoVolume("ITSsuppSDDSideACoolTubesWater",
+ TGeoVolume *waterCoolTubes = new TGeoVolume("ITSsuppSDDSideACoolTubesWater",
coolTubesWater, medWater);
- WaterCoolTubes->SetVisibility(kTRUE);
- WaterCoolTubes->SetLineColor(33); // Light Blue
- WaterCoolTubes->SetLineWidth(1);
- WaterCoolTubes->SetFillColor(WaterCoolTubes->GetLineColor());
- WaterCoolTubes->SetFillStyle(4000); // 0% transparent
+ waterCoolTubes->SetVisibility(kTRUE);
+ waterCoolTubes->SetLineColor(33); // Light Blue
+ waterCoolTubes->SetLineWidth(1);
+ waterCoolTubes->SetFillColor(waterCoolTubes->GetLineColor());
+ waterCoolTubes->SetFillStyle(4000); // 0% transparent
- TGeoVolume *AirCoolTubes = new TGeoVolume("ITSsuppSDDSideACoolTubesAir",
+ TGeoVolume *airCoolTubes = new TGeoVolume("ITSsuppSDDSideACoolTubesAir",
coolTubesAir, medAir);
- AirCoolTubes->SetVisibility(kTRUE);
- AirCoolTubes->SetLineColor(41);
- AirCoolTubes->SetLineWidth(1);
- AirCoolTubes->SetFillColor(AirCoolTubes->GetLineColor());
- AirCoolTubes->SetFillStyle(4000); // 0% transparent
+ airCoolTubes->SetVisibility(kTRUE);
+ airCoolTubes->SetLineColor(41);
+ airCoolTubes->SetLineWidth(1);
+ airCoolTubes->SetFillColor(airCoolTubes->GetLineColor());
+ airCoolTubes->SetFillStyle(4000); // 0% transparent
- TGeoVolume *PBTOptConn = new TGeoVolume("ITSsuppSDDSideAOptConnPBT",
+ TGeoVolume *pbtOptConn = new TGeoVolume("ITSsuppSDDSideAOptConnPBT",
optConnPBT, medPBT);
- PBTOptConn->SetVisibility(kTRUE);
- PBTOptConn->SetLineColor(kRed); // Red
- PBTOptConn->SetLineWidth(1);
- PBTOptConn->SetFillColor(PBTOptConn->GetLineColor());
- PBTOptConn->SetFillStyle(4000); // 0% transparent
+ pbtOptConn->SetVisibility(kTRUE);
+ pbtOptConn->SetLineColor(kRed); // Red
+ pbtOptConn->SetLineWidth(1);
+ pbtOptConn->SetFillColor(pbtOptConn->GetLineColor());
+ pbtOptConn->SetFillStyle(4000); // 0% transparent
- TGeoVolume *SteelOptConn = new TGeoVolume("ITSsuppSDDSideAOptConnSteel",
+ TGeoVolume *steelOptConn = new TGeoVolume("ITSsuppSDDSideAOptConnSteel",
optConnSteel, medSteel);
- SteelOptConn->SetVisibility(kTRUE);
- SteelOptConn->SetLineColor(kBlue); // Blue
- SteelOptConn->SetLineWidth(1);
- SteelOptConn->SetFillColor(SteelOptConn->GetLineColor());
- SteelOptConn->SetFillStyle(4000); // 0% transparent
+ steelOptConn->SetVisibility(kTRUE);
+ steelOptConn->SetLineColor(kBlue); // Blue
+ steelOptConn->SetLineWidth(1);
+ steelOptConn->SetFillColor(steelOptConn->GetLineColor());
+ steelOptConn->SetFillStyle(4000); // 0% transparent
- TGeoVolume *AlOptConn = new TGeoVolume("ITSsuppSDDSideAOptConnAl",
+ TGeoVolume *alOptConn = new TGeoVolume("ITSsuppSDDSideAOptConnAl",
optConnAl, medAl);
- AlOptConn->SetVisibility(kTRUE);
- AlOptConn->SetLineColor(6); // Purple
- AlOptConn->SetLineWidth(1);
- AlOptConn->SetFillColor(AlOptConn->GetLineColor());
- AlOptConn->SetFillStyle(4000); // 0% transparent
+ alOptConn->SetVisibility(kTRUE);
+ alOptConn->SetLineColor(6); // Purple
+ alOptConn->SetLineWidth(1);
+ alOptConn->SetFillColor(alOptConn->GetLineColor());
+ alOptConn->SetFillStyle(4000); // 0% transparent
- TGeoVolume *OptFibs = new TGeoVolume("ITSsuppSDDSideAOptFibs",
+ TGeoVolume *optFibs = new TGeoVolume("ITSsuppSDDSideAOptFibs",
opticalFibs, medOptFib);
- OptFibs->SetVisibility(kTRUE);
- OptFibs->SetLineColor(kOrange+2); // Orange
- OptFibs->SetLineWidth(1);
- OptFibs->SetFillColor(OptFibs->GetLineColor());
- OptFibs->SetFillStyle(4000); // 0% transparent
+ optFibs->SetVisibility(kTRUE);
+ optFibs->SetLineColor(kOrange+2); // Orange
+ optFibs->SetLineWidth(1);
+ optFibs->SetFillColor(optFibs->GetLineColor());
+ optFibs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *CuInputCabs = new TGeoVolume("ITSsuppSDDSideAInputCabsCu",
+ TGeoVolume *cuInputCabs = new TGeoVolume("ITSsuppSDDSideAInputCabsCu",
inputCabsCu, medCu);
- CuInputCabs->SetVisibility(kTRUE);
- CuInputCabs->SetLineColor(kBlack); // Black
- CuInputCabs->SetLineWidth(1);
- CuInputCabs->SetFillColor(CuInputCabs->GetLineColor());
- CuInputCabs->SetFillStyle(4000); // 0% transparent
+ cuInputCabs->SetVisibility(kTRUE);
+ cuInputCabs->SetLineColor(kBlack); // Black
+ cuInputCabs->SetLineWidth(1);
+ cuInputCabs->SetFillColor(cuInputCabs->GetLineColor());
+ cuInputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *PlastInputCabs = new TGeoVolume("ITSsuppSDDSideAInputCabsPlast",
+ TGeoVolume *plastInputCabs = new TGeoVolume("ITSsuppSDDSideAInputCabsPlast",
inputCabsPlast, medPUR);
- PlastInputCabs->SetVisibility(kTRUE);
- PlastInputCabs->SetLineColor(kRed); // Red
- PlastInputCabs->SetLineWidth(1);
- PlastInputCabs->SetFillColor(PlastInputCabs->GetLineColor());
- PlastInputCabs->SetFillStyle(4000); // 0% transparent
+ plastInputCabs->SetVisibility(kTRUE);
+ plastInputCabs->SetLineColor(kRed); // Red
+ plastInputCabs->SetLineWidth(1);
+ plastInputCabs->SetFillColor(plastInputCabs->GetLineColor());
+ plastInputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *AlInputCabs = new TGeoVolume("ITSsuppSDDSideAInputCabsAl",
+ TGeoVolume *alInputCabs = new TGeoVolume("ITSsuppSDDSideAInputCabsAl",
inputCabsAl, medAl);
- AlInputCabs->SetVisibility(kTRUE);
- AlInputCabs->SetLineColor(6); // Purple
- AlInputCabs->SetLineWidth(1);
- AlInputCabs->SetFillColor(AlInputCabs->GetLineColor());
- AlInputCabs->SetFillStyle(4000); // 0% transparent
+ alInputCabs->SetVisibility(kTRUE);
+ alInputCabs->SetLineColor(6); // Purple
+ alInputCabs->SetLineWidth(1);
+ alInputCabs->SetFillColor(alInputCabs->GetLineColor());
+ alInputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *KaptonInputCabs = new TGeoVolume("ITSsuppSDDSideAInputCabsKapton",
+ TGeoVolume *kaptonInputCabs = new TGeoVolume("ITSsuppSDDSideAInputCabsKapton",
inputCabsKapton, medKapton);
- KaptonInputCabs->SetVisibility(kTRUE);
- KaptonInputCabs->SetLineColor(14); //
- KaptonInputCabs->SetLineWidth(1);
- KaptonInputCabs->SetFillColor(KaptonInputCabs->GetLineColor());
- KaptonInputCabs->SetFillStyle(4000); // 0% transparent
+ kaptonInputCabs->SetVisibility(kTRUE);
+ kaptonInputCabs->SetLineColor(14); //
+ kaptonInputCabs->SetLineWidth(1);
+ kaptonInputCabs->SetFillColor(kaptonInputCabs->GetLineColor());
+ kaptonInputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *POLYAXInputCabs = new TGeoVolume("ITSsuppSDDSideAInputCabsPOLYAX",
+ TGeoVolume *polyaxInputCabs = new TGeoVolume("ITSsuppSDDSideAInputCabsPOLYAX",
inputCabsPOLYAX, medPOLYAX);
- POLYAXInputCabs->SetVisibility(kTRUE);
- POLYAXInputCabs->SetLineColor(34); //
- POLYAXInputCabs->SetLineWidth(1);
- POLYAXInputCabs->SetFillColor(POLYAXInputCabs->GetLineColor());
- POLYAXInputCabs->SetFillStyle(4000); // 0% transparent
+ polyaxInputCabs->SetVisibility(kTRUE);
+ polyaxInputCabs->SetLineColor(34); //
+ polyaxInputCabs->SetLineWidth(1);
+ polyaxInputCabs->SetFillColor(polyaxInputCabs->GetLineColor());
+ polyaxInputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *CuOutputCabs = new TGeoVolume("ITSsuppSDDSideAOutputCabsCu",
+ TGeoVolume *cuOutputCabs = new TGeoVolume("ITSsuppSDDSideAOutputCabsCu",
outputCabsCu, medCu);
- CuOutputCabs->SetVisibility(kTRUE);
- CuOutputCabs->SetLineColor(kBlack); // Black
- CuOutputCabs->SetLineWidth(1);
- CuOutputCabs->SetFillColor(CuOutputCabs->GetLineColor());
- CuOutputCabs->SetFillStyle(4000); // 0% transparent
+ cuOutputCabs->SetVisibility(kTRUE);
+ cuOutputCabs->SetLineColor(kBlack); // Black
+ cuOutputCabs->SetLineWidth(1);
+ cuOutputCabs->SetFillColor(cuOutputCabs->GetLineColor());
+ cuOutputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *PlastOutputCabs = new TGeoVolume("ITSsuppSDDSideAOutputCabsPlast",
+ TGeoVolume *plastOutputCabs = new TGeoVolume("ITSsuppSDDSideAOutputCabsPlast",
outputCabsPlast, medPUR);
- PlastOutputCabs->SetVisibility(kTRUE);
- PlastOutputCabs->SetLineColor(kRed); // Red
- PlastOutputCabs->SetLineWidth(1);
- PlastOutputCabs->SetFillColor(PlastOutputCabs->GetLineColor());
- PlastOutputCabs->SetFillStyle(4000); // 0% transparent
+ plastOutputCabs->SetVisibility(kTRUE);
+ plastOutputCabs->SetLineColor(kRed); // Red
+ plastOutputCabs->SetLineWidth(1);
+ plastOutputCabs->SetFillColor(plastOutputCabs->GetLineColor());
+ plastOutputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *AlOutputCabs = new TGeoVolume("ITSsuppSDDSideAOutputCabsAl",
+ TGeoVolume *alOutputCabs = new TGeoVolume("ITSsuppSDDSideAOutputCabsAl",
outputCabsAl, medAl);
- AlOutputCabs->SetVisibility(kTRUE);
- AlOutputCabs->SetLineColor(6); // Purple
- AlOutputCabs->SetLineWidth(1);
- AlOutputCabs->SetFillColor(AlOutputCabs->GetLineColor());
- AlOutputCabs->SetFillStyle(4000); // 0% transparent
+ alOutputCabs->SetVisibility(kTRUE);
+ alOutputCabs->SetLineColor(6); // Purple
+ alOutputCabs->SetLineWidth(1);
+ alOutputCabs->SetFillColor(alOutputCabs->GetLineColor());
+ alOutputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *KaptonOutputCabs = new TGeoVolume("ITSsuppSDDSideAOutputCabsKapton",
+ TGeoVolume *kaptonOutputCabs = new TGeoVolume("ITSsuppSDDSideAOutputCabsKapton",
outputCabsKapton, medKapton);
- KaptonOutputCabs->SetVisibility(kTRUE);
- KaptonOutputCabs->SetLineColor(14); //
- KaptonOutputCabs->SetLineWidth(1);
- KaptonOutputCabs->SetFillColor(KaptonOutputCabs->GetLineColor());
- KaptonOutputCabs->SetFillStyle(4000); // 0% transparent
+ kaptonOutputCabs->SetVisibility(kTRUE);
+ kaptonOutputCabs->SetLineColor(14); //
+ kaptonOutputCabs->SetLineWidth(1);
+ kaptonOutputCabs->SetFillColor(kaptonOutputCabs->GetLineColor());
+ kaptonOutputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *POLYAXOutputCabs = new TGeoVolume("ITSsuppSDDSideAOutputCabsPOLYAX",
+ TGeoVolume *polyaxOutputCabs = new TGeoVolume("ITSsuppSDDSideAOutputCabsPOLYAX",
outputCabsPOLYAX, medPOLYAX);
- POLYAXOutputCabs->SetVisibility(kTRUE);
- POLYAXOutputCabs->SetLineColor(34); //
- POLYAXOutputCabs->SetLineWidth(1);
- POLYAXOutputCabs->SetFillColor(POLYAXOutputCabs->GetLineColor());
- POLYAXOutputCabs->SetFillStyle(4000); // 0% transparent
+ polyaxOutputCabs->SetVisibility(kTRUE);
+ polyaxOutputCabs->SetLineColor(34); //
+ polyaxOutputCabs->SetLineWidth(1);
+ polyaxOutputCabs->SetFillColor(polyaxOutputCabs->GetLineColor());
+ polyaxOutputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *CuPCBBoards = new TGeoVolume("ITSsuppSDDSideAPCBBoardsCu",
+ TGeoVolume *cuPCBBoards = new TGeoVolume("ITSsuppSDDSideAPCBBoardsCu",
pcbBoardsCu, medCu);
- CuPCBBoards->SetVisibility(kTRUE);
- CuPCBBoards->SetLineColor(kBlack); // Black
- CuPCBBoards->SetLineWidth(1);
- CuPCBBoards->SetFillColor(CuPCBBoards->GetLineColor());
- CuPCBBoards->SetFillStyle(4000); // 0% transparent
+ cuPCBBoards->SetVisibility(kTRUE);
+ cuPCBBoards->SetLineColor(kBlack); // Black
+ cuPCBBoards->SetLineWidth(1);
+ cuPCBBoards->SetFillColor(cuPCBBoards->GetLineColor());
+ cuPCBBoards->SetFillStyle(4000); // 0% transparent
- TGeoVolume *EpoxyPCBBoards = new TGeoVolume("ITSsuppSDDSideAPCBBoardsEpoxy",
+ TGeoVolume *epoxyPCBBoards = new TGeoVolume("ITSsuppSDDSideAPCBBoardsEpoxy",
pcbBoardsEpoxy, medEpoxy);
- EpoxyPCBBoards->SetVisibility(kTRUE);
- EpoxyPCBBoards->SetLineColor(22); //
- EpoxyPCBBoards->SetLineWidth(1);
- EpoxyPCBBoards->SetFillColor(EpoxyPCBBoards->GetLineColor());
- EpoxyPCBBoards->SetFillStyle(4000); // 0% transparent
+ epoxyPCBBoards->SetVisibility(kTRUE);
+ epoxyPCBBoards->SetLineColor(22); //
+ epoxyPCBBoards->SetLineWidth(1);
+ epoxyPCBBoards->SetFillColor(epoxyPCBBoards->GetLineColor());
+ epoxyPCBBoards->SetFillStyle(4000); // 0% transparent
- TGeoVolume *PlastPCBBoards = new TGeoVolume("ITSsuppSDDSideAPCBBoardsPlast",
+ TGeoVolume *plastPCBBoards = new TGeoVolume("ITSsuppSDDSideAPCBBoardsPlast",
pcbBoardsPlast, medPUR);
- PlastPCBBoards->SetVisibility(kTRUE);
- PlastPCBBoards->SetLineColor(kRed); // Red
- PlastPCBBoards->SetLineWidth(1);
- PlastPCBBoards->SetFillColor(PlastPCBBoards->GetLineColor());
- PlastPCBBoards->SetFillStyle(4000); // 0% transparent
+ plastPCBBoards->SetVisibility(kTRUE);
+ plastPCBBoards->SetLineColor(kRed); // Red
+ plastPCBBoards->SetLineWidth(1);
+ plastPCBBoards->SetFillColor(plastPCBBoards->GetLineColor());
+ plastPCBBoards->SetFillStyle(4000); // 0% transparent
- TGeoVolume *SteelPCBBoards = new TGeoVolume("ITSsuppSDDSideAPCBBoardsSteel",
+ TGeoVolume *steelPCBBoards = new TGeoVolume("ITSsuppSDDSideAPCBBoardsSteel",
pcbBoardsSteel, medSteel);
- SteelPCBBoards->SetVisibility(kTRUE);
- SteelPCBBoards->SetLineColor(kBlue); // Blue
- SteelPCBBoards->SetLineWidth(1);
- SteelPCBBoards->SetFillColor(SteelPCBBoards->GetLineColor());
- SteelPCBBoards->SetFillStyle(4000); // 0% transparent
+ steelPCBBoards->SetVisibility(kTRUE);
+ steelPCBBoards->SetLineColor(kBlue); // Blue
+ steelPCBBoards->SetLineWidth(1);
+ steelPCBBoards->SetFillColor(steelPCBBoards->GetLineColor());
+ steelPCBBoards->SetFillStyle(4000); // 0% transparent
- TGeoVolume *PPSPCBBoards = new TGeoVolume("ITSsuppSDDSideAPCBBoardsPPS",
+ TGeoVolume *ppsPCBBoards = new TGeoVolume("ITSsuppSDDSideAPCBBoardsPPS",
pcbBoardsPPS, medPPS);
- PPSPCBBoards->SetVisibility(kTRUE);
- PPSPCBBoards->SetLineColor(kGreen); // Green
- PPSPCBBoards->SetLineWidth(1);
- PPSPCBBoards->SetFillColor(PPSPCBBoards->GetLineColor());
- PPSPCBBoards->SetFillStyle(4000); // 0% transparent
+ ppsPCBBoards->SetVisibility(kTRUE);
+ ppsPCBBoards->SetLineColor(kGreen); // Green
+ ppsPCBBoards->SetLineWidth(1);
+ ppsPCBBoards->SetFillColor(ppsPCBBoards->GetLineColor());
+ ppsPCBBoards->SetFillStyle(4000); // 0% transparent
// Now build up the tray
yloc = kForwardTrayThick + coolManifPOM->GetDY();
zloc = coolManifPOM->GetDZ();
- cableTrayA->AddNode(POMCoolManif, 1,
+ cableTrayA->AddNode(pomCoolManif, 1,
new TGeoTranslation( 0, yloc, zloc) );
yloc += coolManifPOM->GetDY() + coolManifSteel->GetDY();
- cableTrayA->AddNode(SteelCoolManif, 1,
+ cableTrayA->AddNode(steelCoolManif, 1,
new TGeoTranslation( 0, yloc, zloc) );
yloc += coolManifSteel->GetDY() + coolManifWater->GetDY();
- cableTrayA->AddNode(WaterCoolManif, 1,
+ cableTrayA->AddNode(waterCoolManif, 1,
new TGeoTranslation( 0, yloc, zloc) );
yloc += coolManifWater->GetDY() + coolManifAl->GetDY();
- cableTrayA->AddNode(AlCoolManif, 1,
+ cableTrayA->AddNode(alCoolManif, 1,
new TGeoTranslation( 0, yloc, zloc) );
- cableTrayA->AddNode(PURCoolTubes,1,
+ cableTrayA->AddNode(purCoolTubes,1,
new TGeoCombiTrans( 0, 0, 0,
new TGeoRotation("",-90, 90, 90) ) );
- cableTrayA->AddNode(WaterCoolTubes,1,
+ cableTrayA->AddNode(waterCoolTubes,1,
new TGeoCombiTrans( 0, 0, 0,
new TGeoRotation("",-90, 90, 90) ) );
- cableTrayA->AddNode(AirCoolTubes,1,
+ cableTrayA->AddNode(airCoolTubes,1,
new TGeoCombiTrans( 0, 0, 0,
new TGeoRotation("",-90, 90, 90) ) );
xloc = coolManifPOM->GetDX() + optConnPBT->GetDX();
yloc = kForwardTrayThick + optConnPBT->GetDY();
zloc = optConnPBT->GetDZ();
- cableTrayA->AddNode(PBTOptConn, 1,
+ cableTrayA->AddNode(pbtOptConn, 1,
new TGeoTranslation( xloc, yloc, zloc) );
- cableTrayA->AddNode(PBTOptConn, 2,
+ cableTrayA->AddNode(pbtOptConn, 2,
new TGeoTranslation(-xloc, yloc, zloc) );
yloc += optConnPBT->GetDY() + optConnSteel->GetDY();
- cableTrayA->AddNode(SteelOptConn, 1,
+ cableTrayA->AddNode(steelOptConn, 1,
new TGeoTranslation( xloc, yloc, zloc) );
- cableTrayA->AddNode(SteelOptConn, 2,
+ cableTrayA->AddNode(steelOptConn, 2,
new TGeoTranslation(-xloc, yloc, zloc) );
yloc += optConnSteel->GetDY() + optConnAl->GetDY();
- cableTrayA->AddNode(AlOptConn, 1,
+ cableTrayA->AddNode(alOptConn, 1,
new TGeoTranslation( xloc, yloc, zloc) );
- cableTrayA->AddNode(AlOptConn, 2,
+ cableTrayA->AddNode(alOptConn, 2,
new TGeoTranslation(-xloc, yloc, zloc) );
xloc = kSideACoolTubesWide/2 + kSideAOptFibsWide/2;
- cableTrayA->AddNode(OptFibs,1,
+ cableTrayA->AddNode(optFibs,1,
new TGeoCombiTrans( xloc, 0, 0,
new TGeoRotation("",-90, 90, 90) ) );
- cableTrayA->AddNode(OptFibs,2,
+ cableTrayA->AddNode(optFibs,2,
new TGeoCombiTrans(-xloc, 0, 0,
new TGeoRotation("",-90, 90, 90) ) );
yloc = kForwardTrayTotalHeight - forwardCover->GetY(3) -
kSideAInputCablesYTrans - inputCabsPOLYAX->GetDY();
zloc = inputCabsPOLYAX->GetDZ();
- cableTrayA->AddNode(POLYAXInputCabs, 1,
+ cableTrayA->AddNode(polyaxInputCabs, 1,
new TGeoTranslation( 0, yloc, zloc) );
yloc -= (inputCabsPOLYAX->GetDY() + inputCabsKapton->GetDY());
- cableTrayA->AddNode(KaptonInputCabs, 1,
+ cableTrayA->AddNode(kaptonInputCabs, 1,
new TGeoTranslation( 0, yloc, zloc) );
yloc -= (inputCabsKapton->GetDY() + inputCabsAl->GetDY());
- cableTrayA->AddNode(AlInputCabs, 1,
+ cableTrayA->AddNode(alInputCabs, 1,
new TGeoTranslation( 0, yloc, zloc) );
yloc -= (inputCabsAl->GetDY() + inputCabsPlast->GetDY());
- cableTrayA->AddNode(PlastInputCabs, 1,
+ cableTrayA->AddNode(plastInputCabs, 1,
new TGeoTranslation( 0, yloc, zloc) );
yloc -= (inputCabsPlast->GetDY() + inputCabsCu->GetDY());
- cableTrayA->AddNode(CuInputCabs, 1,
+ cableTrayA->AddNode(cuInputCabs, 1,
new TGeoTranslation( 0, yloc, zloc) );
yloc -= (inputCabsCu->GetDY()+pcbBoardsPPS->GetDY()+kSideAPCBBoardsYTrans);
zloc += pcbBoardsPPS->GetDZ();
- cableTrayA->AddNode(PPSPCBBoards, 1,
+ cableTrayA->AddNode(ppsPCBBoards, 1,
new TGeoTranslation( 0, yloc, zloc) );
yloc -= (pcbBoardsPPS->GetDY()+pcbBoardsSteel->GetDY());
- cableTrayA->AddNode(SteelPCBBoards, 1,
+ cableTrayA->AddNode(steelPCBBoards, 1,
new TGeoTranslation( 0, yloc, zloc) );
yloc -= (pcbBoardsSteel->GetDY()+pcbBoardsPlast->GetDY());
- cableTrayA->AddNode(PlastPCBBoards, 1,
+ cableTrayA->AddNode(plastPCBBoards, 1,
new TGeoTranslation( 0, yloc, zloc) );
yloc -= (pcbBoardsPlast->GetDY()+pcbBoardsEpoxy->GetDY());
- cableTrayA->AddNode(EpoxyPCBBoards, 1,
+ cableTrayA->AddNode(epoxyPCBBoards, 1,
new TGeoTranslation( 0, yloc, zloc) );
yloc -= (pcbBoardsEpoxy->GetDY()+pcbBoardsCu->GetDY());
- cableTrayA->AddNode(CuPCBBoards, 1,
+ cableTrayA->AddNode(cuPCBBoards, 1,
new TGeoTranslation( 0, yloc, zloc) );
- cableTrayA->AddNode(CuOutputCabs,1,
+ cableTrayA->AddNode(cuOutputCabs,1,
new TGeoCombiTrans( 0, 0, 0,
new TGeoRotation("",-90, 90, 90) ) );
- cableTrayA->AddNode(PlastOutputCabs,1,
+ cableTrayA->AddNode(plastOutputCabs,1,
new TGeoCombiTrans( 0, 0, 0,
new TGeoRotation("",-90, 90, 90) ) );
- cableTrayA->AddNode(AlOutputCabs,1,
+ cableTrayA->AddNode(alOutputCabs,1,
new TGeoCombiTrans( 0, 0, 0,
new TGeoRotation("",-90, 90, 90) ) );
- cableTrayA->AddNode(KaptonOutputCabs,1,
+ cableTrayA->AddNode(kaptonOutputCabs,1,
new TGeoCombiTrans( 0, 0, 0,
new TGeoRotation("",-90, 90, 90) ) );
- cableTrayA->AddNode(POLYAXOutputCabs,1,
+ cableTrayA->AddNode(polyaxOutputCabs,1,
new TGeoCombiTrans( 0, 0, 0,
new TGeoRotation("",-90, 90, 90) ) );
//______________________________________________________________________
void AliITSv11GeometrySupport::SDDCableTraysSideC(TGeoVolume *moth,
- TGeoManager *mgr){
+ const TGeoManager *mgr){
//
// Creates the SDD cable trays which are outside the ITS support cones
// but still inside the TPC on Side C
TGeoMedium *medPPS = mgr->GetMedium("ITS_PPS$");
TGeoMedium *medEpoxy = mgr->GetMedium("ITS_EPOXY$");
- TGeoVolume *POMCoolManif = new TGeoVolume("ITSsuppSDDSideCCoolManifPOM",
+ TGeoVolume *pomCoolManif = new TGeoVolume("ITSsuppSDDSideCCoolManifPOM",
coolManifPOM, medPOM);
- POMCoolManif->SetVisibility(kTRUE);
- POMCoolManif->SetLineColor(kRed); // Red
- POMCoolManif->SetLineWidth(1);
- POMCoolManif->SetFillColor(POMCoolManif->GetLineColor());
- POMCoolManif->SetFillStyle(4000); // 0% transparent
+ pomCoolManif->SetVisibility(kTRUE);
+ pomCoolManif->SetLineColor(kRed); // Red
+ pomCoolManif->SetLineWidth(1);
+ pomCoolManif->SetFillColor(pomCoolManif->GetLineColor());
+ pomCoolManif->SetFillStyle(4000); // 0% transparent
- TGeoVolume *SteelCoolManif = new TGeoVolume("ITSsuppSDDSideCCoolManifSteel",
+ TGeoVolume *steelCoolManif = new TGeoVolume("ITSsuppSDDSideCCoolManifSteel",
coolManifSteel, medSteel);
- SteelCoolManif->SetVisibility(kTRUE);
- SteelCoolManif->SetLineColor(kBlue); // Blue
- SteelCoolManif->SetLineWidth(1);
- SteelCoolManif->SetFillColor(SteelCoolManif->GetLineColor());
- SteelCoolManif->SetFillStyle(4000); // 0% transparent
+ steelCoolManif->SetVisibility(kTRUE);
+ steelCoolManif->SetLineColor(kBlue); // Blue
+ steelCoolManif->SetLineWidth(1);
+ steelCoolManif->SetFillColor(steelCoolManif->GetLineColor());
+ steelCoolManif->SetFillStyle(4000); // 0% transparent
- TGeoVolume *WaterCoolManif = new TGeoVolume("ITSsuppSDDSideCCoolManifWater",
+ TGeoVolume *waterCoolManif = new TGeoVolume("ITSsuppSDDSideCCoolManifWater",
coolManifWater, medWater);
- WaterCoolManif->SetVisibility(kTRUE);
- WaterCoolManif->SetLineColor(33); // Light Blue
- WaterCoolManif->SetLineWidth(1);
- WaterCoolManif->SetFillColor(WaterCoolManif->GetLineColor());
- WaterCoolManif->SetFillStyle(4000); // 0% transparent
+ waterCoolManif->SetVisibility(kTRUE);
+ waterCoolManif->SetLineColor(33); // Light Blue
+ waterCoolManif->SetLineWidth(1);
+ waterCoolManif->SetFillColor(waterCoolManif->GetLineColor());
+ waterCoolManif->SetFillStyle(4000); // 0% transparent
- TGeoVolume *AlCoolManif = new TGeoVolume("ITSsuppSDDSideCCoolManifAl",
+ TGeoVolume *alCoolManif = new TGeoVolume("ITSsuppSDDSideCCoolManifAl",
coolManifAl, medAl);
- AlCoolManif->SetVisibility(kTRUE);
- AlCoolManif->SetLineColor(6); // Purple
- AlCoolManif->SetLineWidth(1);
- AlCoolManif->SetFillColor(AlCoolManif->GetLineColor());
- AlCoolManif->SetFillStyle(4000); // 0% transparent
+ alCoolManif->SetVisibility(kTRUE);
+ alCoolManif->SetLineColor(6); // Purple
+ alCoolManif->SetLineWidth(1);
+ alCoolManif->SetFillColor(alCoolManif->GetLineColor());
+ alCoolManif->SetFillStyle(4000); // 0% transparent
- TGeoVolume *PURCoolTubes = new TGeoVolume("ITSsuppSDDSideCCoolTubesPUR",
+ TGeoVolume *purCoolTubes = new TGeoVolume("ITSsuppSDDSideCCoolTubesPUR",
coolTubesPUR, medPUR);
- PURCoolTubes->SetVisibility(kTRUE);
- PURCoolTubes->SetLineColor(kRed); // Red
- PURCoolTubes->SetLineWidth(1);
- PURCoolTubes->SetFillColor(PURCoolTubes->GetLineColor());
- PURCoolTubes->SetFillStyle(4000); // 0% transparent
+ purCoolTubes->SetVisibility(kTRUE);
+ purCoolTubes->SetLineColor(kRed); // Red
+ purCoolTubes->SetLineWidth(1);
+ purCoolTubes->SetFillColor(purCoolTubes->GetLineColor());
+ purCoolTubes->SetFillStyle(4000); // 0% transparent
- TGeoVolume *WaterCoolTubes = new TGeoVolume("ITSsuppSDDSideCCoolTubesWater",
+ TGeoVolume *waterCoolTubes = new TGeoVolume("ITSsuppSDDSideCCoolTubesWater",
coolTubesWater, medWater);
- WaterCoolTubes->SetVisibility(kTRUE);
- WaterCoolTubes->SetLineColor(33); // Light Blue
- WaterCoolTubes->SetLineWidth(1);
- WaterCoolTubes->SetFillColor(WaterCoolTubes->GetLineColor());
- WaterCoolTubes->SetFillStyle(4000); // 0% transparent
+ waterCoolTubes->SetVisibility(kTRUE);
+ waterCoolTubes->SetLineColor(33); // Light Blue
+ waterCoolTubes->SetLineWidth(1);
+ waterCoolTubes->SetFillColor(waterCoolTubes->GetLineColor());
+ waterCoolTubes->SetFillStyle(4000); // 0% transparent
- TGeoVolume *AirCoolTubes = new TGeoVolume("ITSsuppSDDSideCCoolTubesAir",
+ TGeoVolume *airCoolTubes = new TGeoVolume("ITSsuppSDDSideCCoolTubesAir",
coolTubesAir, medAir);
- AirCoolTubes->SetVisibility(kTRUE);
- AirCoolTubes->SetLineColor(41);
- AirCoolTubes->SetLineWidth(1);
- AirCoolTubes->SetFillColor(AirCoolTubes->GetLineColor());
- AirCoolTubes->SetFillStyle(4000); // 0% transparent
+ airCoolTubes->SetVisibility(kTRUE);
+ airCoolTubes->SetLineColor(41);
+ airCoolTubes->SetLineWidth(1);
+ airCoolTubes->SetFillColor(airCoolTubes->GetLineColor());
+ airCoolTubes->SetFillStyle(4000); // 0% transparent
- TGeoVolume *PBTOptConn = new TGeoVolume("ITSsuppSDDSideCOptConnPBT",
+ TGeoVolume *pbtOptConn = new TGeoVolume("ITSsuppSDDSideCOptConnPBT",
optConnPBT, medPBT);
- PBTOptConn->SetVisibility(kTRUE);
- PBTOptConn->SetLineColor(kRed); // Red
- PBTOptConn->SetLineWidth(1);
- PBTOptConn->SetFillColor(PBTOptConn->GetLineColor());
- PBTOptConn->SetFillStyle(4000); // 0% transparent
+ pbtOptConn->SetVisibility(kTRUE);
+ pbtOptConn->SetLineColor(kRed); // Red
+ pbtOptConn->SetLineWidth(1);
+ pbtOptConn->SetFillColor(pbtOptConn->GetLineColor());
+ pbtOptConn->SetFillStyle(4000); // 0% transparent
- TGeoVolume *SteelOptConn = new TGeoVolume("ITSsuppSDDSideCOptConnSteel",
+ TGeoVolume *steelOptConn = new TGeoVolume("ITSsuppSDDSideCOptConnSteel",
optConnSteel, medSteel);
- SteelOptConn->SetVisibility(kTRUE);
- SteelOptConn->SetLineColor(kBlue); // Blue
- SteelOptConn->SetLineWidth(1);
- SteelOptConn->SetFillColor(SteelOptConn->GetLineColor());
- SteelOptConn->SetFillStyle(4000); // 0% transparent
+ steelOptConn->SetVisibility(kTRUE);
+ steelOptConn->SetLineColor(kBlue); // Blue
+ steelOptConn->SetLineWidth(1);
+ steelOptConn->SetFillColor(steelOptConn->GetLineColor());
+ steelOptConn->SetFillStyle(4000); // 0% transparent
- TGeoVolume *AlOptConn = new TGeoVolume("ITSsuppSDDSideCOptConnAl",
+ TGeoVolume *alOptConn = new TGeoVolume("ITSsuppSDDSideCOptConnAl",
optConnAl, medAl);
- AlOptConn->SetVisibility(kTRUE);
- AlOptConn->SetLineColor(6); // Purple
- AlOptConn->SetLineWidth(1);
- AlOptConn->SetFillColor(AlOptConn->GetLineColor());
- AlOptConn->SetFillStyle(4000); // 0% transparent
+ alOptConn->SetVisibility(kTRUE);
+ alOptConn->SetLineColor(6); // Purple
+ alOptConn->SetLineWidth(1);
+ alOptConn->SetFillColor(alOptConn->GetLineColor());
+ alOptConn->SetFillStyle(4000); // 0% transparent
- TGeoVolume *OptFibs = new TGeoVolume("ITSsuppSDDSideCOptFibs",
+ TGeoVolume *optFibs = new TGeoVolume("ITSsuppSDDSideCOptFibs",
opticalFibs, medOptFib);
- OptFibs->SetVisibility(kTRUE);
- OptFibs->SetLineColor(kOrange+2); // Orange
- OptFibs->SetLineWidth(1);
- OptFibs->SetFillColor(OptFibs->GetLineColor());
- OptFibs->SetFillStyle(4000); // 0% transparent
+ optFibs->SetVisibility(kTRUE);
+ optFibs->SetLineColor(kOrange+2); // Orange
+ optFibs->SetLineWidth(1);
+ optFibs->SetFillColor(optFibs->GetLineColor());
+ optFibs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *CuInputCabs = new TGeoVolume("ITSsuppSDDSideCInputCabsCu",
+ TGeoVolume *cuInputCabs = new TGeoVolume("ITSsuppSDDSideCInputCabsCu",
inputCabsCu, medCu);
- CuInputCabs->SetVisibility(kTRUE);
- CuInputCabs->SetLineColor(kBlack); // Black
- CuInputCabs->SetLineWidth(1);
- CuInputCabs->SetFillColor(CuInputCabs->GetLineColor());
- CuInputCabs->SetFillStyle(4000); // 0% transparent
+ cuInputCabs->SetVisibility(kTRUE);
+ cuInputCabs->SetLineColor(kBlack); // Black
+ cuInputCabs->SetLineWidth(1);
+ cuInputCabs->SetFillColor(cuInputCabs->GetLineColor());
+ cuInputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *PlastInputCabs = new TGeoVolume("ITSsuppSDDSideCInputCabsPlast",
+ TGeoVolume *plastInputCabs = new TGeoVolume("ITSsuppSDDSideCInputCabsPlast",
inputCabsPlast, medPUR);
- PlastInputCabs->SetVisibility(kTRUE);
- PlastInputCabs->SetLineColor(kRed); // Red
- PlastInputCabs->SetLineWidth(1);
- PlastInputCabs->SetFillColor(PlastInputCabs->GetLineColor());
- PlastInputCabs->SetFillStyle(4000); // 0% transparent
+ plastInputCabs->SetVisibility(kTRUE);
+ plastInputCabs->SetLineColor(kRed); // Red
+ plastInputCabs->SetLineWidth(1);
+ plastInputCabs->SetFillColor(plastInputCabs->GetLineColor());
+ plastInputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *AlInputCabs = new TGeoVolume("ITSsuppSDDSideCInputCabsAl",
+ TGeoVolume *alInputCabs = new TGeoVolume("ITSsuppSDDSideCInputCabsAl",
inputCabsAl, medAl);
- AlInputCabs->SetVisibility(kTRUE);
- AlInputCabs->SetLineColor(6); // Purple
- AlInputCabs->SetLineWidth(1);
- AlInputCabs->SetFillColor(AlInputCabs->GetLineColor());
- AlInputCabs->SetFillStyle(4000); // 0% transparent
+ alInputCabs->SetVisibility(kTRUE);
+ alInputCabs->SetLineColor(6); // Purple
+ alInputCabs->SetLineWidth(1);
+ alInputCabs->SetFillColor(alInputCabs->GetLineColor());
+ alInputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *KaptonInputCabs = new TGeoVolume("ITSsuppSDDSideCInputCabsKapton",
+ TGeoVolume *kaptonInputCabs = new TGeoVolume("ITSsuppSDDSideCInputCabsKapton",
inputCabsKapton, medKapton);
- KaptonInputCabs->SetVisibility(kTRUE);
- KaptonInputCabs->SetLineColor(14); //
- KaptonInputCabs->SetLineWidth(1);
- KaptonInputCabs->SetFillColor(KaptonInputCabs->GetLineColor());
- KaptonInputCabs->SetFillStyle(4000); // 0% transparent
+ kaptonInputCabs->SetVisibility(kTRUE);
+ kaptonInputCabs->SetLineColor(14); //
+ kaptonInputCabs->SetLineWidth(1);
+ kaptonInputCabs->SetFillColor(kaptonInputCabs->GetLineColor());
+ kaptonInputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *POLYAXInputCabs = new TGeoVolume("ITSsuppSDDSideCInputCabsPOLYAX",
+ TGeoVolume *polyaxInputCabs = new TGeoVolume("ITSsuppSDDSideCInputCabsPOLYAX",
inputCabsPOLYAX, medPOLYAX);
- POLYAXInputCabs->SetVisibility(kTRUE);
- POLYAXInputCabs->SetLineColor(34); //
- POLYAXInputCabs->SetLineWidth(1);
- POLYAXInputCabs->SetFillColor(POLYAXInputCabs->GetLineColor());
- POLYAXInputCabs->SetFillStyle(4000); // 0% transparent
+ polyaxInputCabs->SetVisibility(kTRUE);
+ polyaxInputCabs->SetLineColor(34); //
+ polyaxInputCabs->SetLineWidth(1);
+ polyaxInputCabs->SetFillColor(polyaxInputCabs->GetLineColor());
+ polyaxInputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *CuOutputCabs = new TGeoVolume("ITSsuppSDDSideCOutputCabsCu",
+ TGeoVolume *cuOutputCabs = new TGeoVolume("ITSsuppSDDSideCOutputCabsCu",
outputCabsCu, medCu);
- CuOutputCabs->SetVisibility(kTRUE);
- CuOutputCabs->SetLineColor(kBlack); // Black
- CuOutputCabs->SetLineWidth(1);
- CuOutputCabs->SetFillColor(CuOutputCabs->GetLineColor());
- CuOutputCabs->SetFillStyle(4000); // 0% transparent
+ cuOutputCabs->SetVisibility(kTRUE);
+ cuOutputCabs->SetLineColor(kBlack); // Black
+ cuOutputCabs->SetLineWidth(1);
+ cuOutputCabs->SetFillColor(cuOutputCabs->GetLineColor());
+ cuOutputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *PlastOutputCabs = new TGeoVolume("ITSsuppSDDSideCOutputCabsPlast",
+ TGeoVolume *plastOutputCabs = new TGeoVolume("ITSsuppSDDSideCOutputCabsPlast",
outputCabsPlast, medPUR);
- PlastOutputCabs->SetVisibility(kTRUE);
- PlastOutputCabs->SetLineColor(kRed); // Red
- PlastOutputCabs->SetLineWidth(1);
- PlastOutputCabs->SetFillColor(PlastOutputCabs->GetLineColor());
- PlastOutputCabs->SetFillStyle(4000); // 0% transparent
+ plastOutputCabs->SetVisibility(kTRUE);
+ plastOutputCabs->SetLineColor(kRed); // Red
+ plastOutputCabs->SetLineWidth(1);
+ plastOutputCabs->SetFillColor(plastOutputCabs->GetLineColor());
+ plastOutputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *AlOutputCabs = new TGeoVolume("ITSsuppSDDSideCOutputCabsAl",
+ TGeoVolume *alOutputCabs = new TGeoVolume("ITSsuppSDDSideCOutputCabsAl",
outputCabsAl, medAl);
- AlOutputCabs->SetVisibility(kTRUE);
- AlOutputCabs->SetLineColor(6); // Purple
- AlOutputCabs->SetLineWidth(1);
- AlOutputCabs->SetFillColor(AlOutputCabs->GetLineColor());
- AlOutputCabs->SetFillStyle(4000); // 0% transparent
+ alOutputCabs->SetVisibility(kTRUE);
+ alOutputCabs->SetLineColor(6); // Purple
+ alOutputCabs->SetLineWidth(1);
+ alOutputCabs->SetFillColor(alOutputCabs->GetLineColor());
+ alOutputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *KaptonOutputCabs = new TGeoVolume("ITSsuppSDDSideCOutputCabsKapton",
+ TGeoVolume *kaptonOutputCabs = new TGeoVolume("ITSsuppSDDSideCOutputCabsKapton",
outputCabsKapton, medKapton);
- KaptonOutputCabs->SetVisibility(kTRUE);
- KaptonOutputCabs->SetLineColor(14); //
- KaptonOutputCabs->SetLineWidth(1);
- KaptonOutputCabs->SetFillColor(KaptonOutputCabs->GetLineColor());
- KaptonOutputCabs->SetFillStyle(4000); // 0% transparent
+ kaptonOutputCabs->SetVisibility(kTRUE);
+ kaptonOutputCabs->SetLineColor(14); //
+ kaptonOutputCabs->SetLineWidth(1);
+ kaptonOutputCabs->SetFillColor(kaptonOutputCabs->GetLineColor());
+ kaptonOutputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *POLYAXOutputCabs = new TGeoVolume("ITSsuppSDDSideCOutputCabsPOLYAX",
+ TGeoVolume *polyaxOutputCabs = new TGeoVolume("ITSsuppSDDSideCOutputCabsPOLYAX",
outputCabsPOLYAX, medPOLYAX);
- POLYAXOutputCabs->SetVisibility(kTRUE);
- POLYAXOutputCabs->SetLineColor(34); //
- POLYAXOutputCabs->SetLineWidth(1);
- POLYAXOutputCabs->SetFillColor(POLYAXOutputCabs->GetLineColor());
- POLYAXOutputCabs->SetFillStyle(4000); // 0% transparent
+ polyaxOutputCabs->SetVisibility(kTRUE);
+ polyaxOutputCabs->SetLineColor(34); //
+ polyaxOutputCabs->SetLineWidth(1);
+ polyaxOutputCabs->SetFillColor(polyaxOutputCabs->GetLineColor());
+ polyaxOutputCabs->SetFillStyle(4000); // 0% transparent
- TGeoVolume *CuPCBBoards = new TGeoVolume("ITSsuppSDDSideCPCBBoardsCu",
+ TGeoVolume *cuPCBBoards = new TGeoVolume("ITSsuppSDDSideCPCBBoardsCu",
pcbBoardsCu, medCu);
- CuPCBBoards->SetVisibility(kTRUE);
- CuPCBBoards->SetLineColor(kBlack); // Black
- CuPCBBoards->SetLineWidth(1);
- CuPCBBoards->SetFillColor(CuPCBBoards->GetLineColor());
- CuPCBBoards->SetFillStyle(4000); // 0% transparent
+ cuPCBBoards->SetVisibility(kTRUE);
+ cuPCBBoards->SetLineColor(kBlack); // Black
+ cuPCBBoards->SetLineWidth(1);
+ cuPCBBoards->SetFillColor(cuPCBBoards->GetLineColor());
+ cuPCBBoards->SetFillStyle(4000); // 0% transparent
- TGeoVolume *EpoxyPCBBoards = new TGeoVolume("ITSsuppSDDSideCPCBBoardsEpoxy",
+ TGeoVolume *epoxyPCBBoards = new TGeoVolume("ITSsuppSDDSideCPCBBoardsEpoxy",
pcbBoardsEpoxy, medEpoxy);
- EpoxyPCBBoards->SetVisibility(kTRUE);
- EpoxyPCBBoards->SetLineColor(22); //
- EpoxyPCBBoards->SetLineWidth(1);
- EpoxyPCBBoards->SetFillColor(EpoxyPCBBoards->GetLineColor());
- EpoxyPCBBoards->SetFillStyle(4000); // 0% transparent
+ epoxyPCBBoards->SetVisibility(kTRUE);
+ epoxyPCBBoards->SetLineColor(22); //
+ epoxyPCBBoards->SetLineWidth(1);
+ epoxyPCBBoards->SetFillColor(epoxyPCBBoards->GetLineColor());
+ epoxyPCBBoards->SetFillStyle(4000); // 0% transparent
- TGeoVolume *PlastPCBBoards = new TGeoVolume("ITSsuppSDDSideCPCBBoardsPlast",
+ TGeoVolume *plastPCBBoards = new TGeoVolume("ITSsuppSDDSideCPCBBoardsPlast",
pcbBoardsPlast, medPUR);
- PlastPCBBoards->SetVisibility(kTRUE);
- PlastPCBBoards->SetLineColor(kRed); // Red
- PlastPCBBoards->SetLineWidth(1);
- PlastPCBBoards->SetFillColor(PlastPCBBoards->GetLineColor());
- PlastPCBBoards->SetFillStyle(4000); // 0% transparent
+ plastPCBBoards->SetVisibility(kTRUE);
+ plastPCBBoards->SetLineColor(kRed); // Red
+ plastPCBBoards->SetLineWidth(1);
+ plastPCBBoards->SetFillColor(plastPCBBoards->GetLineColor());
+ plastPCBBoards->SetFillStyle(4000); // 0% transparent
- TGeoVolume *SteelPCBBoards = new TGeoVolume("ITSsuppSDDSideCPCBBoardsSteel",
+ TGeoVolume *steelPCBBoards = new TGeoVolume("ITSsuppSDDSideCPCBBoardsSteel",
pcbBoardsSteel, medSteel);
- SteelPCBBoards->SetVisibility(kTRUE);
- SteelPCBBoards->SetLineColor(kBlue); // Blue
- SteelPCBBoards->SetLineWidth(1);
- SteelPCBBoards->SetFillColor(SteelPCBBoards->GetLineColor());
- SteelPCBBoards->SetFillStyle(4000); // 0% transparent
+ steelPCBBoards->SetVisibility(kTRUE);
+ steelPCBBoards->SetLineColor(kBlue); // Blue
+ steelPCBBoards->SetLineWidth(1);
+ steelPCBBoards->SetFillColor(steelPCBBoards->GetLineColor());
+ steelPCBBoards->SetFillStyle(4000); // 0% transparent
- TGeoVolume *PPSPCBBoards = new TGeoVolume("ITSsuppSDDSideCPCBBoardsPPS",
+ TGeoVolume *ppsPCBBoards = new TGeoVolume("ITSsuppSDDSideCPCBBoardsPPS",
pcbBoardsPPS, medPPS);
- PPSPCBBoards->SetVisibility(kTRUE);
- PPSPCBBoards->SetLineColor(kGreen); // Green
- PPSPCBBoards->SetLineWidth(1);
- PPSPCBBoards->SetFillColor(PPSPCBBoards->GetLineColor());
- PPSPCBBoards->SetFillStyle(4000); // 0% transparent
+ ppsPCBBoards->SetVisibility(kTRUE);
+ ppsPCBBoards->SetLineColor(kGreen); // Green
+ ppsPCBBoards->SetLineWidth(1);
+ ppsPCBBoards->SetFillColor(ppsPCBBoards->GetLineColor());
+ ppsPCBBoards->SetFillStyle(4000); // 0% transparent
// Now fill the tray
xloc = coolManifPOM->GetDX();
yloc = 2*kSideCHalfThick + coolManifPOM->GetDY();
- trayStructure->AddNode(POMCoolManif, 1,
+ trayStructure->AddNode(pomCoolManif, 1,
new TGeoTranslation( xloc, yloc, 0) );
yloc += coolManifPOM->GetDY() + coolManifSteel->GetDY();
- trayStructure->AddNode(SteelCoolManif, 1,
+ trayStructure->AddNode(steelCoolManif, 1,
new TGeoTranslation( xloc, yloc, 0) );
yloc += coolManifSteel->GetDY() + coolManifWater->GetDY();
- trayStructure->AddNode(WaterCoolManif, 1,
+ trayStructure->AddNode(waterCoolManif, 1,
new TGeoTranslation( xloc, yloc, 0) );
yloc += coolManifWater->GetDY() + coolManifAl->GetDY();
- trayStructure->AddNode(AlCoolManif, 1,
+ trayStructure->AddNode(alCoolManif, 1,
new TGeoTranslation( xloc, yloc, 0) );
xloc = inputCabsCu->GetDX();
yloc += coolManifWater->GetDY() + inputCabsCu->GetDY()
+ kSideCInputCablesTrans;
- trayStructure->AddNode(CuInputCabs, 1,
+ trayStructure->AddNode(cuInputCabs, 1,
new TGeoTranslation( xloc, yloc, 0) );
yloc += inputCabsCu->GetDY() + inputCabsPlast->GetDY();
- trayStructure->AddNode(PlastInputCabs, 1,
+ trayStructure->AddNode(plastInputCabs, 1,
new TGeoTranslation( xloc, yloc, 0) );
yloc += inputCabsPlast->GetDY() + inputCabsAl->GetDY();
- trayStructure->AddNode(AlInputCabs, 1,
+ trayStructure->AddNode(alInputCabs, 1,
new TGeoTranslation( xloc, yloc, 0) );
yloc += inputCabsAl->GetDY() + inputCabsKapton->GetDY();
- trayStructure->AddNode(KaptonInputCabs, 1,
+ trayStructure->AddNode(kaptonInputCabs, 1,
new TGeoTranslation( xloc, yloc, 0) );
yloc += inputCabsKapton->GetDY() + inputCabsPOLYAX->GetDY();
- trayStructure->AddNode(POLYAXInputCabs, 1,
+ trayStructure->AddNode(polyaxInputCabs, 1,
new TGeoTranslation( xloc, yloc, 0) );
- trayStructure->AddNode(PURCoolTubes , 1, 0);
- trayStructure->AddNode(WaterCoolTubes, 1, 0);
- trayStructure->AddNode(AirCoolTubes , 1, 0);
+ trayStructure->AddNode(purCoolTubes , 1, 0);
+ trayStructure->AddNode(waterCoolTubes, 1, 0);
+ trayStructure->AddNode(airCoolTubes , 1, 0);
xloc = optConnPBT->GetDX();
yloc = 2*kSideCHalfThick + optConnPBT->GetDY();
zloc = coolManifPOM->GetDZ() + optConnPBT->GetDZ();
- trayStructure->AddNode(PBTOptConn, 1,
+ trayStructure->AddNode(pbtOptConn, 1,
new TGeoTranslation( xloc, yloc, zloc) );
- trayStructure->AddNode(PBTOptConn, 2,
+ trayStructure->AddNode(pbtOptConn, 2,
new TGeoTranslation( xloc, yloc,-zloc) );
yloc += optConnPBT->GetDY() + optConnSteel->GetDY();
- trayStructure->AddNode(SteelOptConn, 1,
+ trayStructure->AddNode(steelOptConn, 1,
new TGeoTranslation( xloc, yloc, zloc) );
- trayStructure->AddNode(SteelOptConn, 2,
+ trayStructure->AddNode(steelOptConn, 2,
new TGeoTranslation( xloc, yloc,-zloc) );
yloc += optConnSteel->GetDY() + optConnAl->GetDY();
- trayStructure->AddNode(AlOptConn, 1,
+ trayStructure->AddNode(alOptConn, 1,
new TGeoTranslation( xloc, yloc, zloc) );
- trayStructure->AddNode(AlOptConn, 2,
+ trayStructure->AddNode(alOptConn, 2,
new TGeoTranslation( xloc, yloc,-zloc) );
- trayStructure->AddNode(OptFibs, 1,
+ trayStructure->AddNode(optFibs, 1,
new TGeoTranslation( 0, 0, zloc) );
- trayStructure->AddNode(OptFibs, 2,
+ trayStructure->AddNode(optFibs, 2,
new TGeoTranslation( 0, 0,-zloc) );
- trayStructure->AddNode(CuOutputCabs , 1, 0);
- trayStructure->AddNode(PlastOutputCabs , 1, 0);
- trayStructure->AddNode(AlOutputCabs , 1, 0);
- trayStructure->AddNode(KaptonOutputCabs, 1, 0);
- trayStructure->AddNode(POLYAXOutputCabs, 1, 0);
+ trayStructure->AddNode(cuOutputCabs , 1, 0);
+ trayStructure->AddNode(plastOutputCabs , 1, 0);
+ trayStructure->AddNode(alOutputCabs , 1, 0);
+ trayStructure->AddNode(kaptonOutputCabs, 1, 0);
+ trayStructure->AddNode(polyaxOutputCabs, 1, 0);
xloc = kXShiftBarCool + kBarCoolRmax + pcbBoardsCu->GetDX();
yloc = outputCabsPOLYAX->GetY(5) + pcbBoardsCu->GetDY();
- trayStructure->AddNode(CuPCBBoards, 1,
+ trayStructure->AddNode(cuPCBBoards, 1,
new TGeoTranslation( xloc, yloc , 0) );
yloc += pcbBoardsCu->GetDY() + pcbBoardsEpoxy->GetDY();
- trayStructure->AddNode(EpoxyPCBBoards, 1,
+ trayStructure->AddNode(epoxyPCBBoards, 1,
new TGeoTranslation( xloc, yloc , 0) );
yloc += pcbBoardsEpoxy->GetDY() + pcbBoardsPlast->GetDY();
- trayStructure->AddNode(PlastPCBBoards, 1,
+ trayStructure->AddNode(plastPCBBoards, 1,
new TGeoTranslation( xloc, yloc , 0) );
yloc += pcbBoardsPlast->GetDY() + pcbBoardsSteel->GetDY();
- trayStructure->AddNode(SteelPCBBoards, 1,
+ trayStructure->AddNode(steelPCBBoards, 1,
new TGeoTranslation( xloc, yloc , 0) );
yloc += pcbBoardsSteel->GetDY() + pcbBoardsPPS->GetDY();
- trayStructure->AddNode(PPSPCBBoards, 1,
+ trayStructure->AddNode(ppsPCBBoards, 1,
new TGeoTranslation( xloc, yloc , 0) );
//______________________________________________________________________
void AliITSv11GeometrySupport::SSDCableTraysSideA(TGeoVolume *moth,
- TGeoManager *mgr){
+ const TGeoManager *mgr){
//
// Creates the SSD cable trays which are outside the ITS support cones
// but still inside the TPC on Side A
//______________________________________________________________________
void AliITSv11GeometrySupport::SSDCableTraysSideC(TGeoVolume *moth,
- TGeoManager *mgr){
+ const TGeoManager *mgr){
//
// Creates the SSD cable trays which are outside the ITS support cones
// but still inside the TPC on Side C
water->DefineSection(1, kServicesWidth/2);
// The poliurethane inside the tray: a Xtru
- TGeoXtru *PUR = new TGeoXtru(2);
- PUR->SetName("ITSsuppSSDTrayCPUR");
-
+ TGeoXtru *pur = new TGeoXtru(2);
+ pur->SetName("ITSsuppSSDTrayCPUR");
xprof[0] = water->GetX(5);
yprof[0] = water->GetY(5);
xprof[1] = water->GetX(4);
xprof[5] = xprof[0];
yprof[5] = yprof[0] + kPoliUrethaneHeight;
- PUR->DefinePolygon(6, xprof, yprof);
- PUR->DefineSection(0, -kServicesWidth/2);
- PUR->DefineSection(1, kServicesWidth/2);
+ pur->DefinePolygon(6, xprof, yprof);
+ pur->DefineSection(0, -kServicesWidth/2);
+ pur->DefineSection(1, kServicesWidth/2);
// We have all shapes: now create the real volumes
trayWater->SetFillStyle(4000); // 0% transparent
TGeoVolume *trayPolyUr = new TGeoVolume("ITSsuppSSDSideCPolyUr",
- PUR, medPUR);
+ pur, medPUR);
trayPolyUr->SetVisibility(kTRUE);
trayPolyUr->SetLineColor(kGray); // Gray
//______________________________________________________________________
void AliITSv11GeometrySupport::CreateSDDForwardTraySideA(TGeoVolumeAssembly *tray,
- TGeoManager *mgr){
+ const TGeoManager *mgr){
//
// Creates the forward SDD tray on Side A (0872/G/D/01)
//
//______________________________________________________________________
TGeoVolumeAssembly* AliITSv11GeometrySupport::CreateSDDSSDTraysSideC(
- const char *trayName,
- TGeoManager *mgr){
+ const char *trayName,
+ const TGeoManager *mgr){
//
// Creates the SDD and SSD Trays on Side C which are supposedly identical
return cableTrayC;
}
+//______________________________________________________________________
+void AliITSv11GeometrySupport::ITSTPCSupports(TGeoVolume *moth,
+ const TGeoManager *mgr){
+//
+// Creates the elements suspending the ITS to the TPC and other fixed
+// elements used to hook the rails (0872/C and its daughters)
+//
+// Input:
+// moth : the TGeoVolume owing the volume structure
+// mgr : the GeoManager (default gGeoManager)
+// Output:
+//
+// Return:
+//
+// Created: 28 Oct 2010 Mario Sitta
+// Updated: 18 Feb 2011 Mario Sitta
+//
+// Technical data are taken from AutoCAD drawings, L.Simonetti technical
+// drawings and other (oral) information given by F.Tosello
+//
+
+ // Dimensions and positions of the half ring C2/C3 (0872/C/04)
+ const Double_t kRingCZPos = 733.000*fgkmm;
+ const Double_t kRingCZToTPC = 5.500*fgkmm;
+
+ const Double_t kRingCThick = 12.000*fgkmm;
+ const Double_t kRingCRmin = 565.000*fgkmm;
+ const Double_t kRingCRmax = 592.000*fgkmm;
+ const Double_t kRingCHeight = 560.000*fgkmm;
+ const Double_t kRingCXToInsert = 515.000*fgkmm;
+ const Double_t kRingCYToInsert = 113.000*fgkmm;
+
+ const Int_t kNumberOfRingPoints = 23; // N.points to approximate arc
+
+ // Dimensions of the forward upper hook (0872/C/09)
+ const Double_t kForwUpHookThick = 20.000*fgkmm;
+ const Double_t kForwUpHookRext = 590.000*fgkmm;
+ const Double_t kForwUpHookRint = 20.000*fgkmm;
+ const Double_t kForwUpHookHiTot = 89.000*fgkmm;
+ const Double_t kForwUpHookHiInt = 59.000*fgkmm;
+ const Double_t kForwUpHookWide = 96.000*fgkmm;
+ const Double_t kForwUpHookHalfBase = 25.000*fgkmm;
+ const Double_t kForwUpHookBaseCut = 10.000*fgkmm;
+ const Double_t kForwUpHookHoleWide = 25.000*fgkmm;
+ const Double_t kForwUpHookHoleHi = 22.500*fgkmm;
+ const Double_t kForwUpHookHoleBase = 5.000*fgkmm;
+ const Double_t kForwUpHookHoleR5 = 5.000*fgkmm;
+ const Double_t kForwUpHookHoleY = 8.000*fgkmm;
+ const Double_t kForwUpHookHollowHi = 35.000*fgkmm;
+ const Double_t kForwUpHookHollowWide= 5.000*fgkmm;
+
+ const Int_t kNumberOfForwUpHookPts = 11;
+ const Int_t kNumbOfForwUpHookHolePts= 5;
+
+ // Dimensions of the forward lower hook (0872/C/08)
+ const Double_t kForwLwHookThick = 20.000*fgkmm;
+ const Double_t kForwLwHookRext = 590.000*fgkmm;
+ const Double_t kForwLwHookRint = 20.000*fgkmm;
+ const Double_t kForwLwHookHiTot = 88.500*fgkmm;
+ const Double_t kForwLwHookWide = 96.000*fgkmm;
+ const Double_t kForwLwHookHalfBase = 25.000*fgkmm;
+ const Double_t kForwLwHookBaseCut = 10.000*fgkmm;
+ const Double_t kForwLwHookYToHollow = 3.500*fgkmm;
+ const Double_t kForwLwHookHoleR = 7.500*fgkmm;
+ const Double_t kForwLwHookHoleIntHi = 35.000*fgkmm;
+ const Double_t kForwLwHookHoleYPos = 13.500*fgkmm;
+ const Double_t kForwLwHookHollowHi = 62.000*fgkmm;
+ const Double_t kForwLwHookHollowWide= 5.000*fgkmm;
+
+ const Int_t kNumberOfForwLwHookPts = 11;
+ const Int_t kNumbOfForwLwHookHolePts= 7;
+
+ // Dimensions of the rear upper hook (0872/C/10)
+ const Double_t kRearUpHookThick = 15.000*fgkmm;
+ const Double_t kRearUpHookRext = 590.000*fgkmm;
+ const Double_t kRearUpHookRint = 20.000*fgkmm;
+ const Double_t kRearUpHookHiTot = 53.500*fgkmm;
+ const Double_t kRearUpHookHiInt = 23.500*fgkmm;
+ const Double_t kRearUpHookWide = 96.000*fgkmm;
+ const Double_t kRearUpHookHalfBase = 25.000*fgkmm;
+ const Double_t kRearUpHookHoleWide = 25.000*fgkmm;
+ const Double_t kRearUpHookHoleHi = 22.500*fgkmm;
+ const Double_t kRearUpHookHoleBase = 5.000*fgkmm;
+ const Double_t kRearUpHookHoleR5 = 5.000*fgkmm;
+ const Double_t kRearUpHookHoleY = 8.000*fgkmm;
+
+ const Int_t kNumberOfRearUpHookPts = 10;
+ const Int_t kNumbOfRearUpHookHolePts= 5;
+
+ // Dimensions of the forward lower hook (0872/C/11)
+ const Double_t kRearLwHookThick = 20.000*fgkmm;
+ const Double_t kRearLwHookRext = 590.000*fgkmm;
+ const Double_t kRearLwHookHiTot = 30.000*fgkmm;
+ const Double_t kRearLwHookWide = 96.000*fgkmm;
+
+ const Int_t kNumberOfRearLwHookPts = 3;
+
+ // Dimensions of the rear lower brackets (0872/C/16)
+ const Double_t kRearLwBracketThick = 15.000*fgkmm;
+ const Double_t kRearLwBracketHi1 = 42.000*fgkmm;
+ const Double_t kRearLwBracketHi2 = 12.000*fgkmm;
+ const Double_t kRearLwBracketWide1 = 34.000*fgkmm;
+ const Double_t kRearLwBracketWide2 = 10.000*fgkmm;
+// const Double_t kRearLwBracketR5 = 5.000*fgkmm
+
+ // Dimensions of the forward webcam supports (0872/C/V/01-03-04)
+ const Double_t kForwWebSStirrDep = 20.000*fgkmm;
+ const Double_t kForwWebSStirrLen1 = 15.000*fgkmm;
+ const Double_t kForwWebSStirrLen2 = 55.000*fgkmm;
+ const Double_t kForwWebSStirrLen3 = 10.000*fgkmm;
+ const Double_t kForwWebSStirrWide1 = 45.000*fgkmm;
+ const Double_t kForwWebSStirrWide2 = 38.000*fgkmm;
+ const Double_t kForwWebSStirrWide3 = 23.000*fgkmm;
+ const Double_t kForwWebTStirrThick = 5.000*fgkmm;
+ const Double_t kForwWebTStirrWide1 = 30.000*fgkmm;
+ const Double_t kForwWebTStirrWide2 = 10.000*fgkmm;
+ const Double_t kForwWebTStirrTotLen3= 58.500*fgkmm;
+ const Double_t kForwWebTStirrTotLen4= 36.000*fgkmm;
+ const Double_t kForwWebTStirrLen1 = 10.000*fgkmm;
+
+ // Dimensions of the forward and rear webcam clamps (0872/C/V/02)
+ const Double_t kFRWebClampThick = 10.000*fgkmm;
+ const Double_t kFRWebClampExtWide = 30.000*fgkmm;
+ const Double_t kFRWebClampIntWide = 18.000*fgkmm;
+ const Double_t kFRWebClampExtHi = 22.000*fgkmm;
+ const Double_t kFRWebClampIntHi = 17.000*fgkmm;
+
+ // Dimensions of the webcam itself
+ const Double_t kWebcamLength = 35.000*fgkmm;//ESTIMATED!!!
+
+ // Dimensions of the rear upper webcam supports (0872/C/V/05-06)
+ const Double_t kRearUpWebStirrWide = 76.000*fgkmm;
+ const Double_t kRearUpWebStirrDep = 15.000*fgkmm;
+ const Double_t kRearUpWebStirrThick = 5.000*fgkmm;
+ const Double_t kRearUpWebStirrH1 = 27.000*fgkmm;
+ const Double_t kRearUpWebStirrH2 = 32.000*fgkmm;
+ const Double_t kRearUpWebBarLen = 130.000*fgkmm;
+ const Double_t kRearUpWebBarHi = 20.000*fgkmm;
+ const Double_t kRearUpWebBarThick = 5.000*fgkmm;
+
+ // Dimensions of the upper wheel slides (0872/C/Z/00-01-02)
+ const Double_t kUpperSlideTotHeight = 93.500*fgkmm;
+ const Double_t kUpperSlideBlockHi = 62.500*fgkmm;
+ const Double_t kUpperSlideWidth = 36.000*fgkmm;
+ const Double_t kUpperSlideTotDepth = 51.000*fgkmm;
+ const Double_t kUpperSlideIntDepth = 36.000*fgkmm;
+ const Double_t kUpperSlideStubHi = 15.000*fgkmm;
+ const Double_t kUpperSlideStubDep = 8.000*fgkmm;
+ const Double_t kUpperSlideWheelHi = 18.500*fgkmm;
+ const Double_t kUpperSlideHoleRout = 11.000*fgkmm;
+ const Double_t kUpperSlideHoleRint1 = 9.000*fgkmm;
+ const Double_t kUpperSlideHoleRint2 = 11.500*fgkmm;
+ const Double_t kUpperSlideHoleH1 = 7.000*fgkmm;
+ const Double_t kUpperSlideHoleH2 = 46.000*fgkmm;
+ const Double_t kUpperSlideHoleH3 = 1.100*fgkmm;
+ const Double_t kUpperSlideHoleXPos = 20.000*fgkmm;
+ const Double_t kUpperSlidePinRmin = 4.000*fgkmm;
+ const Double_t kUpperSlidePinRmax = 6.000*fgkmm;
+ const Double_t kUpperSlidePinH1 = 7.000*fgkmm;
+ const Double_t kUpperSlidePinH2 = 46.000*fgkmm;
+ const Double_t kUpperSlidePinH3 = 25.500*fgkmm;
+
+ // Dimensions of the lower wheel slides (0872/C/W/00-01-02-03)
+ const Double_t kLowerSlideTotHeight = 80.000*fgkmm;
+ const Double_t kLowerSlideBlockHi = 28.000*fgkmm;
+ const Double_t kLowerSlideWidth = 36.000*fgkmm;
+ const Double_t kLowerSlideTotDepth = 60.000*fgkmm;
+ const Double_t kLowerSlideHoleRout = 9.500*fgkmm;
+ const Double_t kLowerSlideHoleRint = 4.700*fgkmm;
+ const Double_t kLowerSlideHoleH1 = 12.000*fgkmm;
+ const Double_t kLowerSlideNoseBase = 40.000*fgkmm;
+ const Double_t kLowerSlideNoseBasHi = 6.000*fgkmm;//Computed
+ const Double_t kLowerSlideNoseUpWid = 25.000*fgkmm;
+ const Double_t kLowerSlideNoseDepth = 10.000*fgkmm;
+ const Double_t kLowerSlidePinRmin = 3.000*fgkmm;
+ const Double_t kLowerSlidePinRmax = 4.000*fgkmm;
+ const Double_t kLowerSlidePinH1 = 12.000*fgkmm;
+ const Double_t kLowerSlidePinH2 = 10.000*fgkmm;
+
+ // Dimensions and positions of the C1/C2 rail stirrups (0872/C/01-02)
+ const Double_t kStirrCXPos = 759.000*fgkmm;
+ const Double_t kStirrCZPos = 1867.000*fgkmm;
+
+ const Double_t kStirrC12Thick = 15.000*fgkmm;
+ const Double_t kStirrC12TotLen = 314.000*fgkmm;
+ const Double_t kStirrC12BodyHalfHi = 95.000*fgkmm;
+ const Double_t kStirrC12BodyLen = 153.000*fgkmm;
+ const Double_t kStirrC12HeadLen = 50.000*fgkmm;
+ const Double_t kStirrC12HeadHalfHi = 165.000*fgkmm;
+ const Double_t kStirrC12HeadIntHi = 114.000*fgkmm;
+ const Double_t kStirrC12HeadIntLen = 45.000*fgkmm;
+ const Double_t kStirrC12TailLen = 14.000*fgkmm;
+ const Double_t kStirrC12R100 = 100.000*fgkmm;
+ const Double_t kStirrC12R50 = 50.000*fgkmm;
+ const Double_t kStirrC12R10 = 10.000*fgkmm;
+ const Double_t kStirrC12HeadAng = 40.000; // Degree
+
+ const Int_t kNumberOfStirrCPoints = 23;
+
+ // Dimensions and positions of the C5 rail stirrups (0872/C/05)
+ const Double_t kStirrC5BodyLen = 155.000*fgkmm;
+
+
+ // Local variables
+ Double_t xprof[2*kNumberOfStirrCPoints+1],yprof[2*kNumberOfStirrCPoints+1];
+ Double_t xpos, ypos, zpos, alpha;
+ Double_t xdummy, ydummy;
+
+
+ // First create all needed shapes
+
+ // The Supporting Ring (0872/C/04): a really complex Xtru
+ // to approximate the arc with a polyline
+ TGeoXtru *ringC2C3 = new TGeoXtru(2);
+
+ for (Int_t j=0; j<11; j++) { // The external arc
+ xprof[j] = kRingCRmax*SinD(90*j/10);
+ yprof[j] = kRingCRmax*CosD(90*j/10);
+ }
+
+ xprof[11] = kRingCRmin;
+ yprof[11] = yprof[10];
+
+ alpha = TMath::ASin(kRingCYToInsert/kRingCRmin); // Now the insert
+ xprof[12] = kRingCRmin*TMath::Cos(alpha/2);
+ yprof[12] = kRingCRmin*TMath::Sin(alpha/2);
+ xprof[13] = kRingCRmin*TMath::Cos(alpha);
+ yprof[13] = kRingCRmin*TMath::Sin(alpha);
+
+ xprof[14] = kRingCXToInsert;
+ yprof[14] = yprof[13];
+
+ alpha = TMath::ACos(kRingCXToInsert/kRingCRmin); // The insert ending angle
+ xprof[15] = kRingCRmin*TMath::Cos(alpha);
+ yprof[15] = kRingCRmin*TMath::Sin(alpha);
+
+ for (Int_t j=7; j>1; j--) { // The internal arc
+ xprof[23-j] = kRingCRmin*SinD(90*j/10);
+ yprof[23-j] = kRingCRmin*CosD(90*j/10);
+ }
+
+ alpha = TMath::ASin(kRingCHeight/kRingCRmin); // The angle till the notch
+ xprof[22] = kRingCRmin*TMath::Cos(alpha);
+ yprof[22] = kRingCRmin*TMath::Sin(alpha);
+
+ xprof[23] = xprof[0];
+ yprof[23] = yprof[22];
+
+ // We did the right side, now reflex on the left side
+ for (Int_t jp = 0; jp < 22; jp++) {
+ xprof[24+jp] = -xprof[23-1-jp];
+ yprof[24+jp] = yprof[23-1-jp];
+ }
+
+ // wow! now the actual Xtru
+ ringC2C3->DefinePolygon(2*kNumberOfRingPoints, xprof, yprof);
+ ringC2C3->DefineSection(0, 0);
+ ringC2C3->DefineSection(1, kRingCThick);
+
+ // The Forward Upper Hook (0872/C/09): a Composite Shape made of
+ // a really complex Xtru to approximate the arc with a polyline,
+ // another Xtru for the hole, and a BBox for the hollow
+ // The main body
+ TGeoXtru *forwUpHookMainBody = new TGeoXtru(2);
+ forwUpHookMainBody->SetName("ITSforwUpHookMainBody");
+
+ xprof[ 0] = kForwUpHookHalfBase - kForwUpHookBaseCut;
+ yprof[ 0] = kForwUpHookRext - kForwUpHookHiTot;
+ xprof[ 1] = kForwUpHookHalfBase;
+ yprof[ 1] = yprof[0] + kForwUpHookBaseCut;
+ xprof[ 2] = xprof[1];
+ yprof[ 2] = yprof[0] + (kForwUpHookHiInt - kForwUpHookRint);
+ for (Int_t j=1; j<6; j++) {
+ xprof[2+j] = xprof[2] + kForwUpHookRint*(1 - CosD(90*j/5));
+ yprof[2+j] = yprof[2] + kForwUpHookRint*SinD(90*j/5);
+ }
+ xprof[ 8] = kForwUpHookWide/2;
+ yprof[ 8] = yprof[7];
+ xprof[ 9] = xprof[8];
+ alpha = TMath::ASin(0.5*kForwUpHookWide/kForwUpHookRext);
+ yprof[ 9] = kForwUpHookRext*TMath::Cos(alpha);
+ xprof[10] = kForwUpHookRext*TMath::Sin(alpha/2);
+ yprof[10] = kForwUpHookRext*TMath::Cos(alpha/2);
+ xprof[11] = 0;
+ yprof[11] = kForwUpHookRext;
+
+ // We did the right side, now reflex on the left side
+ for (Int_t jp = 0; jp < kNumberOfForwUpHookPts; jp++) {
+ xprof[12+jp] = -xprof[10-jp];
+ yprof[12+jp] = yprof[10-jp];
+ }
+
+ // Now the actual Xtru
+ forwUpHookMainBody->DefinePolygon(2*kNumberOfForwUpHookPts+1, xprof, yprof);
+ forwUpHookMainBody->DefineSection(0, 0);
+ forwUpHookMainBody->DefineSection(1, kForwUpHookThick);
+
+ // The hole
+ TGeoXtru *forwUpHookHole = new TGeoXtru(2);
+ forwUpHookHole->SetName("ITSforwUpHookHole");
+
+ xprof[0] = kForwUpHookHoleBase/2;
+ yprof[0] = forwUpHookMainBody->GetY(0) + kForwUpHookHoleY;
+ xprof[1] = kForwUpHookHoleWide/2;
+ yprof[1] = yprof[0] + (xprof[1] - xprof[0]); // Go at 45deg
+ xprof[2] = xprof[1];
+ yprof[2] = yprof[0] + kForwUpHookHoleHi - kForwUpHookHoleR5;
+ xprof[3] = xprof[2] - kForwUpHookHoleR5*(1 - CosD(45));
+ yprof[3] = yprof[2] + kForwUpHookHoleR5*SinD(45);
+ xprof[4] = xprof[2] - kForwUpHookHoleR5;
+ yprof[4] = yprof[0] + kForwUpHookHoleHi;
+
+ // We did the right side, now reflex on the left side
+ for (Int_t jp = 0; jp < kNumbOfForwUpHookHolePts; jp++) {
+ xprof[5+jp] = -xprof[4-jp];
+ yprof[5+jp] = yprof[4-jp];
+ }
+
+ // Now the actual Xtru
+ forwUpHookHole->DefinePolygon(2*kNumbOfForwUpHookHolePts, xprof, yprof);
+ forwUpHookHole->DefineSection(0, -0.1);
+ forwUpHookHole->DefineSection(1, kForwUpHookThick+0.1);
+
+ // The hollow
+ TGeoBBox *forwUpHookHollow = new TGeoBBox(2.1 *kForwUpHookHalfBase,
+ 0.55*kForwUpHookHollowHi,
+ 0.55*kForwUpHookHollowWide);
+ forwUpHookHollow->SetName("ITSforwUpHookHollow");
+
+ TGeoTranslation *forwUpHookHollPos = new TGeoTranslation(0.,
+ forwUpHookMainBody->GetY(0) + 0.5*kForwUpHookHollowHi,
+ forwUpHookMainBody->GetZ(1) - 0.5*kForwUpHookHollowWide);
+ forwUpHookHollPos->SetName("ITSforwUpHookHollPos");
+ forwUpHookHollPos->RegisterYourself();
+
+ // Finally the actual shape: a CompositeShape
+ TGeoCompositeShape *forwUpHookShape = new TGeoCompositeShape("ITSforwUpHookMainBody-ITSforwUpHookHole-ITSforwUpHookHollow:ITSforwUpHookHollPos");
+
+ // The Forward Lower Hook (0872/C/08): a Composite Shape made of
+ // a really complex Xtru to approximate the arc with a polyline,
+ // another Xtru for the hole, and a BBox for the hollow
+ // The main body
+ TGeoXtru *forwLwHookMainBody = new TGeoXtru(2);
+ forwLwHookMainBody->SetName("ITSforwLwHookMainBody");
+
+ xprof[ 0] = kForwLwHookHalfBase - kForwLwHookBaseCut;
+ yprof[ 0] = kForwLwHookRext - kForwLwHookHiTot;
+ xprof[ 1] = kForwLwHookHalfBase;
+ yprof[ 1] = yprof[0] + kForwLwHookBaseCut;
+ xprof[ 2] = xprof[1];
+ yprof[ 2] = yprof[0] + (kForwLwHookHollowHi - kForwLwHookYToHollow
+ - kForwLwHookRint);
+ for (Int_t j=1; j<6; j++) {
+ xprof[2+j] = xprof[2] + kForwLwHookRint*(1 - CosD(90*j/5));
+ yprof[2+j] = yprof[2] + kForwLwHookRint*SinD(90*j/5);
+ }
+ xprof[ 8] = kForwLwHookWide/2;
+ yprof[ 8] = yprof[7];
+ xprof[ 9] = xprof[8];
+ alpha = TMath::ASin(0.5*kForwLwHookWide/kForwLwHookRext);
+ yprof[ 9] = kForwLwHookRext*TMath::Cos(alpha);
+ xprof[10] = kForwLwHookRext*TMath::Sin(alpha/2);
+ yprof[10] = kForwLwHookRext*TMath::Cos(alpha/2);
+ xprof[11] = 0;
+ yprof[11] = kForwLwHookRext;
+
+ // We did the right side, now reflex on the left side
+ for (Int_t jp = 0; jp < kNumberOfForwLwHookPts; jp++) {
+ xprof[12+jp] = -xprof[10-jp];
+ yprof[12+jp] = yprof[10-jp];
+ }
+
+ // Now the actual Xtru
+ forwLwHookMainBody->DefinePolygon(2*kNumberOfForwLwHookPts+1, xprof, yprof);
+ forwLwHookMainBody->DefineSection(0, 0);
+ forwLwHookMainBody->DefineSection(1, kForwLwHookThick);
+
+ // The hole
+ TGeoXtru *forwLwHookHole = new TGeoXtru(2);
+ forwLwHookHole->SetName("ITSforwLwHookHole");
+
+ xprof[0] = 0;
+ yprof[0] = forwLwHookMainBody->GetY(0) + kForwLwHookHoleYPos
+ - kForwLwHookHoleR;
+ for (Int_t j=1; j<3; j++) {
+ xprof[0+j] = xprof[0] + kForwLwHookHoleR*SinD(90*j/3);
+ yprof[0+j] = yprof[0] + kForwLwHookHoleR*(1 - CosD(90*j/3));
+ }
+ xprof[3] = xprof[0] + kForwLwHookHoleR;
+ yprof[3] = yprof[0] + kForwLwHookHoleR;
+ xprof[4] = xprof[3];
+ yprof[4] = yprof[3] + kForwLwHookHoleIntHi;
+ for (Int_t j=1; j<3; j++) {
+ xprof[4+j] = xprof[4] - kForwLwHookHoleR*(1 - CosD(90*j/3));
+ yprof[4+j] = yprof[4] + kForwLwHookHoleR*SinD(90*j/3);
+ }
+ xprof[7] = xprof[0];
+ yprof[7] = yprof[4] + kForwLwHookHoleR;
+
+ // We did the right side, now reflex on the left side
+ for (Int_t jp = 0; jp < kNumbOfForwLwHookHolePts-1; jp++) {
+ xprof[8+jp] = -xprof[6-jp];
+ yprof[8+jp] = yprof[6-jp];
+ }
+
+ // Now the actual Xtru
+ forwLwHookHole->DefinePolygon(2*kNumbOfForwLwHookHolePts, xprof, yprof);
+ forwLwHookHole->DefineSection(0, -0.1);
+ forwLwHookHole->DefineSection(1, kForwLwHookThick+0.1);
+
+ // The hollow
+ TGeoBBox *forwLwHookHollow = new TGeoBBox(2.1 *kForwLwHookHalfBase,
+ 0.55*kForwLwHookHollowHi,
+ 0.55*kForwLwHookHollowWide);
+ forwLwHookHollow->SetName("ITSforwLwHookHollow");
+
+ TGeoTranslation *forwLwHookHollPos = new TGeoTranslation(0.,
+ forwLwHookMainBody->GetY(0) + 0.5*kForwLwHookHollowHi,
+ forwLwHookMainBody->GetZ(1) - 0.5*kForwLwHookHollowWide);
+ forwLwHookHollPos->SetName("ITSforwLwHookHollPos");
+ forwLwHookHollPos->RegisterYourself();
+
+ // Finally the actual shape: a CompositeShape
+ TGeoCompositeShape *forwLwHookShape = new TGeoCompositeShape("ITSforwLwHookMainBody-ITSforwLwHookHole-ITSforwLwHookHollow:ITSforwLwHookHollPos");
+
+ // The Rear Upper Hook (0872/C/10): a Composite Shape made of
+ // a really complex Xtru to approximate the arc with a polyline,
+ // and another Xtru for the hole
+ // The main body
+ TGeoXtru *rearUpHookMainBody = new TGeoXtru(2);
+ rearUpHookMainBody->SetName("ITSrearUpHookMainBody");
+
+ xprof[0] = kRearUpHookHalfBase;
+ yprof[0] = kRearUpHookRext - kRearUpHookHiTot;
+ xprof[1] = xprof[0];
+ yprof[1] = yprof[0] + (kRearUpHookHiInt - kRearUpHookRint);
+ for (Int_t j=1; j<6; j++) {
+ xprof[1+j] = xprof[1] + kRearUpHookRint*(1 - CosD(90*j/5));
+ yprof[1+j] = yprof[1] + kRearUpHookRint*SinD(90*j/5);
+ }
+ xprof[ 7] = kRearUpHookWide/2;
+ yprof[ 7] = yprof[5];
+ xprof[ 8] = xprof[7];
+ alpha = TMath::ASin(0.5*kRearUpHookWide/kRearUpHookRext);
+ yprof[ 8] = kRearUpHookRext*TMath::Cos(alpha);
+ xprof[ 9] = kRearUpHookRext*TMath::Sin(alpha/2);
+ yprof[ 9] = kRearUpHookRext*TMath::Cos(alpha/2);
+ xprof[10] = 0;
+ yprof[10] = kRearUpHookRext;
+
+ // We did the right side, now reflex on the left side
+ for (Int_t jp = 0; jp < kNumberOfRearUpHookPts; jp++) {
+ xprof[11+jp] = -xprof[9-jp];
+ yprof[11+jp] = yprof[9-jp];
+ }
+
+ // Now the actual Xtru
+ rearUpHookMainBody->DefinePolygon(2*kNumberOfRearUpHookPts+1, xprof, yprof);
+ rearUpHookMainBody->DefineSection(0, 0);
+ rearUpHookMainBody->DefineSection(1, kRearUpHookThick);
+
+ // The hole
+ TGeoXtru *rearUpHookHole = new TGeoXtru(2);
+ rearUpHookHole->SetName("ITSrearUpHookHole");
+
+ xprof[0] = kRearUpHookHoleBase/2;
+ yprof[0] = rearUpHookMainBody->GetY(0) + kRearUpHookHoleY;
+ xprof[1] = kRearUpHookHoleWide/2;
+ yprof[1] = yprof[0] + (xprof[1] - xprof[0]); // Go at 45deg
+ xprof[2] = xprof[1];
+ yprof[2] = yprof[0] + kRearUpHookHoleHi - kRearUpHookHoleR5;
+ xprof[3] = xprof[2] - kRearUpHookHoleR5*(1 - CosD(45));
+ yprof[3] = yprof[2] + kRearUpHookHoleR5*SinD(45);
+ xprof[4] = xprof[2] - kRearUpHookHoleR5;
+ yprof[4] = yprof[0] + kRearUpHookHoleHi;
+
+ // We did the right side, now reflex on the left side
+ for (Int_t jp = 0; jp < kNumbOfRearUpHookHolePts; jp++) {
+ xprof[5+jp] = -xprof[4-jp];
+ yprof[5+jp] = yprof[4-jp];
+ }
+
+ // Now the actual Xtru
+ rearUpHookHole->DefinePolygon(2*kNumbOfRearUpHookHolePts, xprof, yprof);
+ rearUpHookHole->DefineSection(0, -0.1);
+ rearUpHookHole->DefineSection(1, kRearUpHookThick+0.1);
+
+ // Finally the actual shape: a CompositeShape
+ TGeoCompositeShape *rearUpHookShape = new TGeoCompositeShape("ITSrearUpHookMainBody-ITSrearUpHookHole");
+
+ // The Rear Lower Hook (0872/C/11): a Xtru
+ TGeoXtru *rearLwHookShape = new TGeoXtru(2);
+ rearLwHookShape->SetName("ITSrearLwHookShape");
+
+ xprof[0] = kRearLwHookWide/2;
+ yprof[0] = kRearLwHookRext - kRearLwHookHiTot;
+ xprof[1] = xprof[0];
+ alpha = TMath::ASin(0.5*kRearLwHookWide/kRearLwHookRext);
+ yprof[1] = kRearLwHookRext*TMath::Cos(alpha);
+ xprof[2] = kRearLwHookRext*TMath::Sin(alpha/2);
+ yprof[2] = kRearLwHookRext*TMath::Cos(alpha/2);
+ xprof[3] = 0;
+ yprof[3] = kRearLwHookRext;
+
+ // We did the right side, now reflex on the left side
+ for (Int_t jp = 0; jp < kNumberOfRearLwHookPts; jp++) {
+ xprof[4+jp] = -xprof[2-jp];
+ yprof[4+jp] = yprof[2-jp];
+ }
+
+ // Now the actual Xtru
+ rearLwHookShape->DefinePolygon(2*kNumberOfRearLwHookPts+1, xprof, yprof);
+ rearLwHookShape->DefineSection(0, 0);
+ rearLwHookShape->DefineSection(1, kRearLwHookThick);
+
+ // The Rear Lower Bracket (0872/C/16): a Xtru
+ TGeoXtru *rearLwBrackShape = new TGeoXtru(2);
+ rearLwBrackShape->SetName("ITSrearLwBrackShape");
+
+ xprof[0] = 0;
+ yprof[0] = 0;
+ xprof[1] = xprof[0] + kRearLwBracketWide1 - kRearLwBracketWide2;
+ yprof[1] = yprof[0];
+ xprof[2] = xprof[1];
+ yprof[2] = yprof[0] + kRearLwBracketHi2;
+ xprof[3] = xprof[2] - kRearLwBracketWide1;
+ yprof[3] = yprof[2];
+ xprof[4] = xprof[3];
+ yprof[4] = yprof[3] - kRearLwBracketHi1;
+ xprof[5] = xprof[0];
+ yprof[5] = yprof[4];
+
+ rearLwBrackShape->DefinePolygon(6, xprof, yprof);
+ rearLwBrackShape->DefineSection(0,-kRearLwBracketThick/2);
+ rearLwBrackShape->DefineSection(1, kRearLwBracketThick/2);
+
+ // The Forward S-shaped Stirrup for the webcam (0872/C/V/01): a Xtru
+ TGeoXtru *forwWebSStirrSh = new TGeoXtru(2);
+
+ xprof[0] = 0;
+ yprof[0] = 0;
+ xprof[1] = xprof[0] + kForwWebSStirrLen1;
+ yprof[1] = yprof[0];
+ xprof[2] = xprof[1];
+ yprof[2] = yprof[1] + kForwWebSStirrWide1;
+ xprof[3] = xprof[0] - kForwWebSStirrLen2 + kForwWebSStirrLen3;
+ yprof[3] = yprof[2];
+ xprof[4] = xprof[3];
+ yprof[4] = yprof[3] + kForwWebSStirrWide3;
+ xprof[5] = xprof[4] - kForwWebSStirrLen3;
+ yprof[5] = yprof[4];
+ xprof[6] = xprof[5];
+ yprof[6] = yprof[0] + kForwWebSStirrWide2;
+ xprof[7] = xprof[0];
+ yprof[7] = yprof[6];
+
+ forwWebSStirrSh->DefinePolygon(8, xprof, yprof);
+ forwWebSStirrSh->DefineSection(0,-kForwWebSStirrDep/2);
+ forwWebSStirrSh->DefineSection(1, kForwWebSStirrDep/2);
+
+ // The Forward T-shaped Stirrups for the webcam (0872/C/V/03-04): two Xtru
+ TGeoXtru *forwWebTStirr3Sh = new TGeoXtru(2);
+
+ xprof[0] = -kForwWebTStirrWide2/2;
+ yprof[0] = 0;
+ xprof[1] = -kForwWebTStirrWide1/2;
+ yprof[1] = yprof[0];
+ xprof[2] = xprof[1];
+ yprof[2] = yprof[1] - kForwWebTStirrLen1;
+ xprof[3] =-xprof[2];
+ yprof[3] = yprof[2];
+ xprof[4] = xprof[3];
+ yprof[4] = yprof[1];
+ xprof[5] =-xprof[0];
+ yprof[5] = yprof[4];
+ xprof[6] = xprof[5];
+ yprof[6] = kForwWebTStirrTotLen3 - kForwWebTStirrLen1;
+ xprof[7] = xprof[0];
+ yprof[7] = yprof[6];
+
+ forwWebTStirr3Sh->DefinePolygon(8, xprof, yprof);
+ forwWebTStirr3Sh->DefineSection(0, 0);
+ forwWebTStirr3Sh->DefineSection(1, kForwWebTStirrThick);
+
+ TGeoXtru *forwWebTStirr4Sh = new TGeoXtru(2);
+
+ yprof[6] = kForwWebTStirrTotLen4 - kForwWebTStirrLen1;
+ yprof[7] = yprof[6];
+
+ forwWebTStirr4Sh->DefinePolygon(8, xprof, yprof);
+ forwWebTStirr4Sh->DefineSection(0, 0);
+ forwWebTStirr4Sh->DefineSection(1, kForwWebTStirrThick);
+
+ // The Forward and Rear clamp for the webcam (0872/C/V/02): a Xtru
+ TGeoXtru *frWebClampSh = new TGeoXtru(2);
+
+ xprof[0] = kFRWebClampIntWide/2;
+ yprof[0] = kFRWebClampIntHi;
+ xprof[1] = xprof[0];
+ yprof[1] = 0;
+ xprof[2] = kFRWebClampExtWide/2;
+ yprof[2] = yprof[1];
+ xprof[3] = xprof[2];
+ yprof[3] = kFRWebClampExtHi;
+ for (Int_t jp = 0; jp < 4; jp++) {
+ xprof[4+jp] = -xprof[3-jp];
+ yprof[4+jp] = yprof[3-jp];
+ }
+
+ frWebClampSh->DefinePolygon(8, xprof, yprof);
+ frWebClampSh->DefineSection(0,-kFRWebClampThick/2);
+ frWebClampSh->DefineSection(1, kFRWebClampThick/2);
+
+ // The Rear Upper Stirrup for the webcam (0872/C/V/05): a Xtru
+ TGeoXtru *upWebStirrSh = new TGeoXtru(2);
+
+ xprof[0] = 0;
+ yprof[0] = 0;
+ xprof[1] = xprof[0] - (kRearUpWebStirrWide - 2*kRearUpWebStirrThick);
+ yprof[1] = yprof[0];
+ xprof[2] = xprof[1];
+ yprof[2] = yprof[1] + (kRearUpWebStirrH1 - kRearUpWebStirrThick);
+ xprof[3] = xprof[2] - kRearUpWebStirrThick;
+ yprof[3] = yprof[2];
+ xprof[4] = xprof[3];
+ yprof[4] = yprof[3] - kRearUpWebStirrH1;
+ xprof[5] = xprof[4] + kRearUpWebStirrWide;
+ yprof[5] = yprof[4];
+ xprof[6] = xprof[5];
+ yprof[6] = yprof[5] + kRearUpWebStirrH2;
+ xprof[7] = xprof[0];
+ yprof[7] = yprof[6];
+
+ upWebStirrSh->DefinePolygon(8, xprof, yprof);
+ upWebStirrSh->DefineSection(0,-kRearUpWebStirrDep/2);
+ upWebStirrSh->DefineSection(1, kRearUpWebStirrDep/2);
+
+ // The Rear Upper Bar for the webcam (0872/C/V/06): a BBox
+ TGeoBBox *upRearWebBarSh = new TGeoBBox(kRearUpWebBarLen/2,
+ kRearUpWebBarHi/2,
+ kRearUpWebBarThick/2);
+
+ // The Webcam: a BBox
+ TGeoBBox *webcamShape = new TGeoBBox(kFRWebClampIntWide/2,
+ kWebcamLength/2,
+ kFRWebClampIntHi/2);
+
+ // The Upper Wheel Slide (0872/C/Z/00-01-02)
+ // A mother volume of air (to avoid assembly) contains the Alluminum block
+ // (a Composite Shape: a Xtru and a Pcon for the hole) and the Steel pin
+ // (a Pcon) (The wheels are approximated as part of the block itself)
+ // The Air mother volume
+ TGeoXtru *upSlideAirSh = new TGeoXtru(2);
+ upSlideAirSh->SetName("ITSupperSlideAirShape");
+
+ xprof[0] = 0;
+ yprof[0] = 0;
+ xprof[1] = xprof[0];
+ yprof[1] = kUpperSlideBlockHi + kUpperSlideStubHi - kUpperSlideWheelHi;
+ xprof[2] = xprof[1] - kUpperSlideIntDepth;
+ yprof[2] = yprof[1];
+ xprof[3] = xprof[2];
+ yprof[3] = yprof[2] - kUpperSlideTotHeight;
+ xprof[4] = xprof[3] + kUpperSlideTotDepth;
+ yprof[4] = yprof[3];
+ xprof[5] = xprof[4];
+ yprof[5] = yprof[0];
+
+ upSlideAirSh->DefinePolygon(6, xprof, yprof);
+ upSlideAirSh->DefineSection(0,-kUpperSlideWidth/2);
+ upSlideAirSh->DefineSection(1, kUpperSlideWidth/2);
+
+ // The (filled) Aluminum block: a Xtru
+ TGeoXtru *upSlideAluSh = new TGeoXtru(2);
+ upSlideAluSh->SetName("ITSupperSlideAluShape");
+
+ xprof[0] = upSlideAirSh->GetX(0);
+ yprof[0] = upSlideAirSh->GetY(0);
+ xprof[1] = upSlideAirSh->GetX(1);
+ yprof[1] = upSlideAirSh->GetY(1);
+ xprof[2] = xprof[1] - kUpperSlideStubDep;
+ yprof[2] = yprof[1];
+ xprof[3] = xprof[2];
+ yprof[3] = yprof[2] - kUpperSlideStubHi;
+ xprof[4] = upSlideAirSh->GetX(2);
+ yprof[4] = yprof[3];
+ xprof[5] = xprof[4];
+ yprof[5] = yprof[4] - kUpperSlideBlockHi;
+ xprof[6] = upSlideAirSh->GetX(5);
+ yprof[6] = yprof[5];
+ xprof[7] = xprof[6];
+ yprof[7] = yprof[0];
+
+ upSlideAluSh->DefinePolygon(8, xprof, yprof);
+ upSlideAluSh->DefineSection(0, upSlideAirSh->GetZ(0));
+ upSlideAluSh->DefineSection(1, upSlideAirSh->GetZ(1));
+
+ // The cylindrical hole in the block; a Pcon
+ TGeoPcon *upSlideHoleSh = new TGeoPcon(0, 360, 10);
+ upSlideHoleSh->SetName("ITSupperSlideHoleShape");
+
+ zpos = upSlideAluSh->GetY(5);
+ upSlideHoleSh->DefineSection(0, zpos-0.1, 0, kUpperSlideHoleRout);
+ zpos += (kUpperSlideBlockHi - kUpperSlideHoleH3 - kUpperSlideHoleH2
+ - 2*kUpperSlideHoleH1);
+ upSlideHoleSh->DefineSection(1, zpos, 0, kUpperSlideHoleRout);
+ upSlideHoleSh->DefineSection(2, zpos, 0, kUpperSlideHoleRint2);
+ zpos += kUpperSlideHoleH3;
+ upSlideHoleSh->DefineSection(3, zpos, 0, kUpperSlideHoleRint2);
+ upSlideHoleSh->DefineSection(4, zpos, 0, kUpperSlideHoleRout);
+ zpos += kUpperSlideHoleH1;
+ upSlideHoleSh->DefineSection(5, zpos, 0, kUpperSlideHoleRout);
+ upSlideHoleSh->DefineSection(6, zpos, 0, kUpperSlideHoleRint1);
+ zpos += kUpperSlideHoleH2;
+ upSlideHoleSh->DefineSection(7, zpos, 0, kUpperSlideHoleRint1);
+ upSlideHoleSh->DefineSection(8, zpos, 0, kUpperSlideHoleRout);
+ zpos += kUpperSlideHoleH1;
+ upSlideHoleSh->DefineSection(9, zpos+0.1, 0, kUpperSlideHoleRout);
+
+ TGeoCombiTrans *upSlideHolePos = new TGeoCombiTrans(-kUpperSlideHoleXPos,0,0,
+ new TGeoRotation("",0,-90,0) );
+ upSlideHolePos->SetName("ITSupperSlideHolePos");
+ upSlideHolePos->RegisterYourself();
+
+ // The actual block: a CompositeShape
+ TGeoCompositeShape *upSlideBlockSh = new TGeoCompositeShape("ITSupperSlideAluShape-ITSupperSlideHoleShape:ITSupperSlideHolePos");
+
+ // The Steel pin in the block; a Pcon
+ TGeoPcon *upSlidePinSh = new TGeoPcon(0, 360, 6);
+ upSlidePinSh->SetName("ITSupperSlidePinShape");
+
+ zpos = upSlideAluSh->GetY(5) - (kUpperSlidePinH1 + kUpperSlidePinH2
+ + kUpperSlidePinH3 - kUpperSlideBlockHi);
+ upSlidePinSh->DefineSection(0, zpos, 0, kUpperSlidePinRmin);
+ zpos += kUpperSlidePinH3;
+ upSlidePinSh->DefineSection(1, zpos, 0, kUpperSlidePinRmin);
+ upSlidePinSh->DefineSection(2, zpos, 0, kUpperSlidePinRmax);
+ zpos += kUpperSlidePinH2;
+ upSlidePinSh->DefineSection(3, zpos, 0, kUpperSlidePinRmax);
+ upSlidePinSh->DefineSection(4, zpos, 0, kUpperSlidePinRmin);
+ zpos += kUpperSlidePinH1;
+ upSlidePinSh->DefineSection(5, zpos, 0, kUpperSlidePinRmin);
+
+ // The Lower Wheel Slide (0872/C/W/00-01-02-03)
+ // A mother volume of air (to avoid assembly) contains the Alluminum block
+ // (a Composite Shape: a Xtru and a Pcon for the hole), the Alluminum nose
+ // (a Xtru) and the Steel pin (a Pcon)
+ // (The wheels are approximated as part of the block itself)
+ // The Air mother volume
+ TGeoXtru *lwSlideAirSh = new TGeoXtru(2);
+ lwSlideAirSh->SetName("ITSlowerSlideAirShape");
+
+ xprof[0] = 0;
+ yprof[0] = 0;
+ xprof[1] = xprof[0] + kLowerSlideTotDepth/2 - kLowerSlideNoseBase/2;
+ yprof[1] = yprof[0];
+ xprof[2] = xprof[1];
+ yprof[2] = yprof[1] - (kLowerSlideBlockHi + kLowerSlidePinH2);
+ xprof[3] = xprof[2] - kLowerSlideTotDepth;
+ yprof[3] = yprof[2];
+ xprof[4] = xprof[3];
+ yprof[4] = yprof[3] + kLowerSlidePinH2 + kLowerSlideTotHeight;
+ xprof[5] = xprof[0];
+ yprof[5] = yprof[4];
+
+ lwSlideAirSh->DefinePolygon(6, xprof, yprof);
+ lwSlideAirSh->DefineSection(0,-kLowerSlideWidth/2);
+ lwSlideAirSh->DefineSection(1, kLowerSlideWidth/2);
+
+ // The (filled) Aluminum block: a Xtru
+ TGeoXtru *lwSlideAluSh = new TGeoXtru(2);
+ lwSlideAluSh->SetName("ITSlowerSlideAluShape");
+
+ xprof[0] = lwSlideAirSh->GetX(0);
+ yprof[0] = lwSlideAirSh->GetY(0);
+ xprof[1] = lwSlideAirSh->GetX(1);
+ yprof[1] = lwSlideAirSh->GetY(1);
+ xprof[2] = xprof[1];
+ yprof[2] = yprof[1] - kLowerSlideBlockHi;
+ xprof[3] = lwSlideAirSh->GetX(3);
+ yprof[3] = yprof[2];
+ xprof[4] = xprof[3];
+ yprof[4] = yprof[3] + kLowerSlideBlockHi;
+ xprof[5] = xprof[4] + kLowerSlideTotDepth/2;
+ yprof[5] = yprof[4];
+ xprof[6] = xprof[5];
+ yprof[6] = lwSlideAirSh->GetY(4);
+ xprof[7] = xprof[0];
+ yprof[7] = yprof[6];
+
+ lwSlideAluSh->DefinePolygon(8, xprof, yprof);
+ lwSlideAluSh->DefineSection(0, lwSlideAirSh->GetZ(0));
+ lwSlideAluSh->DefineSection(1, lwSlideAirSh->GetZ(1));
+
+ // The cylindrical hole in the block; a Pcon
+ TGeoPcon *lwSlideHoleSh = new TGeoPcon(0, 360, 4);
+ lwSlideHoleSh->SetName("ITSlowerSlideHoleShape");
+
+ zpos = lwSlideAluSh->GetY(2);
+ lwSlideHoleSh->DefineSection(0, zpos-0.1, 0, kLowerSlideHoleRout);
+ zpos += kLowerSlideHoleH1;
+ lwSlideHoleSh->DefineSection(1, zpos, 0, kLowerSlideHoleRout);
+ lwSlideHoleSh->DefineSection(2, zpos, 0, kLowerSlideHoleRint);
+ zpos = lwSlideAluSh->GetY(4);
+ lwSlideHoleSh->DefineSection(3, zpos, 0, kLowerSlideHoleRint);
+
+ TGeoCombiTrans *lwSlideHolePos = new TGeoCombiTrans(lwSlideAluSh->GetX(5),
+ 0, 0,
+ new TGeoRotation("",0,-90,0) );
+ lwSlideHolePos->SetName("ITSlowerSlideHolePos");
+ lwSlideHolePos->RegisterYourself();
+
+ // The actual block: a CompositeShape
+ TGeoCompositeShape *lwSlideBlockSh = new TGeoCompositeShape("ITSlowerSlideAluShape-ITSlowerSlideHoleShape:ITSlowerSlideHolePos");
+
+ // The Aluminum nose: a Xtru
+ TGeoXtru *lwSlideNoseSh = new TGeoXtru(2);
+ lwSlideNoseSh->SetName("ITSlowerSlideNoseShape");
+
+ xprof[0] = lwSlideAluSh->GetX(5);
+ yprof[0] = lwSlideAluSh->GetY(5);
+ xprof[1] = xprof[0] - kLowerSlideNoseBase/2;
+ yprof[1] = yprof[0];
+ xprof[2] = xprof[1];
+ yprof[2] = yprof[1] + kLowerSlideNoseBasHi;
+ xprof[3] = lwSlideAluSh->GetX(0) - kLowerSlideNoseUpWid;
+ yprof[3] = lwSlideAluSh->GetY(6);
+ xprof[4] = xprof[0];
+ yprof[4] = yprof[3];
+
+ lwSlideNoseSh->DefinePolygon(5, xprof, yprof);
+ lwSlideNoseSh->DefineSection(0,-kLowerSlideNoseDepth/2);
+ lwSlideNoseSh->DefineSection(1, kLowerSlideNoseDepth/2);
+
+ // The Steel pin in the block; a Pcon
+ TGeoPcon *lwSlidePinSh = new TGeoPcon(0, 360, 4);
+ lwSlidePinSh->SetName("ITSlowerSlidePinShape");
+
+ zpos = lwSlideAirSh->GetY(2);
+ lwSlidePinSh->DefineSection(0, zpos, 0, kLowerSlidePinRmax);
+ zpos += kLowerSlidePinH2;
+ lwSlidePinSh->DefineSection(1, zpos, 0, kLowerSlidePinRmax);
+ lwSlidePinSh->DefineSection(2, zpos, 0, kLowerSlidePinRmin);
+ zpos += kLowerSlidePinH1;
+ lwSlidePinSh->DefineSection(3, zpos, 0, kLowerSlidePinRmin);
+
+ // The Stirrup on the Muon side (0872/C/01-02): a really complex Xtru
+ // to approximate arcs with polylines
+ TGeoXtru *stirrupC1C2Sh = new TGeoXtru(2);
+
+ for (Int_t j=0; j<11; j++) { // The internal arc
+ xprof[j] = kStirrC12R50*(1 - CosD(90*j/10));
+ yprof[j] = kStirrC12R50*SinD(90*j/10);
+ }
+
+ xprof[11] = xprof[10] + kStirrC12TailLen;
+ yprof[11] = yprof[10];
+ xprof[12] = xprof[11];
+ yprof[12] = kStirrC12BodyHalfHi;
+ xprof[13] = xprof[12] - kStirrC12BodyLen;
+ yprof[13] = yprof[12];
+
+ xprof[17] = xprof[12] - kStirrC12TotLen + kStirrC12HeadLen;
+ yprof[17] = kStirrC12HeadHalfHi;
+ IntersectCircle(-TanD(kStirrC12HeadAng), xprof[17], yprof[17],
+ kStirrC12R100, xprof[13], yprof[13]+kStirrC12R100,
+ xprof[16], yprof[16], xdummy, ydummy);
+ alpha = TMath::ASin((xprof[13]-xprof[16])/kStirrC12R100);
+ xprof[14] = xprof[13] - kStirrC12R100*TMath::Sin(alpha/3);
+ yprof[14] = yprof[13] + kStirrC12R100*(1 - TMath::Cos(alpha/3));
+ xprof[15] = xprof[13] - kStirrC12R100*TMath::Sin(2*alpha/3);
+ yprof[15] = yprof[13] + kStirrC12R100*(1 - TMath::Cos(2*alpha/3));
+
+ xprof[18] = xprof[17] - kStirrC12HeadLen;
+ yprof[18] = yprof[17];
+ xprof[19] = xprof[18];
+ yprof[19] = kStirrC12HeadIntHi;
+ xprof[20] = xprof[19] + kStirrC12HeadIntLen - kStirrC12R10;
+ yprof[20] = yprof[19];
+ for (Int_t j=1; j<4; j++) {
+ xprof[20+j] = xprof[20] + kStirrC12R10*SinD(90*j/3);
+ yprof[20+j] = yprof[20] - kStirrC12R10*(1 - CosD(90*j/3));
+ }
+
+ // We did the up side, now reflex on the bottom side
+ for (Int_t jp = 0; jp < kNumberOfStirrCPoints; jp++) {
+ xprof[24+jp] = xprof[23-jp];
+ yprof[24+jp] = -yprof[23-jp];
+ }
+
+ // Now the actual Xtru
+ stirrupC1C2Sh->DefinePolygon(2*kNumberOfStirrCPoints+1, xprof, yprof);
+ stirrupC1C2Sh->DefineSection(0,-kStirrC12Thick/2);
+ stirrupC1C2Sh->DefineSection(1, kStirrC12Thick/2);
+
+ // The first element of the Stirrup on the Forward side (0872/C/05):
+ // a really complex Xtru (equal to part of the Muon Stirrup)
+ // (0872/C/06 and 0872/C/07 are dismounted after positioning the TPC to I.P.)
+ TGeoXtru *stirrupC5Sh = new TGeoXtru(2);
+
+ for (Int_t j=0; j<13; j++) { // The internal arc and the tail
+ xprof[j] = stirrupC1C2Sh->GetX(j);
+ yprof[j] = stirrupC1C2Sh->GetY(j);
+ }
+
+ xprof[13] = xprof[12] - kStirrC5BodyLen;
+ yprof[13] = yprof[12];
+
+ // We did the up side, now reflex on the bottom side
+ for (Int_t jp = 0; jp < 13; jp++) {
+ xprof[14+jp] = xprof[13-jp];
+ yprof[14+jp] = -yprof[13-jp];
+ }
+
+ // Now the actual Xtru
+ stirrupC5Sh->DefinePolygon(27, xprof, yprof);
+ stirrupC5Sh->DefineSection(0,-kStirrC12Thick/2);
+ stirrupC5Sh->DefineSection(1, kStirrC12Thick/2);
+
+
+ // We have all shapes: now create the real volumes
+ TGeoMedium *medAlcoa = mgr->GetMedium("ITS_ALUMINUM$"); // To code!!!!!!
+ TGeoMedium *medHokotol = mgr->GetMedium("ITS_HOKOTOL$");
+ TGeoMedium *medAnticor = mgr->GetMedium("ITS_ANTICORODAL$");
+ TGeoMedium *medErgal = mgr->GetMedium("ITS_ERGAL$");
+ TGeoMedium *medAisi = mgr->GetMedium("ITS_AISI304L$");
+ TGeoMedium *medAir = mgr->GetMedium("ITS_AIR$");
+ TGeoMedium *medPlexy = mgr->GetMedium("ITS_PLEXYGLAS$");
+ TGeoMedium *medPVC = mgr->GetMedium("ITS_PVC$");
+
+
+ TGeoVolume *suppRingC2C3 = new TGeoVolume("ITSTPCsupportRingC2C3",
+ ringC2C3, medAlcoa);
+
+ suppRingC2C3->SetVisibility(kTRUE);
+ suppRingC2C3->SetLineColor(6); // Purple
+ suppRingC2C3->SetLineWidth(1);
+ suppRingC2C3->SetFillColor(suppRingC2C3->GetLineColor());
+ suppRingC2C3->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *forwUpHook = new TGeoVolume("ITSTPCsupportForwUpHook",
+ forwUpHookShape, medHokotol);
+
+ forwUpHook->SetVisibility(kTRUE);
+ forwUpHook->SetLineColor(6); // Purple
+ forwUpHook->SetLineWidth(1);
+ forwUpHook->SetFillColor(forwUpHook->GetLineColor());
+ forwUpHook->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *forwLwHook = new TGeoVolume("ITSTPCsupportForwLwHook",
+ forwLwHookShape, medHokotol);
+
+ forwLwHook->SetVisibility(kTRUE);
+ forwLwHook->SetLineColor(6); // Purple
+ forwLwHook->SetLineWidth(1);
+ forwLwHook->SetFillColor(forwLwHook->GetLineColor());
+ forwLwHook->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *rearUpHook = new TGeoVolume("ITSTPCsupportRearUpHook",
+ rearUpHookShape, medHokotol);
+
+ rearUpHook->SetVisibility(kTRUE);
+ rearUpHook->SetLineColor(6); // Purple
+ rearUpHook->SetLineWidth(1);
+ rearUpHook->SetFillColor(rearUpHook->GetLineColor());
+ rearUpHook->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *rearLwHook = new TGeoVolume("ITSTPCsupportRearLwHook",
+ rearLwHookShape, medAnticor);
+
+ rearLwHook->SetVisibility(kTRUE);
+ rearLwHook->SetLineColor(6); // Purple
+ rearLwHook->SetLineWidth(1);
+ rearLwHook->SetFillColor(rearLwHook->GetLineColor());
+ rearLwHook->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *rearLwBrack = new TGeoVolume("ITSTPCsupportRearLwBracket",
+ rearLwBrackShape, medAnticor);
+
+ rearLwBrack->SetVisibility(kTRUE);
+ rearLwBrack->SetLineColor(6); // Purple
+ rearLwBrack->SetLineWidth(1);
+ rearLwBrack->SetFillColor(rearLwBrack->GetLineColor());
+ rearLwBrack->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *forwWebSStirrup = new TGeoVolume("ITSTPCsupportForwWebSStirrup",
+ forwWebSStirrSh, medAnticor);
+
+ forwWebSStirrup->SetVisibility(kTRUE);
+ forwWebSStirrup->SetLineColor(6); // Purple
+ forwWebSStirrup->SetLineWidth(1);
+ forwWebSStirrup->SetFillColor(forwWebSStirrup->GetLineColor());
+ forwWebSStirrup->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *forwWebTStirr3 = new TGeoVolume("ITSTPCsupportForwWebTStirrup3",
+ forwWebTStirr3Sh, medAnticor);
+
+ forwWebTStirr3->SetVisibility(kTRUE);
+ forwWebTStirr3->SetLineColor(6); // Purple
+ forwWebTStirr3->SetLineWidth(1);
+ forwWebTStirr3->SetFillColor(forwWebTStirr3->GetLineColor());
+ forwWebTStirr3->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *forwWebTStirr4 = new TGeoVolume("ITSTPCsupportForwWebTStirrup4",
+ forwWebTStirr4Sh, medAnticor);
+
+ forwWebTStirr4->SetVisibility(kTRUE);
+ forwWebTStirr4->SetLineColor(6); // Purple
+ forwWebTStirr4->SetLineWidth(1);
+ forwWebTStirr4->SetFillColor(forwWebTStirr4->GetLineColor());
+ forwWebTStirr4->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *frWebClamp = new TGeoVolume("ITSTPCsupportForwRearWebClamp",
+ frWebClampSh, medPlexy);
+
+ frWebClamp->SetVisibility(kTRUE);
+ frWebClamp->SetLineColor(kAzure);
+ frWebClamp->SetLineWidth(1);
+ frWebClamp->SetFillColor(frWebClamp->GetLineColor());
+ frWebClamp->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *upWebStirrup = new TGeoVolume("ITSTPCsupportUpperWebStirrup",
+ upWebStirrSh, medAnticor);
+
+ upWebStirrup->SetVisibility(kTRUE);
+ upWebStirrup->SetLineColor(6); // Purple
+ upWebStirrup->SetLineWidth(1);
+ upWebStirrup->SetFillColor(upWebStirrup->GetLineColor());
+ upWebStirrup->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *upRearWebBar = new TGeoVolume("ITSTPCsupportUpperRearWebBar",
+ upRearWebBarSh, medPlexy);
+
+ upRearWebBar->SetVisibility(kTRUE);
+ upRearWebBar->SetLineColor(kAzure);
+ upRearWebBar->SetLineWidth(1);
+ upRearWebBar->SetFillColor(upRearWebBar->GetLineColor());
+ upRearWebBar->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *webCam = new TGeoVolume("ITSTPCsupportWebcam",
+ webcamShape, medPVC);
+
+ webCam->SetVisibility(kTRUE);
+ webCam->SetLineColor(kBlack);
+ webCam->SetLineWidth(1);
+ webCam->SetFillColor(webCam->GetLineColor());
+ webCam->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *upSlideVol = new TGeoVolume("ITSTPCsupportUpperSlide",
+ upSlideAirSh, medAir);
+
+ upSlideVol->SetVisibility(kFALSE);
+
+ TGeoVolume *upSlideBlock = new TGeoVolume("ITSTPCsupportUpperSlideBlock",
+ upSlideBlockSh, medAnticor);
+
+ upSlideBlock->SetVisibility(kTRUE);
+ upSlideBlock->SetLineColor(6); // Purple
+ upSlideBlock->SetLineWidth(1);
+ upSlideBlock->SetFillColor(upSlideBlock->GetLineColor());
+ upSlideBlock->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *upSlidePin = new TGeoVolume("ITSTPCsupportUpperSlidePin",
+ upSlidePinSh, medAisi);
+
+ upSlidePin->SetVisibility(kTRUE);
+ upSlidePin->SetLineColor(kGray);
+ upSlidePin->SetLineWidth(1);
+ upSlidePin->SetFillColor(upSlidePin->GetLineColor());
+ upSlidePin->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *lwSlideVol = new TGeoVolume("ITSTPCsupportLowerSlide",
+ lwSlideAirSh, medAir);
+
+ lwSlideVol->SetVisibility(kFALSE);
+
+ TGeoVolume *lwSlideBlock = new TGeoVolume("ITSTPCsupportLowerSlideBlock",
+ lwSlideBlockSh, medAnticor);
+
+ lwSlideBlock->SetVisibility(kTRUE);
+ lwSlideBlock->SetLineColor(6); // Purple
+ lwSlideBlock->SetLineWidth(1);
+ lwSlideBlock->SetFillColor(lwSlideBlock->GetLineColor());
+ lwSlideBlock->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *lwSlideNose = new TGeoVolume("ITSTPCsupportLowerSlideNose",
+ lwSlideNoseSh, medAnticor);
+
+ lwSlideNose->SetVisibility(kTRUE);
+ lwSlideNose->SetLineColor(6); // Purple
+ lwSlideNose->SetLineWidth(1);
+ lwSlideNose->SetFillColor(lwSlideNose->GetLineColor());
+ lwSlideNose->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *lwSlidePin = new TGeoVolume("ITSTPCsupportLowerSlidePin",
+ lwSlidePinSh, medAisi);
+
+ lwSlidePin->SetVisibility(kTRUE);
+ lwSlidePin->SetLineColor(kGray);
+ lwSlidePin->SetLineWidth(1);
+ lwSlidePin->SetFillColor(lwSlidePin->GetLineColor());
+ lwSlidePin->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *stirrC1C2 = new TGeoVolume("ITSTPCsupportStirrupC1C2",
+ stirrupC1C2Sh, medErgal);
+
+ stirrC1C2->SetVisibility(kTRUE);
+ stirrC1C2->SetLineColor(6); // Purple
+ stirrC1C2->SetLineWidth(1);
+ stirrC1C2->SetFillColor(stirrC1C2->GetLineColor());
+ stirrC1C2->SetFillStyle(4000); // 0% transparent
+
+ TGeoVolume *stirrC5 = new TGeoVolume("ITSTPCsupportStirrupC5",
+ stirrupC5Sh, medErgal);
+
+ stirrC5->SetVisibility(kTRUE);
+ stirrC5->SetLineColor(6); // Purple
+ stirrC5->SetLineWidth(1);
+ stirrC5->SetFillColor(stirrC5->GetLineColor());
+ stirrC5->SetFillStyle(4000); // 0% transparent
+
+
+ // Build up the wheel slides
+ upSlideVol->AddNode(upSlideBlock,1,0);
+ upSlideVol->AddNode(upSlidePin, 1,
+ new TGeoCombiTrans(-kUpperSlideHoleXPos, 0, 0,
+ new TGeoRotation("",0,-90,0) ) );
+
+ lwSlideVol->AddNode(lwSlideBlock,1,0);
+ lwSlideVol->AddNode(lwSlideNose ,1,0);
+ lwSlideVol->AddNode(lwSlidePin, 1,
+ new TGeoCombiTrans(lwSlideAluSh->GetX(5), 0, 0,
+ new TGeoRotation("",0,-90,0) ) );
+
+
+ // Finally put everything in the mother volume
+ moth->AddNode(suppRingC2C3,1,
+ new TGeoTranslation(0, 0, kRingCZPos+kRingCZToTPC) );
+ moth->AddNode(suppRingC2C3,2,
+ new TGeoCombiTrans( 0, 0,-kRingCZPos,
+ new TGeoRotation("",0.,180.,0.) ) );
+ moth->AddNode(suppRingC2C3,3,
+ new TGeoCombiTrans( 0, 0, kRingCZPos+kRingCZToTPC,
+ new TGeoRotation("",0.,0.,180.) ) );
+ moth->AddNode(suppRingC2C3,4,
+ new TGeoCombiTrans( 0, 0,-kRingCZPos,
+ new TGeoRotation("",0.,180.,180.) ) );
+
+ zpos = kRingCZPos + kRingCThick + kRingCZToTPC;
+ moth->AddNode(forwUpHook,1,
+ new TGeoTranslation( 0, 0, zpos) );
+
+ zpos = kRingCZPos + kRingCThick + kRingCZToTPC;
+ moth->AddNode(forwLwHook,1,
+ new TGeoCombiTrans( 0, 0, zpos,
+ new TGeoRotation("",0.,0.,180.) ) );
+
+ zpos = kRingCZPos + kRingCThick + kRearUpHookThick;
+ moth->AddNode(rearUpHook,1,
+ new TGeoTranslation( 0, 0,-zpos) );
+
+ zpos = kRingCZPos + kRingCThick + kRearLwHookThick;
+ moth->AddNode(rearLwHook,1,
+ new TGeoCombiTrans( 0, 0,-zpos,
+ new TGeoRotation("",0.,0.,180.) ) );
+
+ xpos = kRearLwHookWide/2 + kRearLwBracketThick/2;
+ ypos = -kRingCHeight;
+ moth->AddNode(rearLwBrack,1,
+ new TGeoCombiTrans( xpos, ypos,-zpos,
+ new TGeoRotation("", 90.,-90.,-90.) ) );
+ moth->AddNode(rearLwBrack,2,
+ new TGeoCombiTrans(-xpos, ypos,-zpos,
+ new TGeoRotation("", 90.,-90.,-90.) ) );
+
+ xpos = kForwUpHookWide/2;
+ ypos = (forwUpHookMainBody->GetY(8) + forwUpHookMainBody->GetY(9))/2;
+ zpos = kRingCZPos + kRingCThick + kRingCZToTPC;
+ moth->AddNode(forwWebSStirrup,1,
+ new TGeoCombiTrans( xpos, ypos, zpos,
+ new TGeoRotation("", 0., 90., 0.) ) );
+ xpos = kForwLwHookWide/2;
+ ypos = (forwLwHookMainBody->GetY(8) + forwLwHookMainBody->GetY(9))/2;
+ moth->AddNode(forwWebSStirrup,2,
+ new TGeoCombiTrans( xpos,-ypos, zpos,
+ new TGeoRotation("", 0., 90., 0.) ) );
+
+ xpos = kForwUpHookWide/2
+ + (forwWebSStirrSh->GetX(4) + forwWebSStirrSh->GetX(5))/2;
+ ypos = (forwUpHookMainBody->GetY(8) + forwUpHookMainBody->GetY(9))/2
+ + forwWebSStirrSh->GetZ(1) - forwWebTStirr3Sh->GetY(7);
+ zpos += (forwWebSStirrSh->GetY(4) - forwWebSStirrSh->GetY(0));
+ moth->AddNode(forwWebTStirr3,1,
+ new TGeoTranslation( xpos, ypos, zpos) );
+
+ ypos -= frWebClampSh->GetZ(1);
+ moth->AddNode(frWebClamp,1,
+ new TGeoCombiTrans( xpos, ypos, zpos+forwWebTStirr3Sh->GetZ(1),
+ new TGeoRotation("", 0., 90., 0.) ) );
+
+ ypos -= webcamShape->GetDY()/2;
+ moth->AddNode(webCam,1,
+ new TGeoTranslation( xpos, ypos,
+ zpos+forwWebTStirr3Sh->GetZ(1)+webcamShape->GetDZ()) );
+
+ xpos = kForwLwHookWide/2
+ + (forwWebSStirrSh->GetX(4) + forwWebSStirrSh->GetX(5))/2;
+ ypos = (forwLwHookMainBody->GetY(8) + forwLwHookMainBody->GetY(9))/2
+ + forwWebSStirrSh->GetZ(1) - forwWebTStirr4Sh->GetY(7);
+ moth->AddNode(forwWebTStirr4,1,
+ new TGeoCombiTrans( xpos,-ypos, zpos,
+ new TGeoRotation("", 180., 0., 0.) ) );
+
+ ypos -= frWebClampSh->GetZ(1);
+ moth->AddNode(frWebClamp,2,
+ new TGeoCombiTrans( xpos,-ypos, zpos+forwWebTStirr4Sh->GetZ(1),
+ new TGeoRotation("", 0., 90., 0.) ) );
+
+ ypos -= webcamShape->GetDY()/2;
+ moth->AddNode(webCam,2,
+ new TGeoTranslation( xpos,-ypos,
+ zpos+forwWebTStirr4Sh->GetZ(1)+webcamShape->GetDZ()) );
+
+ xpos = kRearUpHookWide/2 + kRearUpWebStirrDep/2;
+ ypos = kRingCHeight;
+ zpos = kRingCZPos + kRingCThick;
+ moth->AddNode(upWebStirrup,1,
+ new TGeoCombiTrans( xpos, ypos,-zpos,
+ new TGeoRotation("",-90.,-90., 90.) ) );
+ moth->AddNode(upWebStirrup,2,
+ new TGeoCombiTrans(-xpos, ypos,-zpos,
+ new TGeoRotation("",-90.,-90., 90.) ) );
+
+ ypos = kRingCHeight + upWebStirrSh->GetY(2) - upRearWebBarSh->GetDY();
+ zpos = kRingCZPos + kRingCThick + upWebStirrSh->GetX(3)
+ - upRearWebBarSh->GetDZ();
+ moth->AddNode(upRearWebBar,1,
+ new TGeoTranslation( 0, ypos,-zpos) );
+
+ zpos -= upRearWebBarSh->GetDZ();
+ moth->AddNode(frWebClamp,3,
+ new TGeoCombiTrans( 0, ypos,-zpos,
+ new TGeoRotation("", 0., 90., 0.) ) );
+
+ ypos -= webcamShape->GetDY()/2;
+ zpos -= webcamShape->GetDZ();
+ moth->AddNode(webCam,3,
+ new TGeoTranslation( 0, ypos,-zpos) );
+
+ xpos = ringC2C3->GetX(14) + kUpperSlideWidth/2;
+ ypos = ringC2C3->GetY(14);
+ zpos = kRingCZPos + kRingCThick;
+ moth->AddNode(upSlideVol,1,
+ new TGeoCombiTrans( xpos, ypos, zpos + kRingCZToTPC,
+ new TGeoRotation("",-90.,-90., 90.) ) );
+ moth->AddNode(upSlideVol,2,
+ new TGeoCombiTrans(-xpos, ypos, zpos + kRingCZToTPC,
+ new TGeoRotation("",-90.,-90., 90.) ) );
+ moth->AddNode(upSlideVol,3,
+ new TGeoCombiTrans( xpos, ypos, -zpos,
+ new TGeoRotation("", 90.,-90.,-90.) ) );
+ moth->AddNode(upSlideVol,4,
+ new TGeoCombiTrans(-xpos, ypos, -zpos,
+ new TGeoRotation("", 90.,-90.,-90.) ) );
+
+ moth->AddNode(lwSlideVol,1,
+ new TGeoCombiTrans( xpos,-ypos, zpos + kRingCZToTPC,
+ new TGeoRotation("", 90.,-90., 90.) ) );
+ moth->AddNode(lwSlideVol,2,
+ new TGeoCombiTrans(-xpos,-ypos, zpos + kRingCZToTPC,
+ new TGeoRotation("", 90.,-90., 90.) ) );
+ moth->AddNode(lwSlideVol,3,
+ new TGeoCombiTrans( xpos,-ypos,-zpos,
+ new TGeoRotation("",-90.,-90.,-90.) ) );
+ moth->AddNode(lwSlideVol,4,
+ new TGeoCombiTrans(-xpos,-ypos,-zpos,
+ new TGeoRotation("",-90.,-90.,-90.) ) );
+
+ xpos = kStirrCXPos;
+ zpos = kRingCZPos + kStirrCZPos + stirrupC1C2Sh->GetZ(1) + kRingCZToTPC;
+ moth->AddNode(stirrC1C2,1,
+ new TGeoTranslation( xpos, 0, zpos) );
+ moth->AddNode(stirrC1C2,2,
+ new TGeoCombiTrans(-xpos, 0, zpos,
+ new TGeoRotation("", 90.,-180.,-90.) ) );
+
+ xpos = kStirrCXPos + stirrupC1C2Sh->GetX(18) + kUpperSlideWidth/2;
+ ypos = ringC2C3->GetY(14); // Slides are all at the same height
+ zpos = kRingCZPos + kStirrCZPos + kStirrC12Thick + kRingCZToTPC;
+ moth->AddNode(upSlideVol,5,
+ new TGeoCombiTrans( xpos, ypos, zpos,
+ new TGeoRotation("",-90.,-90., 90.) ) );
+ moth->AddNode(upSlideVol,6,
+ new TGeoCombiTrans(-xpos, ypos, zpos,
+ new TGeoRotation("",-90.,-90., 90.) ) );
+ moth->AddNode(lwSlideVol,5,
+ new TGeoCombiTrans( xpos,-ypos, zpos,
+ new TGeoRotation("", 90.,-90., 90.) ) );
+ moth->AddNode(lwSlideVol,6,
+ new TGeoCombiTrans(-xpos,-ypos, zpos,
+ new TGeoRotation("", 90.,-90., 90.) ) );
+
+ xpos = kStirrCXPos;
+ zpos = kRingCZPos + kStirrCZPos + stirrupC5Sh->GetZ(1);
+ moth->AddNode(stirrC5,1,
+ new TGeoTranslation( xpos, 0,-zpos) );
+ moth->AddNode(stirrC5,2,
+ new TGeoCombiTrans(-xpos, 0,-zpos,
+ new TGeoRotation("", 90.,-180.,-90.) ) );
+
+
+ return;
+}
+