-
- // ** MEDIA **
-
- //PIXEL BUS
- TGeoMedium *medBus = GetMedium("SPDBUS(AL+KPT+EPOX)$",mgr);
- TGeoMedium *medPt1000 = GetMedium("CERAMICS$",mgr); // ??? PT1000
- // Capacity
- TGeoMedium *medCap = GetMedium("SDD X7R capacitors$",mgr);
- // ??? Resistance
- // TGeoMedium *medRes = GetMedium("SDD X7R capacitors$",mgr);
- TGeoMedium *medRes = GetMedium("ALUMINUM$",mgr);
- TGeoMedium *medExt = GetMedium("SDDKAPTON (POLYCH2)$", mgr);
- // ** SIZES & POSITIONS **
- Double_t busLength = 170.501 * fgkmm; // length of plane part
- Double_t busWidth = 13.800 * fgkmm; // width
- Double_t busThickness = 0.280 * fgkmm; // thickness
- Double_t pt1000Length = fgkmm * 1.50;
- Double_t pt1000Width = fgkmm * 3.10;
- Double_t pt1000Thickness = fgkmm * 0.60;
- Double_t pt1000Y, pt1000Z[10];// position of the pt1000's along the bus
- Double_t capLength = fgkmm * 2.55;
- Double_t capWidth = fgkmm * 1.50;
- Double_t capThickness = fgkmm * 1.35;
- Double_t capY[2], capZ[2];
-
- Double_t resLength = fgkmm * 2.20;
- Double_t resWidth = fgkmm * 0.80;
- Double_t resThickness = fgkmm * 0.35;
- Double_t resY[2], resZ[2];
-
- Double_t extThickness = fgkmm * 0.25;
- Double_t ext1Length = fgkmm * (26.7 - 10.0);
- Double_t ext2Length = fgkmm * (285.0 - ext1Length + extThickness);
- Double_t extWidth = fgkmm * 11.0;
- Double_t extHeight = fgkmm * 2.5;
-
-
- // position of pt1000, resistors and capacitors depends on the
- // bus if it's left or right one
- if (!isRight) {
- pt1000Y = 64400.;
- pt1000Z[0] = 66160.;
- pt1000Z[1] = 206200.;
- pt1000Z[2] = 346200.;
- pt1000Z[3] = 486200.;
- pt1000Z[4] = 626200.;
- pt1000Z[5] = 776200.;
- pt1000Z[6] = 916200.;
- pt1000Z[7] = 1056200.;
- pt1000Z[8] = 1196200.;
- pt1000Z[9] = 1336200.;
- resZ[0] = 1397500.;
- resY[0] = 26900.;
- resZ[1] = 682500.;
- resY[1] = 27800.;
- capZ[0] = 1395700.;
- capY[0] = 45700.;
- capZ[1] = 692600.;
- capY[1] = 45400.;
- } else {
- pt1000Y = 66100.;
- pt1000Z[0] = 319700.;
- pt1000Z[1] = 459700.;
- pt1000Z[2] = 599700.;
- pt1000Z[3] = 739700.;
- pt1000Z[4] = 879700.;
- pt1000Z[5] = 1029700.;
- pt1000Z[6] = 1169700.;
- pt1000Z[7] = 1309700.;
- pt1000Z[8] = 1449700.;
- pt1000Z[9] = 1589700.;
- capY[0] = 44500.;
- capZ[0] = 266700.;
- capY[1] = 44300.;
- capZ[1] = 974700.;
- resZ[0] = 266500.;
- resY[0] = 29200.;
- resZ[1] = 974600.;
- resY[1] = 29900.;
- } // end if isRight
- Int_t i;
- pt1000Y *= 1E-4 * fgkmm;
- for (i = 0; i < 10; i++) {
- pt1000Z[i] *= 1E-4 * fgkmm;
- if (i < 2) {
- capZ[i] *= 1E-4 * fgkmm;
- capY[i] *= 1E-4 * fgkmm;
- resZ[i] *= 1E-4 * fgkmm;
- resY[i] *= 1E-4 * fgkmm;
- } // end if iM2
- } // end for i
-
- Double_t &fullLength = sizes[1];
- Double_t &fullWidth = sizes[2];
- Double_t &fullThickness = sizes[0];
- fullLength = busLength;
- fullWidth = busWidth;
- // add the thickness of the thickest component on bus (capacity)
- fullThickness = busThickness + capThickness;
- // ** VOLUMES **
- TGeoVolumeAssembly *container = new TGeoVolumeAssembly("PixelBus");
- TGeoVolume *bus = mgr->MakeBox("Bus", medBus, 0.5*busThickness, 0.5*busWidth, 0.5*busLength);
- TGeoVolume *pt1000 = mgr->MakeBox("PT1000", medPt1000, 0.5*pt1000Thickness, 0.5*pt1000Width, 0.5*pt1000Length);
- TGeoVolume *res = mgr->MakeBox("Resistor", medRes, 0.5*resThickness, 0.5*resWidth, 0.5*resLength);
- TGeoVolume *cap = mgr->MakeBox("Capacitor", medCap, 0.5*capThickness, 0.5*capWidth, 0.5*capLength);
- TGeoVolume *ext1 = mgr->MakeBox("Extender1", medExt, 0.5*extThickness, 0.5*extWidth, 0.5*ext1Length);
- TGeoVolume *ext2 = mgr->MakeBox("Extender2", medExt, 0.5*extHeight - extThickness, 0.5*extWidth, 0.5*extThickness);
- TGeoVolume *ext3 = mgr->MakeBox("Extender3", medExt, extThickness, 0.5*extWidth, 0.5*ext2Length);
- bus->SetLineColor(kYellow + 2);
- pt1000->SetLineColor(kGreen + 3);
- res->SetLineColor(kRed + 1);
- cap->SetLineColor(kBlue - 7);
- ext1->SetLineColor(kGray);
- ext2->SetLineColor(kGray);
- ext3->SetLineColor(kGray);
-
- // ** MOVEMENTS AND POSITIONEMENT **
- // bus
- TGeoTranslation *trBus = new TGeoTranslation(0.5 * (busThickness -
- fullThickness), 0.0, 0.0);
- container->AddNode(bus, 0, trBus);
- Double_t zRef, yRef, x, y, z;
- if (isRight) {
- zRef = -0.5*fullLength;
- yRef = -0.5*fullWidth;
- } else {
- zRef = -0.5*fullLength;
- yRef = -0.5*fullWidth;
- } // end if isRight
- // pt1000
- x = 0.5*(pt1000Thickness - fullThickness) + busThickness;
- for (i = 0; i < 10; i++) {
- y = yRef + pt1000Y;
- z = zRef + pt1000Z[i];
- TGeoTranslation *tr = new TGeoTranslation(x, y, z);
- container->AddNode(pt1000, i, tr);
- } // end for i
- // capacitors
- x = 0.5*(capThickness - fullThickness) + busThickness;
- for (i = 0; i < 2; i++) {
- y = yRef + capY[i];
- z = zRef + capZ[i];
- TGeoTranslation *tr = new TGeoTranslation(x, y, z);
- container->AddNode(cap, i, tr);
- } // end for i
- // resistors
- x = 0.5*(resThickness - fullThickness) + busThickness;
- for (i = 0; i < 2; i++) {
- y = yRef + resY[i];
- z = zRef + resZ[i];
- TGeoTranslation *tr = new TGeoTranslation(x, y, z);
- container->AddNode(res, i, tr);
- } // end for i
- // extender
- if (isRight) {
- y = 0.5 * (-fullWidth + extWidth);
- z = 0.5 * (-fullLength + fgkmm * 10.0);
- }
- else {
- y = 0.5 * (fullWidth - extWidth);
- z = 0.5 * ( fullLength - fgkmm * 10.0);
- }
- x = 0.5 * (extThickness - fullThickness) + busThickness;
- //y = 0.5 * (fullWidth - extWidth);
- TGeoTranslation *trExt1 = new TGeoTranslation(x, y, z);
- if (isRight) {
- z -= 0.5 * (ext1Length - extThickness);
- }
- else {
- z += 0.5 * (ext1Length - extThickness);
- }
- x += 0.5*(extHeight - extThickness);
- TGeoTranslation *trExt2 = new TGeoTranslation(x, y, z);
- if (isRight) {
- z -= 0.5 * (ext2Length - extThickness);
- }
- else {
- z += 0.5 * (ext2Length - extThickness);
- }
- x += 0.5*(extHeight - extThickness) + extThickness;
- TGeoTranslation *trExt3 = new TGeoTranslation(x, y, z);
- container->AddNode(ext1, 0, trExt1);
- container->AddNode(ext2, 0, trExt2);
- container->AddNode(ext3, 0, trExt3);
-
-
- sizes[3] = yRef + pt1000Y;
- sizes[4] = zRef + pt1000Z[2];
- sizes[5] = zRef + pt1000Z[7];
-
- return container;
+
+ // ** MEDIA **
+
+ //PIXEL BUS
+ TGeoMedium *medBus = GetMedium("SPDBUS(AL+KPT+EPOX)$",mgr);
+ TGeoMedium *medPt1000 = GetMedium("CERAMICS$",mgr); // ??? PT1000
+ // Capacity
+ TGeoMedium *medCap = GetMedium("SDD X7R capacitors$",mgr);
+ // ??? Resistance
+ // TGeoMedium *medRes = GetMedium("SDD X7R capacitors$",mgr);
+ TGeoMedium *medRes = GetMedium("ALUMINUM$",mgr);
+ TGeoMedium *medExt = GetMedium("SDDKAPTON (POLYCH2)$", mgr);
+ // ** SIZES & POSITIONS **
+ Double_t busLength = 170.501 * fgkmm; // length of plane part
+ Double_t busWidth = 13.800 * fgkmm; // width
+ Double_t busThickness = 0.280 * fgkmm; // thickness
+ Double_t pt1000Length = fgkmm * 1.50;
+ Double_t pt1000Width = fgkmm * 3.10;
+ Double_t pt1000Thickness = fgkmm * 0.60;
+ Double_t pt1000Y, pt1000Z[10];// position of the pt1000's along the bus
+ Double_t capLength = fgkmm * 2.55;
+ Double_t capWidth = fgkmm * 1.50;
+ Double_t capThickness = fgkmm * 1.35;
+ Double_t capY[2], capZ[2];
+
+ Double_t resLength = fgkmm * 2.20;
+ Double_t resWidth = fgkmm * 0.80;
+ Double_t resThickness = fgkmm * 0.35;
+ Double_t resY[2], resZ[2];
+
+ Double_t extThickness = fgkmm * 0.25;
+ Double_t ext1Length = fgkmm * (26.7 - 10.0);
+ Double_t ext2Length = fgkmm * (285.0 - ext1Length + extThickness);
+ Double_t extWidth = fgkmm * 11.0;
+ Double_t extHeight = fgkmm * 2.5;
+
+
+ // position of pt1000, resistors and capacitors depends on the
+ // bus if it's left or right one
+ if (!isRight) {
+ pt1000Y = 64400.;
+ pt1000Z[0] = 66160.;
+ pt1000Z[1] = 206200.;
+ pt1000Z[2] = 346200.;
+ pt1000Z[3] = 486200.;
+ pt1000Z[4] = 626200.;
+ pt1000Z[5] = 776200.;
+ pt1000Z[6] = 916200.;
+ pt1000Z[7] = 1056200.;
+ pt1000Z[8] = 1196200.;
+ pt1000Z[9] = 1336200.;
+ resZ[0] = 1397500.;
+ resY[0] = 26900.;
+ resZ[1] = 682500.;
+ resY[1] = 27800.;
+ capZ[0] = 1395700.;
+ capY[0] = 45700.;
+ capZ[1] = 692600.;
+ capY[1] = 45400.;
+ } else {
+ pt1000Y = 66100.;
+ pt1000Z[0] = 319700.;
+ pt1000Z[1] = 459700.;
+ pt1000Z[2] = 599700.;
+ pt1000Z[3] = 739700.;
+ pt1000Z[4] = 879700.;
+ pt1000Z[5] = 1029700.;
+ pt1000Z[6] = 1169700.;
+ pt1000Z[7] = 1309700.;
+ pt1000Z[8] = 1449700.;
+ pt1000Z[9] = 1589700.;
+ capY[0] = 44500.;
+ capZ[0] = 266700.;
+ capY[1] = 44300.;
+ capZ[1] = 974700.;
+ resZ[0] = 266500.;
+ resY[0] = 29200.;
+ resZ[1] = 974600.;
+ resY[1] = 29900.;
+ } // end if isRight
+ Int_t i;
+ pt1000Y *= 1E-4 * fgkmm;
+ for (i = 0; i < 10; i++) {
+ pt1000Z[i] *= 1E-4 * fgkmm;
+ if (i < 2) {
+ capZ[i] *= 1E-4 * fgkmm;
+ capY[i] *= 1E-4 * fgkmm;
+ resZ[i] *= 1E-4 * fgkmm;
+ resY[i] *= 1E-4 * fgkmm;
+ } // end if iM2
+ } // end for i
+
+ Double_t &fullLength = sizes[1];
+ Double_t &fullWidth = sizes[2];
+ Double_t &fullThickness = sizes[0];
+ fullLength = busLength;
+ fullWidth = busWidth;
+ // add the thickness of the thickest component on bus (capacity)
+ fullThickness = busThickness + capThickness;
+ // ** VOLUMES **
+ TGeoVolumeAssembly *container = new TGeoVolumeAssembly("PixelBus");
+ TGeoVolume *bus = mgr->MakeBox("Bus", medBus, 0.5*busThickness, 0.5*busWidth, 0.5*busLength);
+ TGeoVolume *pt1000 = mgr->MakeBox("PT1000", medPt1000, 0.5*pt1000Thickness, 0.5*pt1000Width, 0.5*pt1000Length);
+ TGeoVolume *res = mgr->MakeBox("Resistor", medRes, 0.5*resThickness, 0.5*resWidth, 0.5*resLength);
+ TGeoVolume *cap = mgr->MakeBox("Capacitor", medCap, 0.5*capThickness, 0.5*capWidth, 0.5*capLength);
+ TGeoVolume *ext1 = mgr->MakeBox("Extender1", medExt, 0.5*extThickness, 0.5*extWidth, 0.5*ext1Length);
+ TGeoVolume *ext2 = mgr->MakeBox("Extender2", medExt, 0.5*extHeight - extThickness, 0.5*extWidth, 0.5*extThickness);
+ TGeoVolume *ext3 = mgr->MakeBox("Extender3", medExt, extThickness, 0.5*extWidth, 0.5*ext2Length);
+ bus->SetLineColor(kYellow + 2);
+ pt1000->SetLineColor(kGreen + 3);
+ res->SetLineColor(kRed + 1);
+ cap->SetLineColor(kBlue - 7);
+ ext1->SetLineColor(kGray);
+ ext2->SetLineColor(kGray);
+ ext3->SetLineColor(kGray);
+
+ // ** MOVEMENTS AND POSITIONEMENT **
+ // bus
+ TGeoTranslation *trBus = new TGeoTranslation(0.5 * (busThickness -
+ fullThickness), 0.0, 0.0);
+ container->AddNode(bus, 0, trBus);
+ Double_t zRef, yRef, x, y, z;
+ if (isRight) {
+ zRef = -0.5*fullLength;
+ yRef = -0.5*fullWidth;
+ } else {
+ zRef = -0.5*fullLength;
+ yRef = -0.5*fullWidth;
+ } // end if isRight
+ // pt1000
+ x = 0.5*(pt1000Thickness - fullThickness) + busThickness;
+ for (i = 0; i < 10; i++) {
+ y = yRef + pt1000Y;
+ z = zRef + pt1000Z[i];
+ TGeoTranslation *tr = new TGeoTranslation(x, y, z);
+ container->AddNode(pt1000, i, tr);
+ } // end for i
+ // capacitors
+ x = 0.5*(capThickness - fullThickness) + busThickness;
+ for (i = 0; i < 2; i++) {
+ y = yRef + capY[i];
+ z = zRef + capZ[i];
+ TGeoTranslation *tr = new TGeoTranslation(x, y, z);
+ container->AddNode(cap, i, tr);
+ } // end for i
+ // resistors
+ x = 0.5*(resThickness - fullThickness) + busThickness;
+ for (i = 0; i < 2; i++) {
+ y = yRef + resY[i];
+ z = zRef + resZ[i];
+ TGeoTranslation *tr = new TGeoTranslation(x, y, z);
+ container->AddNode(res, i, tr);
+ } // end for i
+ // extender
+ if (isRight) {
+ y = 0.5 * (-fullWidth + extWidth);
+ z = 0.5 * (-fullLength + fgkmm * 10.0);
+ }
+ else {
+ y = 0.5 * (fullWidth - extWidth);
+ z = 0.5 * ( fullLength - fgkmm * 10.0);
+ }
+ x = 0.5 * (extThickness - fullThickness) + busThickness;
+ //y = 0.5 * (fullWidth - extWidth);
+ TGeoTranslation *trExt1 = new TGeoTranslation(x, y, z);
+ if (isRight) {
+ z -= 0.5 * (ext1Length - extThickness);
+ }
+ else {
+ z += 0.5 * (ext1Length - extThickness);
+ }
+ x += 0.5*(extHeight - extThickness);
+ TGeoTranslation *trExt2 = new TGeoTranslation(x, y, z);
+ if (isRight) {
+ z -= 0.5 * (ext2Length - extThickness);
+ }
+ else {
+ z += 0.5 * (ext2Length - extThickness);
+ }
+ x += 0.5*(extHeight - extThickness) + extThickness;
+ TGeoTranslation *trExt3 = new TGeoTranslation(x, y, z);
+ container->AddNode(ext1, 0, trExt1);
+ container->AddNode(ext2, 0, trExt2);
+ container->AddNode(ext3, 0, trExt3);
+
+
+ sizes[3] = yRef + pt1000Y;
+ sizes[4] = zRef + pt1000Z[2];
+ sizes[5] = zRef + pt1000Z[7];
+
+ return container;