60 physicalTreatmentRoom(0),iortDetectorConstruction(0),
64 solidFinalCollimatorIORT(0),
65 logicFinalCollimatorIORT(0),
66 physiFinalCollimatorIORT(0),
68 solidGiunz1FinalCollIORT(0),
69 logicGiunz1FinalCollIORT(0),
70 physiGiunz1FinalCollIORT(0),
72 solidGiunz2FinalCollIORT(0),
73 logicGiunz2FinalCollIORT(0),
74 physiGiunz2FinalCollIORT(0),
76 solidGiunz3FinalCollIORT(0),
77 logicGiunz3FinalCollIORT(0),
78 physiGiunz3FinalCollIORT(0),
80 solidGiunz3FinalCollIntIORT(0),
81 logicGiunz3FinalCollIntIORT(0),
82 physiGiunz3FinalCollIntIORT(0),
84 solidGiunz4FinalCollIORT(0),
85 logicGiunz4FinalCollIORT(0),
86 physiGiunz4FinalCollIORT(0),
88 solidGiunz5FinalCollIORT(0),
89 logicGiunz5FinalCollIORT(0),
90 physiGiunz5FinalCollIORT(0),
104 solidBlocco20mmIORT(0),
105 logicBlocco20mmIORT(0),
106 physiBlocco20mmIORT(0),
153 delete collimatorMessenger;
154 delete iortDetectorConstruction;
163 SetDefaultDimensions();
166 ConstructCollimator80BeamLine();
172 return physicalTreatmentRoom;
185 void Collimator80BeamLine::SetDefaultDimensions()
190 white -> SetVisibility(
true);
194 blue -> SetVisibility(
true);
198 gray-> SetVisibility(
true);
202 red-> SetVisibility(
true);
206 yellow-> SetVisibility(
true);
210 green -> SetVisibility(
true);
214 darkGreen -> SetVisibility(
true);
218 darkOrange3 -> SetVisibility(
true);
222 skyBlue -> SetVisibility(
true);
229 G4double defaultOuterRadiusFinalCollimatorIORT = 45. *
mm;
230 OuterRadiusFinalCollimatorIORT = defaultOuterRadiusFinalCollimatorIORT;
232 G4double defaultinnerRadiusFinalCollimatorIORT = 40. *
mm;
233 innerRadiusFinalCollimatorIORT = defaultinnerRadiusFinalCollimatorIORT;
270 finalCollimatorMaterialIORT = PMMANist;
273 Giunz1FinalCollMaterialIORT = PMMANist;
276 Giunz2FinalCollMaterialIORT = PMMANist;
279 Giunz3FinalCollMaterialIORT = PMMANist;
282 Giunz3FinalCollMaterialIntIORT = airNist;
285 Giunz4FinalCollMaterialIORT = PMMANist;
288 Giunz5FinalCollMaterialIORT = PMMANist;
291 Blocco1IORTMaterialIORT = PMMANist;
294 Blocco2IORTMaterialIORT = PMMANist;
297 Blocco3IORTMaterialIORT = PMMANist;
300 Blocco20mmIORTMaterialIORT = PMMANist;
303 CM1_1_2IORTMaterialIORT = aluminumNist;
306 CM1_2_2IORTMaterialIORT = aluminumNist;
309 CM2_1_2IORTMaterialIORT = aluminumNist;
312 CM2_2_2IORTMaterialIORT = aluminumNist;
315 CCMIORTMaterialIORT = PMMANist;
318 PFS1IORTMaterialIORT = PMMANist;
321 PFS2IORTMaterialIORT = PMMANist;
324 PFS3IORTMaterialIORT = PMMANist;
327 FTIORTMaterialIORT = titanioNist;
330 VSIORTMaterialIORT = galacticNist;
335 void Collimator80BeamLine::ConstructCollimator80BeamLine()
347 G4Box* treatmentRoom =
new G4Box(
"TreatmentRoom",worldX,worldY,worldZ);
350 "logicTreatmentRoom",
354 "physicalTreatmentRoom",
392 const G4double XPositionVSIORT = -862.797 *
mm;
394 solidVSIORT =
new G4Tubs(
"VSIORT", innRadiusVSIORT,
398 spanningAngleVSIORT);
401 VSIORTMaterialIORT,
"VSIORT", 0, 0, 0);
404 "VSIORT", logVSIORT, physicalTreatmentRoom,
false, 0);
406 logVSIORT -> SetVisAttributes(green);
427 const G4double XPositionFTIORT = -861.791 *
mm;
429 solidFTIORT =
new G4Tubs(
"FTIORT", innRadiusFTIORT,
433 spanningAngleFTIORT);
436 FTIORTMaterialIORT,
"FTIORT", 0, 0, 0);
439 "FTIORT", logFTIORT, physicalTreatmentRoom,
false, 0);
441 logFTIORT -> SetVisAttributes(yellow);
468 const G4double XPositionPFS3IORT = -848.755 *
mm;
470 solidPFS3IORT =
new G4Tubs(
"PFS3IORT", innRadiusPFS3IORT,
474 spanningAnglePFS3IORT);
477 PFS3IORTMaterialIORT,
"PFS3IORT", 0, 0, 0);
480 "PFS3IORT", logPFS3IORT, physicalTreatmentRoom,
false, 0);
482 logPFS3IORT -> SetVisAttributes(white);
494 const G4double XPositionPFS2IORT = -844.255 *
mm;
496 solidPFS2IORT =
new G4Tubs(
"PFS2IORT", innRadiusPFS2IORT,
500 spanningAnglePFS2IORT);
503 PFS2IORTMaterialIORT,
"PFS2IORT", 0, 0, 0);
506 "PFS2IORT", logPFS2IORT, physicalTreatmentRoom,
false, 0);
508 logPFS2IORT -> SetVisAttributes(green);
519 const G4double XPositionPFS1IORT = -841.905 *
mm;
521 solidPFS1IORT =
new G4Tubs(
"PFS1IORT", innRadiusPFS1IORT,
525 spanningAnglePFS1IORT);
528 PFS1IORTMaterialIORT,
"PFS1IORT", 0, 0, 0);
531 "PFS1IORT", logPFS1IORT, physicalTreatmentRoom,
false, 0);
533 logPFS1IORT -> SetVisAttributes(green);
544 const G4double XPositionCCMIORT = -837.0125 *
mm;
546 solidCCMIORT =
new G4Tubs(
"CCMIORT", innRadiusCCMIORT,
550 spanningAngleCCMIORT);
553 CCMIORTMaterialIORT,
"CCMIORT", 0, 0, 0);
556 "CCMIORT", logCCMIORT, physicalTreatmentRoom,
false, 0);
558 logCCMIORT -> SetVisAttributes(green);
565 const G4double outRadiusCM2_2_2IORT = 20. *
mm;
569 const G4double spanningAngleCM2_2_2IORT = 360.*
deg;
570 const G4double XPositionCM2_2_2IORT = -841. *
mm;
572 solidCM2_2_2IORT =
new G4Tubs(
"CM2_2_2IORT", innRadiusCM2_2_2IORT,
573 outRadiusCM2_2_2IORT,
575 startAngleCM2_2_2IORT,
576 spanningAngleCM2_2_2IORT);
579 CM2_2_2IORTMaterialIORT,
"CM2_2_2IORT", 0, 0, 0);
582 "CM2_2_2ORT", logCM2_2_2IORT, physicalTreatmentRoom,
false, 0);
584 logCM2_2_2IORT -> SetVisAttributes(green);
591 const G4double outRadiusCM2_1_2IORT = 20. *
mm;
595 const G4double spanningAngleCM2_1_2IORT = 360.*
deg;
596 const G4double XPositionCM2_1_2IORT = -839. *
mm;
598 solidCM2_1_2IORT =
new G4Tubs(
"CM2_1_2IORT", innRadiusCM2_1_2IORT,
599 outRadiusCM2_1_2IORT,
601 startAngleCM2_1_2IORT,
602 spanningAngleCM2_1_2IORT);
605 CM2_1_2IORTMaterialIORT,
"CM2_1_2IORT", 0, 0, 0);
608 "CM2_1_2ORT", logCM2_1_2IORT, physicalTreatmentRoom,
false, 0);
610 logCM2_1_2IORT -> SetVisAttributes(yellow);
616 const G4double outRadiusCM1_2_2IORT = 20. *
mm;
620 const G4double spanningAngleCM1_2_2IORT = 360.*
deg;
621 const G4double XPositionCM1_2_2IORT = -837. *
mm;
623 solidCM1_2_2IORT =
new G4Tubs(
"CM1_2_2IORT", innRadiusCM1_2_2IORT,
624 outRadiusCM1_2_2IORT,
626 startAngleCM1_2_2IORT,
627 spanningAngleCM1_2_2IORT);
630 CM1_2_2IORTMaterialIORT,
"CM1_2_2IORT", 0, 0, 0);
633 "CM1_2_2ORT", logCM1_2_2IORT, physicalTreatmentRoom,
false, 0);
635 logCM1_2_2IORT -> SetVisAttributes(yellow);
641 const G4double outRadiusCM1_1_2IORT = 20. *
mm;
645 const G4double spanningAngleCM1_1_2IORT = 360.*
deg;
646 const G4double XPositionCM1_1_2IORT = -835. *
mm;
648 solidCM1_1_2IORT =
new G4Tubs(
"CM1_1_2IORT", innRadiusCM1_1_2IORT,
649 outRadiusCM1_1_2IORT,
651 startAngleCM1_1_2IORT,
652 spanningAngleCM1_1_2IORT);
655 CM1_1_2IORTMaterialIORT,
"CM1_1_2IORT", 0, 0, 0);
658 "CM1_1_2ORT", logCM1_1_2IORT, physicalTreatmentRoom,
false, 0);
660 logCM1_1_2IORT -> SetVisAttributes(yellow);
682 const G4double outRadiusBlocco20mmIORT = 36.5 *
mm;
683 const G4double innRadiusBlocco20mmIORT = 10. *
mm;
686 const G4double spanningAngleBlocco20mmIORT = 360.*
deg;
687 const G4double XPositionBlocco20mmIORT = -830. *
mm;
689 solidBlocco20mmIORT =
new G4Tubs(
"Blocco20mmIORT", innRadiusBlocco20mmIORT,
690 outRadiusBlocco20mmIORT,
692 startAngleBlocco20mmIORT,
693 spanningAngleBlocco20mmIORT);
696 Blocco20mmIORTMaterialIORT,
"Blocco20mmIORT", 0, 0, 0);
699 "Blocco20mmORT", logBlocco20mmIORT, physicalTreatmentRoom,
false, 0);
701 logBlocco20mmIORT -> SetVisAttributes(green);
708 const G4double outRadiusBlocco3IORT = 36.5 *
mm;
709 const G4double innRadiusBlocco3IORT = 15. *
mm;
712 const G4double spanningAngleBlocco3IORT = 360.*
deg;
713 const G4double XPositionBlocco3IORT = -823.5 *
mm;
715 solidBlocco3IORT =
new G4Tubs(
"Blocco3IORT", innRadiusBlocco3IORT,
716 outRadiusBlocco3IORT,
718 startAngleBlocco3IORT,
719 spanningAngleBlocco3IORT);
722 Blocco3IORTMaterialIORT,
"Blocco3IORT", 0, 0, 0);
725 "Blocco3ORT", logBlocco3IORT, physicalTreatmentRoom,
false, 0);
727 logBlocco3IORT -> SetVisAttributes(yellow);
733 const G4double outRadiusBlocco2IORT = 41.5 *
mm;
734 const G4double innRadiusBlocco2IORT = 15. *
mm;
737 const G4double spanningAngleBlocco2IORT = 360.*
deg;
738 const G4double XPositionBlocco2IORT = -812. *
mm;
740 solidBlocco2IORT =
new G4Tubs(
"Blocco2IORT", innRadiusBlocco2IORT,
741 outRadiusBlocco2IORT,
743 startAngleBlocco2IORT,
744 spanningAngleBlocco2IORT);
747 Blocco2IORTMaterialIORT,
"Blocco2IORT", 0, 0, 0);
750 "Blocco2IORT", logBlocco2IORT, physicalTreatmentRoom,
false, 0);
752 logBlocco2IORT -> SetVisAttributes(red);
758 const G4double outRadiusBlocco1IORT = 52.0 *
mm;
759 const G4double innRadiusBlocco1IORT = 15. *
mm;
762 const G4double spanningAngleBlocco1IORT = 360.*
deg;
763 const G4double XPositionBlocco1IORT = -795.5*
mm;
765 solidBlocco1IORT =
new G4Tubs(
"Blocco1IORT", innRadiusBlocco1IORT,
766 outRadiusBlocco1IORT,
768 startAngleBlocco1IORT,
769 spanningAngleBlocco1IORT);
772 Blocco1IORTMaterialIORT,
"Blocco1IORT", 0, 0, 0);
775 "Blocco1IORT", logBlocco1IORT, physicalTreatmentRoom,
false, 0);
777 logBlocco1IORT -> SetVisAttributes(white);
793 const G4double outRadiusGiunz5FinalCollIORT = 48.25 *
mm;
794 const G4double innRadiusGiunz5FinalCollIORT = 13.75 *
mm;
795 const G4double hightGiunz5FinalCollIORT = 3.5 *
mm;
796 const G4double startAngleGiunz5FinalCollIORT = 0.*
deg;
797 const G4double spanningAngleGiunz5FinalCollIORT = 360.*
deg;
798 const G4double Giunz5FinalCollXPositionIORT = -783.5 *
mm;
800 solidGiunz5FinalCollIORT =
new G4Tubs(
"Giunz5FinalCollIORT", innRadiusGiunz5FinalCollIORT,
801 outRadiusGiunz5FinalCollIORT,
802 hightGiunz5FinalCollIORT,
803 startAngleGiunz5FinalCollIORT,
804 spanningAngleGiunz5FinalCollIORT);
807 Giunz5FinalCollMaterialIORT,
"Giunz5FinalCollIORT", 0, 0, 0);
810 "Giunz5FinalCollIORT", logGiunz5FinalCollIORT, physicalTreatmentRoom,
false, 0);
812 logGiunz5FinalCollIORT -> SetVisAttributes(yellow);
818 const G4double outRadiusGiunz4FinalCollIORT = 42. *
mm;
819 const G4double innRadiusGiunz4FinalCollIORT = 13.75 *
mm;
820 const G4double hightGiunz4FinalCollIORT = 8.5 *
mm;
821 const G4double startAngleGiunz4FinalCollIORT = 0.*
deg;
822 const G4double spanningAngleGiunz4FinalCollIORT = 360.*
deg;
823 const G4double Giunz4FinalCollXPositionIORT = -771.5 *
mm;
825 solidGiunz4FinalCollIORT =
new G4Tubs(
"Giunz4FinalCollIORT", innRadiusGiunz4FinalCollIORT,
826 outRadiusGiunz4FinalCollIORT,
827 hightGiunz4FinalCollIORT,
828 startAngleGiunz4FinalCollIORT,
829 spanningAngleGiunz4FinalCollIORT);
832 Giunz4FinalCollMaterialIORT,
"Giunz4FinalCollIORT", 0, 0, 0);
835 "Giunz4FinalCollIORT", logGiunz4FinalCollIORT, physicalTreatmentRoom,
false, 0);
837 logGiunz4FinalCollIORT -> SetVisAttributes(blue);
845 const G4double outRadiusGiunz3FinalCollIORT = 42. *
mm;
846 const G4double innRadiusGiunz3FinalCollIORT = 0. *
mm;
847 const G4double hightGiunz3FinalCollIORT = 4.25 *
mm;
848 const G4double startAngleGiunz3FinalCollIORT = 0.*
deg;
849 const G4double spanningAngleGiunz3FinalCollIORT = 360.*
deg;
850 const G4double Giunz3FinalCollXPositionIORT = -758.75 *
mm;
852 solidGiunz3FinalCollIORT =
new G4Tubs(
"Giunz3FinalCollIORT", innRadiusGiunz3FinalCollIORT,
853 outRadiusGiunz3FinalCollIORT,
854 hightGiunz3FinalCollIORT,
855 startAngleGiunz3FinalCollIORT,
856 spanningAngleGiunz3FinalCollIORT);
859 Giunz3FinalCollMaterialIORT,
"Giunz3FinalCollIORT", 0, 0, 0);
862 "Giunz3FinalCollIORT", logicsolidGiunz3FinalCollIORT, physicalTreatmentRoom,
false, 0);
864 logicsolidGiunz3FinalCollIORT -> SetVisAttributes(yellow);
875 solidGiunz3FinalCollIntIORT =
new G4Cons(
"Giunz3FinalCollIntIORT",0.*
mm,13.75*
mm,0.*
mm,22.25*
mm,4.25*
mm,0.*
deg,360.*
deg);
878 Giunz3FinalCollMaterialIntIORT,
"Giunz3FinalCollIntIORT", 0, 0, 0);
880 physiGiunz3FinalCollIntIORT =
new G4PVPlacement(0,
G4ThreeVector(0.,0.,0.),
"Giunz3FinalCollIntIORT", logicsolidGiunz3FinalCollIntIORT,physiGiunz3FinalCollIORT,
false, 0);
882 logicsolidGiunz3FinalCollIntIORT -> SetVisAttributes(yellow);
889 const G4double outRadiusGiunz2FinalCollIORT = 42. *
mm;
890 const G4double innRadiusGiunz2FinalCollIORT = 22.25 *
mm;
891 const G4double hightGiunz2FinalCollIORT = 5.75 *
mm;
892 const G4double startAngleGiunz2FinalCollIORT = 0.*
deg;
893 const G4double spanningAngleGiunz2FinalCollIORT = 360.*
deg;
894 const G4double Giunz2FinalCollXPositionIORT = -748.75 *
mm;
896 solidGiunz2FinalCollIORT =
new G4Tubs(
"Giunz2FinalCollIORT", innRadiusGiunz2FinalCollIORT,
897 outRadiusGiunz2FinalCollIORT,
898 hightGiunz2FinalCollIORT,
899 startAngleGiunz2FinalCollIORT,
900 spanningAngleGiunz2FinalCollIORT);
903 Giunz2FinalCollMaterialIORT,
"Giunz2FinalCollIORT", 0, 0, 0);
906 "Giunz2FinalCollIORT", logGiunz2FinalCollIORT, physicalTreatmentRoom,
false, 0);
908 logGiunz2FinalCollIORT -> SetVisAttributes(red);
914 const G4double outRadiusGiunz1FinalCollIORT = 55. *
mm;
915 const G4double innRadiusGiunz1FinalCollIORT = 22.25 *
mm;
916 const G4double hightGiunz1FinalCollIORT = 10. *
mm;
917 const G4double startAngleGiunz1FinalCollIORT = 0.*
deg;
918 const G4double spanningAngleGiunz1FinalCollIORT = 360.*
deg;
919 const G4double Giunz1FinalCollXPositionIORT = -733.*
mm;
921 solidGiunz1FinalCollIORT =
new G4Tubs(
"Giunz1FinalCollIORT", innRadiusGiunz1FinalCollIORT,
922 outRadiusGiunz1FinalCollIORT,
923 hightGiunz1FinalCollIORT,
924 startAngleGiunz1FinalCollIORT,
925 spanningAngleGiunz1FinalCollIORT);
928 Giunz1FinalCollMaterialIORT,
"Giunz1FinalCollIORT", 0, 0, 0);
931 "Giunz1FinalCollIORT", logGiunz1FinalCollIORT, physicalTreatmentRoom,
false, 0);
933 logGiunz1FinalCollIORT -> SetVisAttributes(gray);
944 const G4double hightFinalCollimatorIORT = 334. *
mm;
945 const G4double startAngleFinalCollimatorIORT = 0.*
deg;
946 const G4double spanningAngleFinalCollimatorIORT = 360.*
deg;
947 const G4double finalCollimatorXPositionIORT = -389.*
mm;
959 solidFinalCollimatorIORT =
new G4Tubs(
"FinalCollimatorIORT", innerRadiusFinalCollimatorIORT,
960 OuterRadiusFinalCollimatorIORT,
961 hightFinalCollimatorIORT,
962 startAngleFinalCollimatorIORT,
963 spanningAngleFinalCollimatorIORT);
966 finalCollimatorMaterialIORT,
"FinalCollimatorIORT", 0, 0, 0);
969 "FinalCollimatorIORT", logFinalCollimatorIORT, physicalTreatmentRoom,
false, 0);
972 logFinalCollimatorIORT -> SetVisAttributes(red);
982 solidFinalCollimatorIORT -> SetInnerRadius(value);
984 G4cout<<
"Inner Radius of the final collimator IORT is (mm):"
985 << solidFinalCollimatorIORT -> GetInnerRadius()/
mm
993 solidFinalCollimatorIORT -> SetOuterRadius(value);
995 G4cout<<
"Outer Radius of the final collimator IORT is (mm):"
996 << solidFinalCollimatorIORT -> GetOuterRadius()/
mm