49 #include <Riostream.h>
50 #include <TClonesArray.h>
51 #include <TGeoCompositeShape.h>
52 #include <TGeoGlobalMagField.h>
53 #include <TGeoManager.h>
54 #include <TGeoMatrix.h>
56 #include <TGeoVolume.h>
61 #include <TVirtualMC.h>
171 Int_t* idtmed =
fMUON->GetIdtmed()->GetArray()-1099;
172 Int_t idAir = idtmed[1100];
174 Int_t idCopper = idtmed[1121];
182 TVirtualMC::GetMC()->Gsvolu(
fgkHoleName,
"BOX",idAir,par,3);
187 TVirtualMC::GetMC()->Gsvolu(
"SNPB",
"BOX", idCopper, par, 3);
191 TVirtualMC::GetMC()->Gspos(
"SNPB",1,
fgkHoleName, posX, posY, posZ, 0,
"ONLY");
196 TVirtualMC::GetMC()->Gsvolu(
"SKPT",
"BOX", idCopper, par, 3);
200 TVirtualMC::GetMC()->Gspos(
"SKPT",1,
fgkHoleName, posX, posY, posZ, 0,
"ONLY");
208 Int_t* idtmed =
fMUON->GetIdtmed()->GetArray()-1099;
209 Int_t idAir = idtmed[1100];
212 Int_t idCopper = idtmed[1121];
213 Int_t idPlastic =idtmed[1127];
226 TVirtualMC::GetMC()->Gsvolu(
"SBGP",
"BOX",idPlastic,par,3);
230 TVirtualMC::GetMC()->Gspos(
"SBGP",1,
fgkDaughterName,posX,posY,posZ,0,
"ONLY");
235 TVirtualMC::GetMC()->Gsvolu(
"SBGC",
"BOX",idCopper,par,3);
239 TVirtualMC::GetMC()->Gspos(
"SBGC",1,
"SBGP",posX,posY,posZ,0,
"ONLY");
244 TVirtualMC::GetMC()->Gsvolu(
"SDGH",
"BOX",idCopper,par,3);
248 TVirtualMC::GetMC()->Gspos(
"SDGH",1,
fgkDaughterName,posX,posY,posZ,0,
"ONLY");
259 TGeoMedium* kMedArCO2 = gGeoManager->GetMedium(
"MUON_ARG_CO2");
260 TGeoMedium* kMedCopper = gGeoManager->GetMedium(
"MUON_COPPER_II");
265 new TGeoTube(
"cutTube",rmin, rmax, hz);
267 Double_t maxXY = 89.0;
268 Double_t xy1 = 77.33;
269 Double_t xy2 = 48.77;
270 Double_t dxy1 = maxXY - xy1;
274 Double_t vx[6] = { 0.0, 0.0, xy2, maxXY, maxXY, dxy1 };
275 Double_t vy[6] = { dxy1, maxXY, maxXY, xy2, 0.0, 0.0 };
277 TGeoXtru* xtruS1 =
new TGeoXtru(nz);
278 xtruS1->SetName(
"xtruS1");
279 xtruS1->DefinePolygon(nv, vx, vy);
280 xtruS1->DefineSection(0, -fgkHzGas, 0.0, 0.0, 1.0);
281 xtruS1->DefineSection(1, fgkHzGas, 0.0, 0.0, 1.0);
282 TGeoCompositeShape* layerS1 =
new TGeoCompositeShape(
"layerS1",
"xtruS1-cutTube");
283 new TGeoVolume(
"SA1G", layerS1, kMedArCO2 );
285 TGeoXtru* xtruS2 =
new TGeoXtru(nz);
286 xtruS2->SetName(
"xtruS2");
287 xtruS2->DefinePolygon(nv, vx, vy);
288 xtruS2->DefineSection(0, -fgkHzGas, 0.0, 0.0, 1.0);
289 xtruS2->DefineSection(1, fgkHzGas, 0.0, 0.0, 1.0);
290 TGeoCompositeShape* layerS2 =
new TGeoCompositeShape(
"layerS2",
"xtruS2-cutTube");
291 new TGeoVolume(
"SA2G", layerS2, kMedArCO2 );
293 TGeoXtru* xtruS3 =
new TGeoXtru(nz);
294 xtruS3->SetName(
"xtruS3");
295 xtruS3->DefinePolygon(nv, vx, vy);
298 TGeoCompositeShape* layerS3 =
new TGeoCompositeShape(
"layerS3",
"xtruS3-cutTube");
299 new TGeoVolume(
"SA1C", layerS3, kMedCopper );
318 Int_t* idtmed =
fMUON->GetIdtmed()->GetArray()-1099;
319 Int_t idFrameEpoxy = idtmed[1123];
320 Int_t idInox = idtmed[1128];
326 TVirtualMC::GetMC()->Gsvolu(
"Spacer05",
"BOX",idFrameEpoxy,par,3);
331 TVirtualMC::GetMC()->Gsvolu(
"Spacer06",
"BOX",idFrameEpoxy,par,3);
336 TVirtualMC::GetMC()->Gsvolu(
"Spacer07",
"TUBE",idInox,par,3);
358 Int_t* idtmed =
fMUON->GetIdtmed()->GetArray()-1099;
359 Int_t idFrameEpoxy = idtmed[1123];
360 Int_t idInox = idtmed[1128];
372 TVirtualMC::GetMC()->Gsvolu(
"Spacer5A",
"BOX",idFrameEpoxy,par,3);
377 TVirtualMC::GetMC()->Gsvolu(
"Spacer6",
"BOX",idFrameEpoxy,par,3);
387 TVirtualMC::GetMC()->Gsvolu(
"Spacer7A",
"TUBE",idInox,par,3);
408 AliFatal(
"Mapping has to be loaded first !");
414 AliFatal(
"Could not access sector segmentation !");
418 Bool_t reflectZ =
false;
422 PlaceSector(kSector1, specialMap, where, reflectZ, chamber);
425 TExMapIter it(&specialMap);
426 #if (defined(ROOT_SVN_REVISION) && ROOT_SVN_REVISION >= 29598) || \
427 (defined(ROOT_VERSION_CODE) && ROOT_VERSION_CODE >= ROOT_VERSION(5,25,02))
435 while ( it.Next(key,value) == kTRUE ) {
452 AliFatal(
"Could not access sector !");
458 where = TVector3(where.X()+offset.X(), where.Y()+offset.Y(), 0.);
462 PlaceSector(kSector2, specialMap, where, reflectZ, chamber);
465 while ( it.Next(key,value) == kTRUE ) {
474 const TVector2& dimensions)
478 Int_t* idtmed =
fMUON->GetIdtmed()->GetArray()-1099;
479 Int_t idAir = idtmed[1100];
482 Int_t idFoam = idtmed[1125];
483 Int_t idFR4 = idtmed[1122];
487 par[0] = dimensions.X();
488 par[1] = dimensions.Y();
490 TVirtualMC::GetMC()->Gsvolu(
PlaneSegmentName(segNumber).Data(),
"BOX",idAir,par,3);
493 par[0] = dimensions.X();
494 par[1] = dimensions.Y();
496 TVirtualMC::GetMC()->Gsvolu(
FoamBoxName(segNumber).Data(),
"BOX",idFoam,par,3);
501 TVirtualMC::GetMC()->Gspos(
FoamBoxName(segNumber).Data(),1,
505 par[0] = dimensions.X();
506 par[1] = dimensions.Y();
508 TVirtualMC::GetMC()->Gsvolu(
FR4BoxName(segNumber).Data(),
"BOX",idFR4,par,3);
512 TVirtualMC::GetMC()->Gspos(
FR4BoxName(segNumber).Data(),1,
518 const TVector2& dimensions,
548 TVirtualMC::GetMC()->Gspos(
"Spacer5A", 1,
FoamBoxName(segNumber).Data(), posX, posY, posZ,0,
"ONLY");
553 TVirtualMC::GetMC()->Gspos(
"Spacer5A", 2,
FoamBoxName(segNumber).Data(), posX, posY, posZ,0,
"ONLY");
559 TVirtualMC::GetMC()->Gspos(
"Spacer6", 1,
FoamBoxName(segNumber).Data(), posX, posY, posZ,0,
"ONLY");
565 TVirtualMC::GetMC()->Gspos(
"Spacer7A", 1,
FoamBoxName(segNumber).Data(), posX, posY, posZ,0,
"ONLY");
568 for (Int_t holeNum=0;holeNum<nofHoles;holeNum++) {
569 GReal_t posX = ((2.*holeNum+1.)/nofHoles-1.)*dimensions.X();
574 FoamBoxName(segNumber).Data(),posX,posY,posZ,0,
"ONLY");
585 Int_t* idtmed =
fMUON->GetIdtmed()->GetArray()-1099;
586 Int_t idAir = idtmed[1100];
589 Float_t posX,posY,posZ;
603 if ( TVirtualMC::GetMC()->IsRootGeometrySupported() ) {
614 TGeoShape* quadrant = mlayer->GetShape();
615 quadrant->SetName(
"quadrant");
621 new TGeoTube(
"shield_tube", par[0], par[1], par[2]);
627 TGeoTranslation* displacement
628 =
new TGeoTranslation(
"TR", posX, posY, posZ);
629 displacement->RegisterYourself();
633 =
new TGeoCompositeShape(
"composite",
"quadrant-shield_tube:TR");
636 mlayer->SetShape(composite);
647 TGeoShape* quadrant = malayer->GetShape();
648 quadrant->SetName(
"quadrant");
654 new TGeoTube(
"shield_tube", par[0], par[1], par[2]);
660 TGeoTranslation* displacement
661 =
new TGeoTranslation(
"TR", posX, posY, posZ);
662 displacement->RegisterYourself();
666 =
new TGeoCompositeShape(
"composite",
"quadrant-shield_tube:TR");
669 malayer->SetShape(composite);
731 const Float_t kNearFarLHC=2.4;
734 Int_t* idtmed =
fMUON->GetIdtmed()->GetArray()-1099;
742 Int_t idFrameEpoxy = idtmed[1123];
743 Int_t idInox = idtmed[1128];
744 Int_t idFR4 = idtmed[1122];
745 Int_t idCopper = idtmed[1121];
746 Int_t idAlu = idtmed[1120];
749 TGeoMedium* kMedEpoxy = gGeoManager->GetMedium(
"MUON_FrameCH$");
750 TGeoMedium* kMedInox = gGeoManager->GetMedium(
"MUON_Kapton");
751 TGeoMedium* kMedAlu = gGeoManager->GetMedium(
"MUON_ALU_II$");
755 Int_t rot1, rot2, rot3, rot4;
758 fMUON->AliMatrix(rot1, 90., 90., 90., 180., 0., 0.);
759 fMUON->AliMatrix(rot2, 90., 45., 90., 135., 0., 0.);
760 fMUON->AliMatrix(rot3, 90., 45., 90., 315.,180., 0.);
761 fMUON->AliMatrix(rot4, 90., 315., 90., 45., 0., 0.);
765 const Float_t kHzFrameThickness = 1.59/2.;
766 const Float_t kHzOuterFrameEpoxy = 1.19/2.;
767 const Float_t kHzOuterFrameInox = 0.1/2.;
768 const Float_t kHzFoam = 2.083/2.;
772 const Float_t kHzTopAnodeSteel1 = 0.185/2.;
773 const Float_t kHzTopAnodeSteel2 = 0.51/2.;
774 const Float_t kHzAnodeFR4 = 0.08/2.;
775 const Float_t kHzTopEarthFaceCu = 0.364/2.;
776 const Float_t kHzTopEarthProfileCu = 1.1/2.;
777 const Float_t kHzTopPositionerSteel = 1.45/2.;
778 const Float_t kHzTopGasSupportAl = 0.85/2.;
781 const Float_t kHzVerticalCradleAl = 0.8/2.;
782 const Float_t kHzLateralSightAl = 0.975/2.;
783 const Float_t kHzLateralPosnInoxFace = 2.125/2.;
784 const Float_t kHzLatPosInoxProfM = 6.4/2.;
785 const Float_t kHzLatPosInoxProfNF = 1.45/2.;
786 const Float_t kHzLateralPosnAl = 0.5/2.;
787 const Float_t kHzVertEarthFaceCu = 0.367/2.;
788 const Float_t kHzVertBarSteel = 0.198/2.;
789 const Float_t kHzVertEarthProfCu = 1.1/2.;
794 const Float_t kHxInVFrame = 1.85/2.;
795 const Float_t kHyInVFrame = 73.95/2.;
796 const Float_t kHzInVFrame = kHzFrameThickness;
799 const Float_t kHxV1mm = 0.75/2.;
800 const Float_t kHyV1mm = 1.85/2.;
801 const Float_t kHzV1mm = kHzFrameThickness;
829 const Float_t kHxTFA = 34.1433/2.;
830 const Float_t kHyTFA = 7.75/2.;
831 const Float_t kHzTFAE = kHzOuterFrameEpoxy;
832 const Float_t kHzTFAI = kHzOuterFrameInox;
836 const Float_t kH1FAA = 8.7/2.;
837 const Float_t kTl1FAB = 4.35/2.;
838 const Float_t kTl1FAA = 7.75/2.;
841 const Float_t kHxTA1 = 16.2/2.;
842 const Float_t kHyTA1 = 3.5/2.;
843 const Float_t kHzTA11 = kHzTopAnodeSteel1;
844 const Float_t kHzTA12 = kHzAnodeFR4;
847 const Float_t kHzTA21 = kHzTopAnodeSteel2;
848 const Float_t kHzTA22 = kHzAnodeFR4;
849 const Float_t kTetTA2 = 0.;
850 const Float_t kPhiTA2= 0.;
851 const Float_t kH1TA2 = 7.268/2.;
852 const Float_t kBl1TA2 = 2.03/2.;
853 const Float_t kTl1TA2 = 3.5/2.;
854 const Float_t kAlp1TA2 = 5.78;
855 const Float_t kH2TA2 = 7.268/2.;
856 const Float_t kBl2TA2 = 2.03/2.;
857 const Float_t kTl2TA2 = 3.5/2.;
858 const Float_t kAlp2TA2 = 5.78;
861 const Float_t kHzTA3 = kHzAnodeFR4;
862 const Float_t kTetTA3 = 0.;
863 const Float_t kPhiTA3 = 0.;
864 const Float_t kH1TA3 = 7.268/2.;
865 const Float_t kBl1TA3 = 0.;
866 const Float_t kTl1TA3 = 2.03/2.;
867 const Float_t kAlp1TA3 = 7.95;
868 const Float_t kH2TA3 = 7.268/2.;
869 const Float_t kBl2TA3 = 0.;
870 const Float_t kTl2TA3 = 2.03/2.;
871 const Float_t kAlp2TA3 = 7.95;
874 const Float_t kHzTEF = kHzTopEarthFaceCu;
875 const Float_t kTetTEF = 0.;
876 const Float_t kPhiTEF = 0.;
877 const Float_t kH1TEF = 1.200/2.;
878 const Float_t kBl1TEF = 21.323/2.;
879 const Float_t kTl1TEF = 17.963/2.;
880 const Float_t kAlp1TEF = -54.46;
881 const Float_t kH2TEF = 1.200/2.;
882 const Float_t kBl2TEF = 21.323/2.;
883 const Float_t kTl2TEF = 17.963/2.;
884 const Float_t kAlp2TEF = -54.46;
887 const Float_t kHzTEP = kHzTopEarthProfileCu;
888 const Float_t kTetTEP = 0.;
889 const Float_t kPhiTEP = 0.;
890 const Float_t kH1TEP = 0.40/2.;
891 const Float_t kBl1TEP = 31.766/2.;
892 const Float_t kTl1TEP = 30.535/2.;
893 const Float_t kAlp1TEP = -56.98;
894 const Float_t kH2TEP = 0.40/2.;
895 const Float_t kBl2TEP = 31.766/2.;
896 const Float_t kTl2TEP = 30.535/2.;
897 const Float_t kAlp2TEP = -56.98;
900 const Float_t kHzTP = kHzTopPositionerSteel;
901 const Float_t kTetTP = 0.;
902 const Float_t kPhiTP = 0.;
903 const Float_t kH1TP = 3.00/2.;
904 const Float_t kBl1TP = 7.023/2.;
905 const Float_t kTl1TP = 7.314/2.;
906 const Float_t kAlp1TP = 2.78;
907 const Float_t kH2TP = 3.00/2.;
908 const Float_t kBl2TP = 7.023/2.;
909 const Float_t kTl2TP = 7.314/2.;
910 const Float_t kAlp2TP = 2.78;
913 const Float_t kHxTGS = 8.50/2.;
914 const Float_t kHyTGS = 3.00/2.;
915 const Float_t kHzTGS = kHzTopGasSupportAl;
920 const Float_t kH1OETF = 7.196/2.;
921 const Float_t kTl1OETF1 = 3.996/2.;
922 const Float_t kTl1OETF2 = 3.75/2;
923 const Float_t kTl1OETF3 = 3.01/2.;
924 const Float_t kTl1OETF4 = 1.77/2.;
938 const Float_t kHxOutVFrame = 1.85/2.;
939 const Float_t kHyOutVFrame = 46.23/2.;
940 const Float_t kHzOutVFrame = kHzFrameThickness;
943 const Float_t kHzOCTF = kHzFrameThickness;
944 const Float_t kTetOCTF = 0.;
945 const Float_t kPhiOCTF = 0.;
946 const Float_t kH1OCTF = 1.85/2.;
947 const Float_t kBl1OCTF = 0.;
948 const Float_t kTl1OCTF = 3.66/2.;
949 const Float_t kAlp1OCTF = 44.67;
950 const Float_t kH2OCTF = 1.85/2.;
951 const Float_t kBl2OCTF = 0.;
952 const Float_t kTl2OCTF = 3.66/2.;
953 const Float_t kAlp2OCTF = 44.67;
956 const Float_t kHzVFC = kHzVertEarthFaceCu;
957 const Float_t kTetVFC = 0.;
958 const Float_t kPhiVFC = 0.;
959 const Float_t kH1VFC = 1.200/2.;
960 const Float_t kBl1VFC = 46.11/2.;
961 const Float_t kTl1VFC = 48.236/2.;
962 const Float_t kAlp1VFC = 41.54;
963 const Float_t kH2VFC = 1.200/2.;
964 const Float_t kBl2VFC = 46.11/2.;
965 const Float_t kTl2VFC = 48.236/2.;
966 const Float_t kAlp2VFC = 41.54;
969 const Float_t kHzVES = kHzVertBarSteel;
970 const Float_t kTetVES = 0.;
971 const Float_t kPhiVES = 0.;
972 const Float_t kH1VES = 1.200/2.;
973 const Float_t kBl1VES = 30.486/2.;
974 const Float_t kTl1VES = 32.777/2.;
975 const Float_t kAlp1VES = 43.67;
976 const Float_t kH2VES = 1.200/2.;
977 const Float_t kBl2VES = 30.486/2.;
978 const Float_t kTl2VES = 32.777/2.;
979 const Float_t kAlp2VES = 43.67;
982 const Float_t kHzVPC = kHzVertEarthProfCu;
983 const Float_t kTetVPC = 0.;
984 const Float_t kPhiVPC = 0.;
985 const Float_t kH1VPC = 0.400/2.;
986 const Float_t kBl1VPC = 29.287/2.;
987 const Float_t kTl1VPC = 30.091/2.;
988 const Float_t kAlp1VPC = 45.14;
989 const Float_t kH2VPC = 0.400/2.;
990 const Float_t kBl2VPC = 29.287/2.;
991 const Float_t kTl2VPC = 30.091/2.;
992 const Float_t kAlp2VPC = 45.14;
995 const Float_t kHxSLP = 2.80/2.;
996 const Float_t kHySLP = 5.00/2.;
997 const Float_t kHzSLP = kHzLateralPosnAl;
1000 const Float_t kHxLPF = 5.2/2.;
1001 const Float_t kHyLPF = 3.0/2.;
1002 const Float_t kHzLPF = kHzLateralPosnInoxFace;
1005 const Float_t kHxLPP = 0.425/2.;
1006 const Float_t kHyLPP = 3.0/2.;
1007 const Float_t kHzLPP = kHzLatPosInoxProfM;
1008 const Float_t kHzLPNF = kHzLatPosInoxProfNF;
1013 const Float_t kH1VC1 = 10.25/2.;
1014 const Float_t kBl1VC1 = 3.70/2.;
1015 const Float_t kBl1VC2 = 6.266/2.;
1016 const Float_t kBl1VC3 = 7.75/2.;
1019 const Float_t kHzVC4 = kHzVerticalCradleAl;
1020 const Float_t kTetVC4 = 0.;
1021 const Float_t kPhiVC4 = 0.;
1022 const Float_t kH1VC4 = 10.27/2.;
1023 const Float_t kBl1VC4 = 8.273/2.;
1024 const Float_t kTl1VC4 = 7.75/2.;
1025 const Float_t kAlp1VC4 = -1.46;
1026 const Float_t kH2VC4 = 10.27/2.;
1027 const Float_t kBl2VC4 = 8.273/2.;
1028 const Float_t kTl2VC4 = 7.75/2.;
1029 const Float_t kAlp2VC4 = -1.46;
1032 const Float_t kHzVSS = kHzLateralSightAl;
1033 const Float_t kTetVSS = 0.;
1034 const Float_t kPhiVSS = 0.;
1035 const Float_t kH1VSS = 5.00/2.;
1036 const Float_t kBl1VSS = 7.747/2;
1037 const Float_t kTl1VSS = 7.188/2.;
1038 const Float_t kAlp1VSS = -3.20;
1039 const Float_t kH2VSS = 5.00/2.;
1040 const Float_t kBl2VSS = 7.747/2.;
1041 const Float_t kTl2VSS = 7.188/2.;
1042 const Float_t kAlp2VSS = -3.20;
1045 const Float_t kVSInRad = 0.6;
1046 const Float_t kVSOutRad = 1.3;
1047 const Float_t kVSLen = kHzFrameThickness;
1052 const Float_t kHxInHFrame = 75.8/2.;
1053 const Float_t kHyInHFrame = 1.85/2.;
1054 const Float_t kHzInHFrame = kHzFrameThickness;
1057 const Float_t kHxH1mm = 1.85/2.;
1058 const Float_t kHyH1mm = 0.75/2.;
1059 const Float_t kHzH1mm = kHzFrameThickness;
1064 const Float_t kIAF = 15.70;
1065 const Float_t kOAF = 17.55;
1066 const Float_t kHzAF = kHzFrameThickness;
1067 const Float_t kAFphi1 = 0.0;
1068 const Float_t kAFphi2 = 90.0;
1073 const Float_t kSCRUHMI = 0.;
1074 const Float_t kSCRUHMA = 0.690/2.;
1075 const Float_t kSCRUHLE = 0.4/2.;
1077 const Float_t kSCRUMMI = 0.;
1078 const Float_t kSCRUMMA = 0.39/2.;
1079 const Float_t kSCRUMLE = kHzFrameThickness;
1081 const Float_t kSCRUNMI = 0.;
1082 const Float_t kSCRUNMA = 0.78/2.;
1083 const Float_t kSCRUNLE = 0.8/2.;
1088 Float_t posX,posY,posZ;
1092 par[0] = kHxInVFrame;
1093 par[1] = kHyInVFrame;
1094 par[2] = kHzInVFrame;
1095 TVirtualMC::GetMC()->Gsvolu(
"SQ00",
"BOX",idFrameEpoxy,par,3);
1101 TVirtualMC::GetMC()->Gsvolu(
"SQ01",
"BOX",idFrameEpoxy,par,3);
1113 TVirtualMC::GetMC()->Gsvolu(
"SQ02",
"BOX",idFrameEpoxy,par,3);
1117 TVirtualMC::GetMC()->Gsvolu(
"SQ03",
"BOX",idInox,par,3);
1121 Double_t dx, dx0, dx1, dx2, dx3;
1122 Double_t dy, dy1, dy2, dy3, dy4;
1136 vx[0] = 0.0; vy[0] = 0.0;
1137 vx[1] = 0.0; vy[1] = dy1;
1138 vx[2] = dx; vy[2] = dy2;
1139 vx[3] = 2*dx; vy[3] = 0.0;
1140 vx[4] = dx; vy[4] = 0.0;
1143 for ( Int_t i=0; i<nv; i++ ) {
1148 TGeoXtru* xtruS5 =
new TGeoXtru(nz);
1149 xtruS5->DefinePolygon(nv, vx, vy);
1150 xtruS5->DefineSection(0, -kHzOuterFrameEpoxy, 0.0, 0.0, 1.0);
1151 xtruS5->DefineSection(1, kHzOuterFrameEpoxy, 0.0, 0.0, 1.0);
1152 new TGeoVolume(
"SQ04toSQ06", xtruS5, kMedEpoxy);
1154 TGeoXtru* xtruS6 =
new TGeoXtru(nz);
1155 xtruS6->DefinePolygon(nv, vx, vy);
1156 xtruS6->DefineSection(0, -kHzOuterFrameInox, 0.0, 0.0, 1.0);
1157 xtruS6->DefineSection(1, kHzOuterFrameInox, 0.0, 0.0, 1.0);
1158 new TGeoVolume(
"SQ05toSQ07", xtruS6, kMedInox);
1165 TVirtualMC::GetMC()->Gsvolu(
"SQ08",
"BOX",idInox,par,3);
1169 TVirtualMC::GetMC()->Gsvolu(
"SQ09",
"BOX",idFR4,par,3);
1183 TVirtualMC::GetMC()->Gsvolu(
"SQ10",
"TRAP",idInox,par,11);
1187 TVirtualMC::GetMC()->Gsvolu(
"SQ11",
"TRAP",idFR4,par,11);
1201 TVirtualMC::GetMC()->Gsvolu(
"SQ12",
"TRAP",idFR4,par,11);
1215 TVirtualMC::GetMC()->Gsvolu(
"SQ13",
"TRAP",idCopper,par,11);
1229 TVirtualMC::GetMC()->Gsvolu(
"SQ14",
"TRAP",idCopper,par,11);
1235 TVirtualMC::GetMC()->Gsvolu(
"SQ15",
"BOX",idAlu,par,3);
1249 TVirtualMC::GetMC()->Gsvolu(
"SQ16",
"TRAP",idInox,par,11);
1264 vx[0] = -4*dx; vy[0] = 0.0;
1265 vx[1] = -3*dx; vy[1] = dy1;
1266 vx[2] = -2*dx; vy[2] = dy2;
1267 vx[3] = -1*dx; vy[3] = dy3;
1268 vx[4] = 0.0; vy[4] = dy4;
1269 vx[5] = dx; vy[5] = dy3;
1270 vx[6] = 2*dx; vy[6] = dy2;
1271 vx[7] = 3*dx; vy[7] = dy1;
1272 vx[8] = 4*dx; vy[8] = 0.0;
1273 vx[9] = 3*dx; vy[9] = 0.0;
1274 vx[10] = 2*dx; vy[10] = 0.0;
1275 vx[11] = dx; vy[11] = 0.0;
1276 vx[12] = 0.0; vy[12] = 0.0;
1277 vx[13] = -1*dx; vy[13] = 0.0;
1278 vx[14] = -2*dx; vy[14] = 0.0;
1279 vx[15] = -3*dx; vy[15] = 0.0;
1282 for ( Int_t i=0; i<nv; i++ ) vy[i] += dy4/2.0;
1284 TGeoXtru* xtruS1 =
new TGeoXtru(nz);
1285 xtruS1->DefinePolygon(nv, vx, vy);
1286 xtruS1->DefineSection(0, -kHzOuterFrameEpoxy, 0.0, 0.0, 1.0);
1287 xtruS1->DefineSection(1, kHzOuterFrameEpoxy, 0.0, 0.0, 1.0);
1288 new TGeoVolume(
"SQ17to23", xtruS1, kMedEpoxy );
1290 TGeoXtru* xtruS2 =
new TGeoXtru(nz);
1291 xtruS2->DefinePolygon(nv, vx, vy);
1292 xtruS2->DefineSection(0, -kHzOuterFrameInox, 0.0, 0.0, 1.0);
1293 xtruS2->DefineSection(1, kHzOuterFrameInox, 0.0, 0.0, 1.0);
1294 new TGeoVolume(
"SQ18to24", xtruS2, kMedInox );
1300 par[0] = kHxOutVFrame;
1301 par[1] = kHyOutVFrame;
1302 par[2] = kHzOutVFrame;
1303 TVirtualMC::GetMC()->Gsvolu(
"SQ25",
"BOX",idFrameEpoxy,par,3);
1316 par[10] = kAlp2OCTF;
1317 TVirtualMC::GetMC()->Gsvolu(
"SQ26",
"TRAP",idFrameEpoxy,par,11);
1331 TVirtualMC::GetMC()->Gsvolu(
"SQ27",
"TRAP",idCopper,par,11);
1345 TVirtualMC::GetMC()->Gsvolu(
"SQ28",
"TRAP",idInox,par,11);
1359 TVirtualMC::GetMC()->Gsvolu(
"SQ29",
"TRAP",idCopper,par,11);
1365 TVirtualMC::GetMC()->Gsvolu(
"SQ30",
"BOX",idAlu,par,3);
1371 TVirtualMC::GetMC()->Gsvolu(
"SQ31",
"BOX",idInox,par,3);
1377 TVirtualMC::GetMC()->Gsvolu(
"SQ32",
"BOX",idInox,par,3);
1382 TVirtualMC::GetMC()->Gsvolu(
"SQ33",
"BOX",idInox,par,3);
1395 vx[0] = 0.0; vy[0] = 0.0;
1396 vx[1] = 0.0; vy[1] = dy;
1397 vx[2] = 0.0; vy[2] = 2*dy;
1398 vx[3] = 0.0; vy[3] = 3*dy;
1399 vx[4] = dx3; vy[4] = 2*dy;
1400 vx[5] = dx2; vy[5] = dy;
1401 vx[6] = dx1; vy[6] = 0.0;
1404 for ( Int_t i=0; i<nv; i++ ) {
1409 TGeoXtru* xtruS3 =
new TGeoXtru(nz);
1410 xtruS3->DefinePolygon(nv, vx, vy);
1411 xtruS3->DefineSection(0, -kHzVerticalCradleAl, 0.0, 0.0, 1.0);
1412 xtruS3->DefineSection(1, kHzVerticalCradleAl, 0.0, 0.0, 1.0);
1413 new TGeoVolume(
"SQ34to36", xtruS3, kMedAlu);
1420 vx[0] = 0.0; vy[0] =-1.0*dy;
1421 vx[1] = 0.0; vy[1] = 0.0;
1422 vx[2] = 0.0; vy[2] = dy;
1423 vx[3] = 0.0; vy[3] = 2*dy;
1424 vx[4] = 0.0; vy[4] = 3*dy;
1425 vx[5] = dx3; vy[5] = 2*dy;
1426 vx[6] = dx2; vy[6] = dy;
1427 vx[7] = dx1; vy[7] = 0.0;
1428 vx[8] = dx0; vy[8] =-1.0*dy;
1431 for ( Int_t i=0; i<nv; i++ ) {
1436 TGeoXtru* xtruS4 =
new TGeoXtru(nz);
1437 xtruS4->DefinePolygon(nv, vx, vy);
1438 xtruS4->DefineSection(0, -kHzVerticalCradleAl, 0.0, 0.0, 1.0);
1439 xtruS4->DefineSection(1, kHzVerticalCradleAl, 0.0, 0.0, 1.0);
1440 new TGeoVolume(
"SQ34to37", xtruS4, kMedAlu);
1454 TVirtualMC::GetMC()->Gsvolu(
"SQ37",
"TRAP",idAlu,par,11);
1468 TVirtualMC::GetMC()->Gsvolu(
"SQ38",
"TRAP",idAlu,par,11);
1474 TVirtualMC::GetMC()->Gsvolu(
"SQ39",
"TUBE",idFrameEpoxy,par,3);
1478 par[0] = kHxInHFrame;
1479 par[1] = kHyInHFrame;
1480 par[2] = kHzInHFrame;
1481 TVirtualMC::GetMC()->Gsvolu(
"SQ40",
"BOX",idFrameEpoxy,par,3);
1487 TVirtualMC::GetMC()->Gsvolu(
"SQ41",
"BOX",idFrameEpoxy,par,3);
1496 TVirtualMC::GetMC()->Gsvolu(
"SQ42",
"TUBS",idFrameEpoxy,par,5);
1505 TVirtualMC::GetMC()->Gsvolu(
"SQ43",
"TUBE",idInox,par,3);
1511 TVirtualMC::GetMC()->Gsvolu(
"SQ44",
"TUBE",idInox,par,3);
1517 TVirtualMC::GetMC()->Gsvolu(
"SQ45",
"TUBE",idInox,par,3);
1524 posY = 2.0*kHyInHFrame+2.*kHyH1mm+kIAF+kHyInVFrame;
1526 TVirtualMC::GetMC()->Gspos(
"SQ00",1,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1529 const GReal_t kMidVposX = posX;
1530 const GReal_t kMidVposY = posY;
1531 const GReal_t kMidVposZ = posZ;
1534 posX = 2.0*kHxInVFrame+kHxV1mm;
1535 posY = 2.0*kHyInHFrame+2.*kHyH1mm+kIAF+kHyV1mm;
1537 TVirtualMC::GetMC()->Gspos(
"SQ01",1,quadrantMLayerName,posX, posY, posZ,0,
"ONLY");
1541 posY = 2.*kHyInHFrame+2.*kHyH1mm+kIAF+2.*kHyInVFrame+kHyTFA;
1542 posZ = -kHzOuterFrameInox;
1543 TVirtualMC::GetMC()->Gspos(
"SQ02",1,quadrantMLayerName,posX, posY, posZ,0,
"ONLY");
1544 posZ = kHzOuterFrameEpoxy;
1545 TVirtualMC::GetMC()->Gspos(
"SQ03",1,quadrantMLayerName,posX, posY, posZ,0,
"ONLY");
1549 posX += kHxTFA + 2.*kH1FAA;
1550 posZ = -kHzOuterFrameInox;
1551 TVirtualMC::GetMC()->Gspos(
"SQ04toSQ06",1,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1552 posZ = kHzOuterFrameEpoxy;
1553 TVirtualMC::GetMC()->Gspos(
"SQ05toSQ07",1,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1558 posZ = -1.*kHzAnodeFR4;
1559 TVirtualMC::GetMC()->Gspos(
"SQ08",1,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1560 posZ = kHzTopAnodeSteel1;
1561 TVirtualMC::GetMC()->Gspos(
"SQ09",1,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1566 posZ = -1.*kHzAnodeFR4;
1569 TVirtualMC::GetMC()->Gspos(
"SQ10",1,quadrantMLayerName,posX, posY, posZ, rot1,
"ONLY");
1570 posZ = kHzTopAnodeSteel2;
1571 TVirtualMC::GetMC()->Gspos(
"SQ11",1,quadrantMLayerName,posX, posY, posZ, rot1,
"ONLY");
1577 TVirtualMC::GetMC()->Gspos(
"SQ12",1,quadrantMLayerName,posX, posY, posZ, rot1,
"ONLY");
1582 posZ = kHzOuterFrameEpoxy+kHzOuterFrameInox+kHzTopEarthFaceCu;
1583 TVirtualMC::GetMC()->Gspos(
"SQ13",1,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1585 TVirtualMC::GetMC()->Gspos(
"SQ13",2,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1590 posZ = kHzTopEarthProfileCu;
1591 TVirtualMC::GetMC()->Gspos(
"SQ14",1,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1593 TVirtualMC::GetMC()->Gspos(
"SQ14",2,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1598 posZ = kHzOuterFrameEpoxy+kHzOuterFrameInox+kHzTopGasSupportAl;
1599 TVirtualMC::GetMC()->Gspos(
"SQ15",1,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1601 TVirtualMC::GetMC()->Gspos(
"SQ15",2,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1606 posZ = kHzOuterFrameEpoxy+kHzOuterFrameInox+2.*kHzTopGasSupportAl+kHzTopPositionerSteel;
1607 TVirtualMC::GetMC()->Gspos(
"SQ16",1,quadrantMLayerName,posX, posY, posZ, rot1,
"ONLY");
1609 TVirtualMC::GetMC()->Gspos(
"SQ16",2,quadrantMLayerName,posX, posY, posZ, rot1,
"ONLY");
1613 posZ = -1.0*kHzOuterFrameInox;
1615 Double_t xCenterAll = 70.500;
1616 Double_t yCenterAll = 70.350;
1617 TVirtualMC::GetMC()->Gspos(
"SQ17to23",1,quadrantMLayerName, xCenterAll, yCenterAll, posZ, rot4,
"ONLY");
1619 posZ = kHzOuterFrameEpoxy;
1620 TVirtualMC::GetMC()->Gspos(
"SQ18to24",1,quadrantMLayerName, xCenterAll, yCenterAll, posZ, rot4,
"ONLY");
1625 posX = 2.*kHxInVFrame+kIAF+2.*kHxInHFrame-kHxOutVFrame+2.*kHxV1mm;
1626 posY = 2.*kHyInHFrame+kHyOutVFrame;
1628 TVirtualMC::GetMC()->Gspos(
"SQ25",1,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1631 const GReal_t kMidOVposX = posX;
1632 const GReal_t kMidOVposY = posY;
1633 const GReal_t kMidOVposZ = posZ;
1635 const Float_t kTOPY = posY+kHyOutVFrame;
1636 const Float_t kOUTX = posX;
1640 posY = kTOPY+((kBl1OCTF+kTl1OCTF)/2.);
1644 TVirtualMC::GetMC()->Gspos(
"SQ26",1,quadrantMLayerName,posX, posY, posZ, rot1,
"ONLY");
1649 posZ = kHzFrameThickness+2.0*kHzFoam+kHzVertEarthFaceCu;
1650 TVirtualMC::GetMC()->Gspos(
"SQ27",1,quadrantMLayerName,posX, posY, posZ, rot1,
"ONLY");
1652 TVirtualMC::GetMC()->Gspos(
"SQ27",2,quadrantMLayerName,posX, posY, posZ, rot1,
"ONLY");
1657 posZ = kHzFrameThickness+2.0*kHzFoam+kHzVertBarSteel;
1658 TVirtualMC::GetMC()->Gspos(
"SQ28",1,quadrantMLayerName,posX, posY, posZ, rot1,
"ONLY");
1660 TVirtualMC::GetMC()->Gspos(
"SQ28",2,quadrantMLayerName,posX, posY, posZ, rot1,
"ONLY");
1665 posZ = kHzFrameThickness;
1666 TVirtualMC::GetMC()->Gspos(
"SQ29",1,quadrantMLayerName,posX, posY, posZ, rot1,
"ONLY");
1668 TVirtualMC::GetMC()->Gspos(
"SQ29",2,quadrantMLayerName,posX, posY, posZ, rot1,
"ONLY");
1671 posX = 90.2-kNearFarLHC;
1672 posY = 5.00-kNearFarLHC;
1674 TVirtualMC::GetMC()->Gspos(
"SQ30",1,quadrantFLayerName,posX, posY, posZ, 0,
"ONLY");
1676 TVirtualMC::GetMC()->Gspos(
"SQ30",2,quadrantNLayerName,posX, posY, posZ, 0,
"ONLY");
1679 posX = 92.175-kNearFarLHC-2.*kHxLPP;
1680 posY = 5.00-kNearFarLHC;
1682 TVirtualMC::GetMC()->Gspos(
"SQ31",1,quadrantFLayerName,posX, posY, posZ, 0,
"ONLY");
1684 TVirtualMC::GetMC()->Gspos(
"SQ31",2,quadrantNLayerName,posX, posY, posZ, 0,
"ONLY");
1690 TVirtualMC::GetMC()->Gspos(
"SQ32",1,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1692 posX = 92.175-kNearFarLHC+kHxLPF-kHxLPP;
1693 posY = 5.0000-kNearFarLHC;
1694 posZ = fgkMotherThick2-kHzLPNF;
1695 TVirtualMC::GetMC()->Gspos(
"SQ33",1,quadrantNLayerName,posX, posY, posZ, 0,
"ONLY");
1697 TVirtualMC::GetMC()->Gspos(
"SQ33",2,quadrantFLayerName,posX, posY, posZ, 0,
"ONLY");
1706 TVirtualMC::GetMC()->Gspos(
"SQ34to37",2,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1708 posX = 97.29-kNearFarLHC;
1709 posY = 23.02-kNearFarLHC;
1712 TVirtualMC::GetMC()->Gspos(
"SQ34to36",1,quadrantNLayerName,posX, posY, posZ, 0,
"ONLY");
1715 TVirtualMC::GetMC()->Gspos(
"SQ34to36",3,quadrantFLayerName,posX, posY, posZ, 0,
"ONLY");
1723 TVirtualMC::GetMC()->Gspos(
"SQ37",1,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1725 TVirtualMC::GetMC()->Gspos(
"SQ37",3,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1728 posX = 98.33-kNearFarLHC;
1729 posY = 10.00-kNearFarLHC;
1733 TVirtualMC::GetMC()->Gspos(
"SQ38",1,quadrantNLayerName,posX, posY, posZ, 0,
"ONLY");
1735 TVirtualMC::GetMC()->Gspos(
"SQ38",2,quadrantFLayerName,posX, posY, posZ, 0,
"ONLY");
1741 TVirtualMC::GetMC()->Gspos(
"SQ39",1,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1746 posX = 2.0*kHxInVFrame+2.*kHxV1mm+kIAF+kHxInHFrame;
1749 TVirtualMC::GetMC()->Gspos(
"SQ40",1,quadrantMLayerName,posX, posY, posZ, 0,
"ONLY");
1752 const GReal_t kMidHposX = posX;
1753 const GReal_t kMidHposY = posY;
1754 const GReal_t kMidHposZ = posZ;
1757 posX = 2.0*kHxInVFrame+2.*kHxV1mm+kIAF+kHxH1mm;
1758 posY = 2.0*kHyInHFrame+kHyH1mm;
1760 TVirtualMC::GetMC()->Gspos(
"SQ41",1,quadrantMLayerName,posX, posY, posZ,0,
"ONLY");
1763 posX = 2.0*kHxInVFrame+2.*kHxV1mm;
1764 posY = 2.0*kHyInHFrame+2.*kHyH1mm;
1766 TVirtualMC::GetMC()->Gspos(
"SQ42",1,quadrantMLayerName,posX, posY, posZ,0,
"ONLY");
1769 const GReal_t kMidArcposX = posX;
1770 const GReal_t kMidArcposY = posY;
1771 const GReal_t kMidArcposZ = posZ;
1780 const Int_t kNumberOfScrewsIH = 14;
1781 const Float_t kOffX = 5.;
1787 for (Int_t i = 1;i<kNumberOfScrewsIH;i++){
1788 scruX[i] = scruX[i-1]+kOffX;
1789 scruY[i] = scruY[0];
1792 for (Int_t i = 0;i<kNumberOfScrewsIH;i++){
1796 TVirtualMC::GetMC()->Gspos(
"SQ43",i+1,quadrantMLayerName,posX+0.1, posY+0.1, posZ-kHzInHFrame-kSCRUHLE, 0,
"ONLY");
1798 TVirtualMC::GetMC()->Gspos(
"SQ44",i+1,
"SQ40",posX+0.1-kMidHposX, posY+0.1-kMidHposY, posZ-kMidHposZ, 0,
"ONLY");
1799 TVirtualMC::GetMC()->Gspos(
"SQ45",i+1,quadrantMLayerName,posX+0.1, posY+0.1, posZ+kHzInHFrame+kSCRUNLE, 0,
"ONLY");
1807 TVirtualMC::GetMC()->Gspos(
"SQ43",64,quadrantMLayerName,posX+0.1, posY+0.1, posZ-kHzInHFrame-kSCRUHLE, 0,
"ONLY");
1809 TVirtualMC::GetMC()->Gspos(
"SQ44",64,
"SQ40",posX+0.1-kMidHposX, posY+0.1-kMidHposY, posZ-kMidHposZ, 0,
"ONLY");
1810 TVirtualMC::GetMC()->Gspos(
"SQ45",64,quadrantMLayerName,posX+0.1, posY+0.1, posZ+kHzInHFrame+kSCRUNLE, 0,
"ONLY");
1814 const Int_t kNumberOfScrewsIV = 15;
1815 const Float_t kOffY = 5.;
1816 Int_t firstScrew = 58;
1817 Int_t lastScrew = 44;
1820 scruX[firstScrew-1] = -2.23;
1821 scruY[firstScrew-1] = 16.3;
1823 scruX[firstScrew-2] = -2.23;
1824 scruY[firstScrew-2] = 21.07;
1826 for (Int_t i = firstScrew-3;i>lastScrew-2;i--){
1827 scruX[i] = scruX[firstScrew-2];
1828 scruY[i] = scruY[i+1]+kOffY;
1831 for (Int_t i = 0;i<kNumberOfScrewsIV;i++){
1835 TVirtualMC::GetMC()->Gspos(
"SQ43",i+lastScrew,quadrantMLayerName,posX+0.1, posY+0.1, posZ-kHzInHFrame-kSCRUHLE, 0,
"ONLY");
1837 TVirtualMC::GetMC()->Gspos(
"SQ44",i+lastScrew,
"SQ00",posX+0.1-kMidVposX, posY+0.1-kMidVposY, posZ-kMidVposZ, 0,
"ONLY");
1838 TVirtualMC::GetMC()->Gspos(
"SQ45",i+lastScrew,quadrantMLayerName,posX+0.1, posY+0.1, posZ+kHzInHFrame+kSCRUNLE, 0,
"ONLY");
1843 const Int_t kNumberOfScrewsOV = 10;
1850 scruX[firstScrew-1] = 90.9;
1851 scruY[firstScrew-1] = -2.23;
1854 for (Int_t i = firstScrew; i<lastScrew; i++ ){
1855 scruX[i] = scruX[firstScrew-1];
1856 scruY[i] = scruY[i-1]+kOffY;
1858 for (Int_t i = 1;i<kNumberOfScrewsOV;i++){
1862 TVirtualMC::GetMC()->Gspos(
"SQ43",i+firstScrew,quadrantMLayerName,posX+0.1, posY+0.1, posZ-kHzInHFrame-kSCRUHLE, 0,
"ONLY");
1865 TVirtualMC::GetMC()->Gspos(
"SQ44",i+firstScrew,
"SQ25",posX+0.1-kMidOVposX, posY+0.1-kMidOVposY, posZ-kMidOVposZ, 0,
"ONLY");
1866 TVirtualMC::GetMC()->Gspos(
"SQ45",i+firstScrew,quadrantMLayerName,posX+0.1, posY+0.1, posZ+kHzInHFrame+kSCRUNLE, 0,
"ONLY");
1873 TVirtualMC::GetMC()->Gspos(
"SQ44",firstScrew,
"SQ40",posX+0.1-kMidHposX, posY+0.1-kMidHposY, posZ-kMidHposZ, 0,
"ONLY");
1876 scruX[62] = 16.009; scruY[62] = 1.401;
1877 scruX[61] = 14.564; scruY[61] = 6.791;
1878 scruX[60] = 11.363; scruY[60] = 11.363;
1879 scruX[59] = 6.791 ; scruY[59] = 14.564;
1880 scruX[58] = 1.401 ; scruY[58] = 16.009;
1882 for (Int_t i = 0;i<5;i++){
1886 TVirtualMC::GetMC()->Gspos(
"SQ43",i+58+1,quadrantMLayerName,posX+0.1, posY+0.1, posZ-kHzInHFrame-kSCRUHLE, 0,
"ONLY");
1888 TVirtualMC::GetMC()->Gspos(
"SQ44",i+58+1,
"SQ42",posX+0.1-kMidArcposX, posY+0.1-kMidArcposY, posZ-kMidArcposZ, 0,
"ONLY");
1889 TVirtualMC::GetMC()->Gspos(
"SQ45",i+58+1,quadrantMLayerName,posX+0.1, posY+0.1, posZ+kHzInHFrame+kSCRUNLE, 0,
"ONLY");
1901 Int_t dpos = (chamber-1)*2;
1905 TVirtualMC::GetMC()->Gspos(
"SA1C", 1+dpos,
QuadrantMLayerName(chamber),x,y, zc,0,
"ONLY");
1906 TVirtualMC::GetMC()->Gspos(
"SA1C", 2+dpos,
QuadrantMLayerName(chamber),x,y,-zc,0,
"ONLY");
1928 AliDebugStream(2) <<
"spacer05 pos1: " << x <<
", " << y <<
", " << z << endl;
1929 TVirtualMC::GetMC()->Gspos(
"Spacer05", 1,
QuadrantMLayerName(chamber), x, y, z, 0,
"ONLY");
1932 AliDebugStream(2) <<
"spacer05 pos2: " << x <<
", " << y <<
", " << z << endl;
1933 TVirtualMC::GetMC()->Gspos(
"Spacer05", 2,
QuadrantMLayerName(chamber), x, y, z, 0,
"ONLY");
1938 AliDebugStream(2) <<
"spacer06 pos1: " << x <<
", " << y <<
", " << z << endl;
1939 TVirtualMC::GetMC()->Gspos(
"Spacer06", 1,
QuadrantMLayerName(chamber), x, y, z, 0,
"ONLY");
1942 AliDebugStream(2) <<
"spacer06 pos2: " << x <<
", " << y <<
", " << z << endl;
1943 TVirtualMC::GetMC()->Gspos(
"Spacer06", 2,
QuadrantMLayerName(chamber), x, y, z, 0,
"ONLY");
1948 AliDebugStream(2) <<
"spacer07 pos1: " << x <<
", " << y <<
", " << z << endl;
1949 TVirtualMC::GetMC()->Gspos(
"Spacer07", 1,
QuadrantMLayerName(chamber), x, y, z, 0,
"ONLY");
1955 const TVector3& where, Bool_t reflectZ, Int_t chamber)
1963 static Int_t segNum=1;
1971 fMUON->AliMatrix(rotMat, 90.,90.,90,180.,0.,0.);
1974 fMUON->AliMatrix(reflZ, 90.,0.,90,90.,180.,0.);
1975 fMUON->AliMatrix(rotMat, 90.,90.,90,180.,180.,0.);
1980 TArrayI alreadyDone(20);
1981 Int_t nofAlreadyDone = 0;
1983 for (Int_t irow=0;irow<sector->
GetNofRows();irow++){
2007 for (Int_t motifNum=0;motifNum<seg->
GetNofMotifs();motifNum++) {
2013 Int_t copyNo = motifPosId;
2030 for (Int_t motifNum=0;motifNum<seg->
GetNofMotifs();motifNum++) {
2034 Bool_t isDone =
false;
2036 while (i<nofAlreadyDone && !isDone) {
2037 if (alreadyDone.At(i) == motifPosId) isDone=
true;
2040 if (isDone)
continue;
2043 AliDebugStream(2) << chamber <<
" processing special motif: " << motifPosId << endl;
2048 Int_t copyNo = motifPosId;
2052 Int_t rot = ( spMot.
GetRotAngle()<0.1 ) ? reflZ:rotMat;
2058 if ( copyNo == 2070 ) {
2068 if ( copyNo == 2070 ) {
2075 if (nofAlreadyDone == alreadyDone.GetSize())
2076 alreadyDone.Set(2*nofAlreadyDone);
2077 alreadyDone.AddAt(motifPosId, nofAlreadyDone++);
2079 AliDebugStream(2) << chamber <<
" processed motifPosId: " << motifPosId << endl;
2093 TString newString(name);
2098 newString.Insert(2, number);
2145 fMUON->AliMaterial(41,
"Aluminium II$", 26.98, 13., 2.7, -8.9, 26.1);
2163 Float_t aRohacell51[4] = { 12.01, 1.01, 16.00, 14.01};
2164 Float_t zRohacell51[4] = { 6., 1., 8., 7.};
2165 Float_t wRohacell51[4] = { 9., 13., 2., 1.};
2166 Float_t dRohacell51 = 0.052;
2167 fMUON->AliMixture(46,
"FOAM$",aRohacell51,zRohacell51,dRohacell51,-4,wRohacell51);
2171 Float_t aSnPb[2] = { 118.69, 207.19};
2172 Float_t zSnPb[2] = { 50, 82};
2173 Float_t wSnPb[2] = { 0.6, 0.4} ;
2174 Float_t dSnPb = 8.926;
2175 fMUON->AliMixture(47,
"SnPb$", aSnPb,zSnPb,dSnPb,2,wSnPb);
2180 Float_t aPlastic[2]={ 1.01, 12.01};
2181 Float_t zPlastic[2]={ 1, 6};
2182 Float_t wPlastic[2]={ 1, 1};
2183 Float_t denPlastic=1.107;
2184 fMUON->AliMixture(48,
"Plastic$",aPlastic,zPlastic,denPlastic,-2,wPlastic);
2193 Float_t aInox[3] = {55.847, 51.9961, 58.6934};
2194 Float_t zInox[3] = {26., 24., 28.};
2195 Float_t wInox[3] = {0.73, 0.18, 0.09};
2196 Float_t denInox = 7.930;
2197 fMUON->AliMixture(50,
"StainlessSteel$",aInox,zInox,denInox,3,wInox);
2216 Int_t iSXFLD = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->PrecInteg();
2217 Float_t sXMGMX = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Max();
2219 fMUON->AliMedium(21,
"ALU_II$", 41, 0, iSXFLD, sXMGMX,
2220 tmaxfd, maxStepAlu, maxDestepAlu, epsil, stmin);
2226 fMUON->AliMedium(26,
"FOAM_CH$", 46, 0, iSXFLD, sXMGMX,
2227 10.0, 0.1, 0.1, 0.1, 0.1, 0, 0) ;
2229 fMUON->AliMedium(27,
"SnPb$", 47, 0, iSXFLD, sXMGMX,
2230 10.0, 0.01, 1.0, 0.003, 0.003);
2232 fMUON->AliMedium(28,
"Plastic$", 48, 0, iSXFLD, sXMGMX,
2233 10.0, 0.01, 1.0, 0.003, 0.003);
2239 fMUON->AliMedium(30,
"InoxBolts$", 50, 1, iSXFLD, sXMGMX,
2240 10.0, 0.01, 1.0, 0.003, 0.003);
2251 AliDebug(1,
"Called");
2290 TGeoRotation rotm[4];
2291 rotm[0] = TGeoRotation(
"identity");
2292 rotm[1] = TGeoRotation(
"reflXZ", 90., 180., 90., 90., 180., 0.);
2293 rotm[2] = TGeoRotation(
"reflXY", 90., 180., 90., 270., 0., 0.);
2294 rotm[3] = TGeoRotation(
"reflYZ", 90., 0., 90.,-90., 180., 0.);
2297 scale[0] = TVector3( 1, 1, -1);
2298 scale[1] = TVector3(-1, 1, 1);
2299 scale[2] = TVector3(-1, -1, -1);
2300 scale[3] = TVector3( 1, -1, 1);
2309 Double_t deltaZ = 7.5/2.;
2320 for (Int_t ich=1; ich<3; ich++) {
2330 for (Int_t i=0; i<4; i++) {
2336 posz0 = deltaZ * scale[i].Z();
2339 TGeoTranslation(posx0, posy0, posz0), rotm[i]);
2348 i+1, TGeoTranslation(posx, posy, posz));
2351 i+5, TGeoTranslation(posx, posy, posz));
2354 GReal_t posx2 = posx + shiftXY;;
2355 GReal_t posy2 = posy + shiftXY;;
2356 GReal_t posz2 = posz - shiftZ;;
2360 i+1, TGeoTranslation(posx2, posy2, posz2));
2362 posz2 = posz + shiftZ;
2366 i+1, TGeoTranslation(posx2, posy2, posz2));
2383 if (
gAlice->GetModule(
"SHIL")) {
Double_t GetPositionY() const
Return y position.
TString QuadrantNLayerName(Int_t chamber) const
Return nearer quadrant layer name for chamber chamber.
virtual void CreateGeometry()
void CreateQuadrantLayersAsAssemblies(Int_t chamber)
Abstract base class for geometry construction per module(s)
AliMUON * fMUON
the MUON detector class
TString QuadrantMFLayerName(Int_t chamber) const
Return middle quadrant frame layer name for chamber chamber.
static AliMpSegmentation * Instance(Bool_t warn=true)
virtual Double_t GetDimensionX() const =0
Return the x dimension of the row segment centre.
static const GReal_t fgkHzGas
ArCO2 Gas.
static const GReal_t fgkMotherThick1
Middle Layer Hz.
static AliMp::CathodType GetCathod(Int_t detElemId, AliMp::PlaneType planeType)
static const GReal_t fgkHyBergCopper
Berg connector parameter.
void SetMotherVolume(Int_t moduleId, const TString &volumeName)
static const GReal_t fgkMotherPhiL2
Near and Far Layer Sphi.
static const GReal_t fgkHzBergCopper
Berg connector (80 pt)
static const GReal_t fgkMotherIR1
Middle Layer Rin.
TString PlaneSegmentName(Int_t segNumber) const
Return plane segment name for segment segNumber.
static const GReal_t fgkMotherOR1
Middle Layer Rout.
void PlaceSpacer0(Int_t chamber)
static const GReal_t fgkDeltaFilleEtamY
Electronics parameter.
void CreateDaughterBoard()
static const GReal_t fgkHyKapton
Kapton parameter.
AliDetector class for MUON subsystem providing simulation data management.
void SetSensitiveVolume(Int_t volId)
static const Int_t fgkDaughterCopyNoOffset
copy number offset for daughter boards positions in non-bending plane
virtual ~AliMUONSt1GeometryBuilderV2()
static const GReal_t fgkHzDaughter
Daughter board.
void AddEnvelope(const TString &name, Int_t id, Bool_t isVirtual, const char *only="ONLY")
virtual void SetSensitiveVolumes()
TString QuadrantFLayerName(Int_t chamber) const
Return farther quadrant layer name for chamber chamber.
static const GReal_t fgkHxKapton
Kapton parameter.
static const GReal_t fgkHyHole
foam hole paremeter
void CreateFoamBox(Int_t segNumber, const TVector2 &dimensions)
An interface for a row segment.
static const GReal_t fgkDeltaFilleEtamX
Electronics parameter.
GReal_t TotalHzDaughter() const
Return total daughter plane half Size.
static const GReal_t fgkHzFR4
FR4 of mechanical plane.
TString QuadrantMLayerName(Int_t chamber) const
Return middle quadrant layer name for chamber chamber.
Double_t GetRotAngle() const
Return rotation angle in degrees (0 = vertical)
void SetTranslation(Int_t moduleId, const TGeoTranslation &translation)
const AliMpSector * GetSector(const AliMpVSegmentation *kSegmentation, Bool_t warn=true) const
AliMUONGeometryModule * GetGeometry(Int_t moduleId) const
static const GReal_t fgkHxBergPlastic
Berg connector parameter.
AliMpVRowSegment * GetRowSegment(Int_t i) const
TString QuadrantEnvelopeName(Int_t chamber, Int_t quadrant) const
virtual Double_t GetPositionX() const =0
Return the x position of the row segment centre.
void AddEnvelopeConstituent(const TString &name, const TString &envName, Int_t copyNo)
AliMp::Direction GetDirection() const
Return the direction of constant pad size.
static const GReal_t fgkMotherPhiU1
Middle Layer Endphi.
void CreateQuadrantLayersAsVolumes(Int_t chamber)
virtual Double_t GetPositionY() const =0
Return the y position of the row segment centre.
AliMUONSt1GeometryBuilderV2()
Double_t GetPositionX() const
static const GReal_t fgkOffsetY
Offset Y.
A row composed of the row segments.
MUON Station1 detailed geometry construction class.
static const GReal_t fgkPadXOffsetBP
Horizontal offset in bending plane.
A sector (quadrant) of the MUON chamber of stations 1 and 2.
static const GReal_t fgkMotherPhiL1
Middle Layer Sphi.
virtual Int_t GetMotifPositionId(Int_t i) const =0
Return the i-th motif position Id of this row segment.
Double_t GetPositionY() const
TVector2 GetDelta() const
Return offset.
static const GReal_t fgkHzBergPlastic
Berg connector.
static const GReal_t fgkHzSnPb
Pad/Kapton connection (66 pt)
virtual Double_t GetDimensionY() const =0
Return the y dimension of the row segment centre.
static const GReal_t fgkMotherIR2
Near and Far Layer Rin.
AliMUONGeometryEnvelopeStore * GetEnvelopes(Int_t moduleId) const
static const GReal_t fgkOffsetX
Offset X.
static const GReal_t fgkHzFoam
Foam of mechanicalplane.
AliMpMotifMap * GetMotifMap() const
Return the motif map.
void PlaceSector(const AliMpSector *sector, TExMap specialMap, const TVector3 &where, Bool_t reflectZ, Int_t chamber)
static const GReal_t fgkFrameOffset
Frame offset.
virtual Float_t GetMaxStepAlu() const
static const GReal_t fgkDeltaQuadLHC
LHC Origin wrt Quadrant Origin.
GReal_t TotalHzPlane() const
Return total mechanical plane half Size.
virtual void SetTransformations()
static const GReal_t fgkPadYOffsetBP
Vertical offset in bending plane.
void SetVolume(Int_t moduleId, const TString &volumeName, Bool_t isVirtual=false)
virtual Float_t GetMaxDestepAlu() const
static Float_t * DefaultChamberZ()
Return pointer to array of positions.
TString FoamBoxName(Int_t segNumber) const
Return foam box name for segment segNumber.
void CreatePlaneSegment(Int_t segNumber, const TVector2 &dimensions, Int_t nofHoles)
AliMpMotifPosition * FindMotifPosition(Int_t motifPositionID) const
static const GReal_t fgkHyBergPlastic
Berg connector parameter.
static const GReal_t fgkHxBergCopper
Berg connector parameter.
void PlaceInnerLayers(Int_t chamber)
static const GReal_t fgkHxDaughter
Electronics parameter.
static const GReal_t fgkHzKapton
Kapton.
Double_t GetPositionX() const
Return x position.
static const GReal_t fgkHxHole
foam hole paremeter
static const char * fgkQuadrantEnvelopeName
prefix for automatic volume naming
void CreateFrame(Int_t chamber)
Helper class to encapsulate the distance between the daughter card and the pad/kapton connector...
static const GReal_t fgkHyDaughter
Electronics parameter.
static const GReal_t fgkMotherPhiU2
Near and Far Layer Endphi.
Int_t GetNofRowSegments() const
TString FR4BoxName(Int_t segNumber) const
Return FR4 box name for segment segNumber.
virtual void SetVolumes()
and eventually the mother volume name should be defined
AliMpRow * GetRow(Int_t i) const
static const GReal_t fgkMotherThick2
Near and Far Layer Hz.
static const GReal_t fgkMotherOR2
Near and Far Layer Rout.
void CreateQuadrant(Int_t chamber)
virtual Int_t GetNofMotifs() const =0
Return the number of motifs in this this row segment.
static Int_t ManuMask(AliMp::PlaneType planeType)
static const GReal_t fgkHzPadPlane
Pad plane.
static const char * fgkHoleName
prefix for automatic volume naming
TString GasVolumeName(const TString &name, Int_t chamber) const
static const char * fgkDaughterName
prefix for automatic volume naming
virtual void CreateMaterials()