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 ConstructCollimator60BeamLine();
172 return physicalTreatmentRoom;
185 void Collimator60BeamLine::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 = 35. *
mm;
230 OuterRadiusFinalCollimatorIORT = defaultOuterRadiusFinalCollimatorIORT;
232 G4double defaultinnerRadiusFinalCollimatorIORT = 30. *
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 Collimator60BeamLine::ConstructCollimator60BeamLine()
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;
716 solidBlocco3IORT =
new G4Tubs(
"Blocco3IORT", innRadiusBlocco3IORT,
717 outRadiusBlocco3IORT,
719 startAngleBlocco3IORT,
720 spanningAngleBlocco3IORT);
723 Blocco3IORTMaterialIORT,
"Blocco3IORT", 0, 0, 0);
726 "Blocco3ORT", logBlocco3IORT, physicalTreatmentRoom,
false, 0);
728 logBlocco3IORT -> SetVisAttributes(yellow);
734 const G4double outRadiusBlocco2IORT = 41.5 *
mm;
735 const G4double innRadiusBlocco2IORT = 15. *
mm;
738 const G4double spanningAngleBlocco2IORT = 360.*
deg;
739 const G4double XPositionBlocco2IORT = -812. *
mm;
742 solidBlocco2IORT =
new G4Tubs(
"Blocco2IORT", innRadiusBlocco2IORT,
743 outRadiusBlocco2IORT,
745 startAngleBlocco2IORT,
746 spanningAngleBlocco2IORT);
749 Blocco2IORTMaterialIORT,
"Blocco2IORT", 0, 0, 0);
752 "Blocco2IORT", logBlocco2IORT, physicalTreatmentRoom,
false, 0);
754 logBlocco2IORT -> SetVisAttributes(red);
760 const G4double outRadiusBlocco1IORT = 52.0 *
mm;
761 const G4double innRadiusBlocco1IORT = 15. *
mm;
764 const G4double spanningAngleBlocco1IORT = 360.*
deg;
765 const G4double XPositionBlocco1IORT = -795.5*
mm;
767 solidBlocco1IORT =
new G4Tubs(
"Blocco1IORT", innRadiusBlocco1IORT,
768 outRadiusBlocco1IORT,
770 startAngleBlocco1IORT,
771 spanningAngleBlocco1IORT);
774 Blocco1IORTMaterialIORT,
"Blocco1IORT", 0, 0, 0);
777 "Blocco1IORT", logBlocco1IORT, physicalTreatmentRoom,
false, 0);
779 logBlocco1IORT -> SetVisAttributes(white);
796 const G4double outRadiusGiunz5FinalCollIORT = 48.25 *
mm;
797 const G4double innRadiusGiunz5FinalCollIORT = 13.75 *
mm;
798 const G4double hightGiunz5FinalCollIORT = 3.5 *
mm;
799 const G4double startAngleGiunz5FinalCollIORT = 0.*
deg;
800 const G4double spanningAngleGiunz5FinalCollIORT = 360.*
deg;
801 const G4double Giunz5FinalCollXPositionIORT = -783.5 *
mm;
803 solidGiunz5FinalCollIORT =
new G4Tubs(
"Giunz5FinalCollIORT", innRadiusGiunz5FinalCollIORT,
804 outRadiusGiunz5FinalCollIORT,
805 hightGiunz5FinalCollIORT,
806 startAngleGiunz5FinalCollIORT,
807 spanningAngleGiunz5FinalCollIORT);
810 Giunz5FinalCollMaterialIORT,
"Giunz5FinalCollIORT", 0, 0, 0);
813 "Giunz5FinalCollIORT", logGiunz5FinalCollIORT, physicalTreatmentRoom,
false, 0);
815 logGiunz5FinalCollIORT -> SetVisAttributes(yellow);
821 const G4double outRadiusGiunz4FinalCollIORT = 42. *
mm;
822 const G4double innRadiusGiunz4FinalCollIORT = 13.75 *
mm;
823 const G4double hightGiunz4FinalCollIORT = 8.5 *
mm;
824 const G4double startAngleGiunz4FinalCollIORT = 0.*
deg;
825 const G4double spanningAngleGiunz4FinalCollIORT = 360.*
deg;
826 const G4double Giunz4FinalCollXPositionIORT = -771.5 *
mm;
828 solidGiunz4FinalCollIORT =
new G4Tubs(
"Giunz4FinalCollIORT", innRadiusGiunz4FinalCollIORT,
829 outRadiusGiunz4FinalCollIORT,
830 hightGiunz4FinalCollIORT,
831 startAngleGiunz4FinalCollIORT,
832 spanningAngleGiunz4FinalCollIORT);
835 Giunz4FinalCollMaterialIORT,
"Giunz4FinalCollIORT", 0, 0, 0);
838 "Giunz4FinalCollIORT", logGiunz4FinalCollIORT, physicalTreatmentRoom,
false, 0);
840 logGiunz4FinalCollIORT -> SetVisAttributes(blue);
848 const G4double outRadiusGiunz3FinalCollIORT = 42. *
mm;
849 const G4double innRadiusGiunz3FinalCollIORT = 0. *
mm;
850 const G4double hightGiunz3FinalCollIORT = 4.25 *
mm;
851 const G4double startAngleGiunz3FinalCollIORT = 0.*
deg;
852 const G4double spanningAngleGiunz3FinalCollIORT = 360.*
deg;
853 const G4double Giunz3FinalCollXPositionIORT = -758.75 *
mm;
856 solidGiunz3FinalCollIORT =
new G4Tubs(
"Giunz3FinalCollIORT", innRadiusGiunz3FinalCollIORT,
857 outRadiusGiunz3FinalCollIORT,
858 hightGiunz3FinalCollIORT,
859 startAngleGiunz3FinalCollIORT,
860 spanningAngleGiunz3FinalCollIORT);
863 Giunz3FinalCollMaterialIORT,
"Giunz3FinalCollIORT", 0, 0, 0);
866 "Giunz3FinalCollIORT", logicsolidGiunz3FinalCollIORT, physicalTreatmentRoom,
false, 0);
868 logicsolidGiunz3FinalCollIORT -> SetVisAttributes(yellow);
879 solidGiunz3FinalCollIntIORT =
new G4Cons(
"Giunz3FinalCollIntIORT",0.*
mm,13.75*
mm,0.*
mm,22.25*
mm,4.25*
mm,0.*
deg,360.*
deg);
882 Giunz3FinalCollMaterialIntIORT,
"Giunz3FinalCollIntIORT", 0, 0, 0);
884 physiGiunz3FinalCollIntIORT =
new G4PVPlacement(0,
G4ThreeVector(0.,0.,0.),
"Giunz3FinalCollIntIORT", logicsolidGiunz3FinalCollIntIORT,physiGiunz3FinalCollIORT,
false, 0);
886 logicsolidGiunz3FinalCollIntIORT -> SetVisAttributes(yellow);
893 const G4double outRadiusGiunz2FinalCollIORT = 42. *
mm;
894 const G4double innRadiusGiunz2FinalCollIORT = 22.25 *
mm;
895 const G4double hightGiunz2FinalCollIORT = 5.75 *
mm;
896 const G4double startAngleGiunz2FinalCollIORT = 0.*
deg;
897 const G4double spanningAngleGiunz2FinalCollIORT = 360.*
deg;
898 const G4double Giunz2FinalCollXPositionIORT = -748.75 *
mm;
900 solidGiunz2FinalCollIORT =
new G4Tubs(
"Giunz2FinalCollIORT", innRadiusGiunz2FinalCollIORT,
901 outRadiusGiunz2FinalCollIORT,
902 hightGiunz2FinalCollIORT,
903 startAngleGiunz2FinalCollIORT,
904 spanningAngleGiunz2FinalCollIORT);
907 Giunz2FinalCollMaterialIORT,
"Giunz2FinalCollIORT", 0, 0, 0);
910 "Giunz2FinalCollIORT", logGiunz2FinalCollIORT, physicalTreatmentRoom,
false, 0);
912 logGiunz2FinalCollIORT -> SetVisAttributes(red);
918 const G4double outRadiusGiunz1FinalCollIORT = 45. *
mm;
919 const G4double innRadiusGiunz1FinalCollIORT = 22.25 *
mm;
920 const G4double hightGiunz1FinalCollIORT = 10. *
mm;
921 const G4double startAngleGiunz1FinalCollIORT = 0.*
deg;
922 const G4double spanningAngleGiunz1FinalCollIORT = 360.*
deg;
923 const G4double Giunz1FinalCollXPositionIORT = -733.*
mm;
925 solidGiunz1FinalCollIORT =
new G4Tubs(
"Giunz1FinalCollIORT", innRadiusGiunz1FinalCollIORT,
926 outRadiusGiunz1FinalCollIORT,
927 hightGiunz1FinalCollIORT,
928 startAngleGiunz1FinalCollIORT,
929 spanningAngleGiunz1FinalCollIORT);
932 Giunz1FinalCollMaterialIORT,
"Giunz1FinalCollIORT", 0, 0, 0);
935 "Giunz1FinalCollIORT", logGiunz1FinalCollIORT, physicalTreatmentRoom,
false, 0);
937 logGiunz1FinalCollIORT -> SetVisAttributes(gray);
948 const G4double hightFinalCollimatorIORT = 334. *
mm;
949 const G4double startAngleFinalCollimatorIORT = 0.*
deg;
950 const G4double spanningAngleFinalCollimatorIORT = 360.*
deg;
951 const G4double finalCollimatorXPositionIORT = -389.*
mm;
963 solidFinalCollimatorIORT =
new G4Tubs(
"FinalCollimatorIORT", innerRadiusFinalCollimatorIORT,
964 OuterRadiusFinalCollimatorIORT,
965 hightFinalCollimatorIORT,
966 startAngleFinalCollimatorIORT,
967 spanningAngleFinalCollimatorIORT);
970 finalCollimatorMaterialIORT,
"FinalCollimatorIORT", 0, 0, 0);
973 "FinalCollimatorIORT", logFinalCollimatorIORT, physicalTreatmentRoom,
false, 0);
976 logFinalCollimatorIORT -> SetVisAttributes(blue);
986 solidFinalCollimatorIORT -> SetInnerRadius(value);
988 G4cout<<
"Inner Radius of the final collimator IORT is (mm):"
989 << solidFinalCollimatorIORT -> GetInnerRadius()/
mm
997 solidFinalCollimatorIORT -> SetOuterRadius(value);
999 G4cout<<
"Outer Radius of the final collimator IORT is (mm):"
1000 << solidFinalCollimatorIORT -> GetOuterRadius()/
mm