for(i = 0; i < kNSectorsTotal; i++) {
shiftX = -radiusSector * TMath::Sin(angle/fgkRadian);
shiftY = radiusSector * TMath::Cos(angle/fgkRadian);
- cout << "ANGLE = " << angle << endl;
+ //cout << "ANGLE = " << angle << endl;
shiftX += 0.1094 * TMath::Cos((angle + 196.)/fgkRadian);
shiftY += 0.1094 * TMath::Sin((angle + 196.)/fgkRadian);
//shiftX -= 0.105;
// compute the volume shapes (thicknesses change from one to the other)
Double_t kpLength, kpWidth, alLength, alWidth;
TArrayD kpSize, alSize, glSize;
- Double_t kpThickness = fgkmm * 0.05;
- Double_t alThickness = fgkmm * 0.02;
- Double_t g0Thickness = fgkmm * 0.1175 - fgkGapHalfStave;
- Double_t g1Thickness = fgkmm * 0.1175 - fgkGapLadder;
+ Double_t kpThickness = fgkmm * 0.04;
+ Double_t alThickness = fgkmm * 0.01;
+//cout << "AL THICKNESS" << alThickness << endl;
+ //Double_t g0Thickness = fgkmm * 0.1175 - fgkGapHalfStave;
+ //Double_t g1Thickness = fgkmm * 0.1175 - fgkGapLadder;
+ Double_t g0Thickness = fgkmm * 0.1275 - fgkGapHalfStave;
+ Double_t g1Thickness = fgkmm * 0.1275 - fgkGapLadder;
TGeoCompositeShape *kpShape = CreateGroundingFoilShape(0,kpLength,kpWidth,
kpThickness, kpSize);
TGeoCompositeShape *alShape = CreateGroundingFoilShape(1,alLength,alWidth,
z = 0.5*(fullLength - kpLength) - shift;
TGeoCombiTrans *glTrans1 = new TGeoCombiTrans(x, 0.0, z, rotCorr);
- cout << fgkGapHalfStave << endl;
- cout << g0Thickness << endl;
- cout << kpThickness << endl;
- cout << alThickness << endl;
- cout << g1Thickness << endl;
+ //cout << fgkGapHalfStave << endl;
+ //cout << g0Thickness << endl;
+ //cout << kpThickness << endl;
+ //cout << alThickness << endl;
+ //cout << g1Thickness << endl;
// add to container
container->SetLineColor(kMagenta-10);
TGeoVolume *volCable = new TGeoVolume("ITSSPDExtender", shCable, medExt);
volCable->SetLineColor(kGreen);
- TGeoVolume *volTube = gGeoManager->MakeTube("ITSSPDCoolingTubeCone", medInox, 5.*fgkmm, 6.*fgkmm, 0.5*(x[5] - x[0]));
+ TGeoVolume *volTube = gGeoManager->MakeTube("ITSSPDCoolingTubeCone", medInox, 4.*fgkmm, 5.*fgkmm, 0.5*(x[5] - x[0]));
volTube->SetLineColor(kGray);
Double_t thickness = cableThickness + mcmThickness;
container->AddNode(volMCMExt, 0, combi);
TGeoRotation *rot1 = new TGeoRotation(*gGeoIdentity);
- rot1->RotateX(88.5);
- TGeoCombiTrans *tr = new TGeoCombiTrans(1.0, x[0] + 0.5*(x[5] - x[0]), -3.0, rot1);
+ rot1->RotateX(87.5);
+ TGeoCombiTrans *tr = new TGeoCombiTrans(1.0, x[0] + 0.5*(x[5] - x[0]), -2.95, rot1);
container->AddNode(volTube, 0, tr);
TGeoTranslation *tr1 = new TGeoTranslation(0.5*plateThickness - 0.5*(plateThickness-thickness), x[3] - x[0] - 0.52*plateLength, 0.0);
TGeoVolumeAssembly *module = CreateConeModule(gGeoManager);
//Double_t angle[10] = {18., 54., 90., 126., 162., -18., -54., -90., -126., -162.};
- Double_t angle[10] = {18., 54., 90., 126., 162., 198.0, 234.0, 270.0, 306.0, 342.0};
+ Double_t angle1[10] = {18., 54., 90., 129., 165., 201.0, 237.0, 273.0, 309.0, 345.0};
+ Double_t angle2[10] = {18., 53., 90., 126., 162., 198.0, 233.0, 270.0, 309.0, 342.0};
for (Int_t i = 0; i < 10; i++) {
TGeoRotation *rot1 = new TGeoRotation(*gGeoIdentity);
rot1->RotateY(-90.0);
- rot1->RotateX(45.0);
- rot1->RotateZ(90.0 - angle[i]);
- TGeoCombiTrans *tr1 = new TGeoCombiTrans(0.0, 0.0, 40.5, rot1);
+ rot1->RotateX(43.7);
+ angle1[i] -= 1.5;
+ rot1->RotateZ(90.0 - angle1[i]);
+ TGeoCombiTrans *tr1 = new TGeoCombiTrans(0.0, 0.0, 40.4, rot1);
moth->AddNode(module, 2*i, tr1);
TGeoRotation *rot2 = new TGeoRotation(*gGeoIdentity);
rot2->RotateY(90.0);
- rot2->RotateX(-45.0);
- rot2->RotateZ(90.0 - angle[i]);
- TGeoCombiTrans *tr2 = new TGeoCombiTrans(0.0, 0.0, -40.5, rot2);
+ rot2->RotateX(-43.7);
+ angle2[i] -= 1.5;
+ rot2->RotateZ(90.0 - angle2[i]);
+ TGeoCombiTrans *tr2 = new TGeoCombiTrans(0.0, 0.0, -40.4, rot2);
+ if (i != 1 && i != 6)
moth->AddNode(module, 2*i+1, tr2);
}
}
sepLadderLadder+mcmLength;
fullWidth = ladderWidth;
fullThickness = grndThickness + fgkGapLadder + mcmThickness + busThickness;
- cout << "HSTAVE FULL THICKNESS = " << fullThickness << endl;
+ //cout << "HSTAVE FULL THICKNESS = " << fullThickness << endl;
// ** MOVEMENTS **