60 physicalTreatmentRoom(0),iortDetectorConstruction(0),
63 solidFinalCollimatorIORT(0),
64 physiFinalCollimatorIORT(0),
66 solidGiunz1FinalCollIORT(0),
67 physiGiunz1FinalCollIORT(0),
69 solidGiunz2FinalCollIORT(0),
70 physiGiunz2FinalCollIORT(0),
72 solidGiunz3FinalCollIORT(0),
73 physiGiunz3FinalCollIORT(0),
75 solidGiunz3FinalCollIntIORT(0),
76 physiGiunz3FinalCollIntIORT(0),
78 solidGiunz4FinalCollIORT(0),
79 physiGiunz4FinalCollIORT(0),
81 solidGiunz5FinalCollIORT(0),
82 physiGiunz5FinalCollIORT(0),
93 solidBlocco20mmIORT(0),
94 physiBlocco20mmIORT(0),
132 delete collimatorMessenger;
133 delete iortDetectorConstruction;
142 SetDefaultDimensions();
145 ConstructCollimator100BeamLine();
151 return physicalTreatmentRoom;
164 void Collimator100BeamLine::SetDefaultDimensions()
169 white -> SetVisibility(
true);
173 blue -> SetVisibility(
true);
177 gray-> SetVisibility(
true);
181 red-> SetVisibility(
true);
185 yellow-> SetVisibility(
true);
189 green -> SetVisibility(
true);
193 darkGreen -> SetVisibility(
true);
197 darkOrange3 -> SetVisibility(
true);
201 skyBlue -> SetVisibility(
true);
208 G4double defaultOuterRadiusFinalCollimatorIORT = 55. *
mm;
209 OuterRadiusFinalCollimatorIORT = defaultOuterRadiusFinalCollimatorIORT;
211 G4double defaultinnerRadiusFinalCollimatorIORT = 50. *
mm;
212 innerRadiusFinalCollimatorIORT = defaultinnerRadiusFinalCollimatorIORT;
249 finalCollimatorMaterialIORT = PMMANist;
252 Giunz1FinalCollMaterialIORT = PMMANist;
255 Giunz2FinalCollMaterialIORT = PMMANist;
258 Giunz3FinalCollMaterialIORT = PMMANist;
261 Giunz3FinalCollMaterialIntIORT = airNist;
264 Giunz4FinalCollMaterialIORT = PMMANist;
267 Giunz5FinalCollMaterialIORT = PMMANist;
270 Blocco1IORTMaterialIORT = PMMANist;
273 Blocco2IORTMaterialIORT = PMMANist;
276 Blocco3IORTMaterialIORT = PMMANist;
279 Blocco20mmIORTMaterialIORT = PMMANist;
282 CM1_1_2IORTMaterialIORT = aluminumNist;
285 CM1_2_2IORTMaterialIORT = aluminumNist;
288 CM2_1_2IORTMaterialIORT = aluminumNist;
291 CM2_2_2IORTMaterialIORT = aluminumNist;
294 CCMIORTMaterialIORT = PMMANist;
297 PFS1IORTMaterialIORT = PMMANist;
300 PFS2IORTMaterialIORT = PMMANist;
303 PFS3IORTMaterialIORT = PMMANist;
306 FTIORTMaterialIORT = titanioNist;
309 VSIORTMaterialIORT = galacticNist;
314 void Collimator100BeamLine::ConstructCollimator100BeamLine()
326 G4Box* treatmentRoom =
new G4Box(
"TreatmentRoom",worldX,worldY,worldZ);
329 "logicTreatmentRoom",
333 "physicalTreatmentRoom",
371 const G4double XPositionVSIORT = -1062.797 *
mm;
373 solidVSIORT =
new G4Tubs(
"VSIORT", innRadiusVSIORT,
377 spanningAngleVSIORT);
380 VSIORTMaterialIORT,
"VSIORT", 0, 0, 0);
383 "VSIORT", logVSIORT, physicalTreatmentRoom,
false, 0);
384 logVSIORT -> SetVisAttributes(green);
405 const G4double XPositionFTIORT = -1061.791 *
mm;
408 solidFTIORT =
new G4Tubs(
"FTIORT", innRadiusFTIORT,
412 spanningAngleFTIORT);
415 FTIORTMaterialIORT,
"FTIORT", 0, 0, 0);
418 "FTIORT", logFTIORT, physicalTreatmentRoom,
false, 0);
420 logFTIORT -> SetVisAttributes(yellow);
447 const G4double XPositionPFS3IORT = -1048.755 *
mm;
450 solidPFS3IORT =
new G4Tubs(
"PFS3IORT", innRadiusPFS3IORT,
454 spanningAnglePFS3IORT);
457 PFS3IORTMaterialIORT,
"PFS3IORT", 0, 0, 0);
460 "PFS3IORT", logPFS3IORT, physicalTreatmentRoom,
false, 0);
462 logPFS3IORT -> SetVisAttributes(white);
474 const G4double XPositionPFS2IORT = -1044.255 *
mm;
477 solidPFS2IORT =
new G4Tubs(
"PFS2IORT", innRadiusPFS2IORT,
481 spanningAnglePFS2IORT);
484 PFS2IORTMaterialIORT,
"PFS2IORT", 0, 0, 0);
487 "PFS2IORT", logPFS2IORT, physicalTreatmentRoom,
false, 0);
489 logPFS2IORT -> SetVisAttributes(green);
500 const G4double XPositionPFS1IORT = -1041.905 *
mm;
503 solidPFS1IORT =
new G4Tubs(
"PFS1IORT", innRadiusPFS1IORT,
507 spanningAnglePFS1IORT);
510 PFS1IORTMaterialIORT,
"PFS1IORT", 0, 0, 0);
513 "PFS1IORT", logPFS1IORT, physicalTreatmentRoom,
false, 0);
515 logPFS1IORT -> SetVisAttributes(green);
526 const G4double XPositionCCMIORT = -1037.0125 *
mm;
529 solidCCMIORT =
new G4Tubs(
"CCMIORT", innRadiusCCMIORT,
533 spanningAngleCCMIORT);
536 CCMIORTMaterialIORT,
"CCMIORT", 0, 0, 0);
539 "CCMIORT", logCCMIORT, physicalTreatmentRoom,
false, 0);
541 logCCMIORT -> SetVisAttributes(green);
548 const G4double outRadiusCM2_2_2IORT = 20. *
mm;
552 const G4double spanningAngleCM2_2_2IORT = 360.*
deg;
553 const G4double XPositionCM2_2_2IORT = -1041. *
mm;
556 solidCM2_2_2IORT =
new G4Tubs(
"CM2_2_2IORT", innRadiusCM2_2_2IORT,
557 outRadiusCM2_2_2IORT,
559 startAngleCM2_2_2IORT,
560 spanningAngleCM2_2_2IORT);
563 CM2_2_2IORTMaterialIORT,
"CM2_2_2IORT", 0, 0, 0);
566 "CM2_2_2ORT", logCM2_2_2IORT, physicalTreatmentRoom,
false, 0);
568 logCM2_2_2IORT -> SetVisAttributes(green);
575 const G4double outRadiusCM2_1_2IORT = 20. *
mm;
579 const G4double spanningAngleCM2_1_2IORT = 360.*
deg;
580 const G4double XPositionCM2_1_2IORT = -1039. *
mm;
583 solidCM2_1_2IORT =
new G4Tubs(
"CM2_1_2IORT", innRadiusCM2_1_2IORT,
584 outRadiusCM2_1_2IORT,
586 startAngleCM2_1_2IORT,
587 spanningAngleCM2_1_2IORT);
590 CM2_1_2IORTMaterialIORT,
"CM2_1_2IORT", 0, 0, 0);
593 "CM2_1_2ORT", logCM2_1_2IORT, physicalTreatmentRoom,
false, 0);
595 logCM2_1_2IORT -> SetVisAttributes(yellow);
601 const G4double outRadiusCM1_2_2IORT = 20. *
mm;
605 const G4double spanningAngleCM1_2_2IORT = 360.*
deg;
606 const G4double XPositionCM1_2_2IORT = -1037. *
mm;
609 solidCM1_2_2IORT =
new G4Tubs(
"CM1_2_2IORT", innRadiusCM1_2_2IORT,
610 outRadiusCM1_2_2IORT,
612 startAngleCM1_2_2IORT,
613 spanningAngleCM1_2_2IORT);
616 CM1_2_2IORTMaterialIORT,
"CM1_2_2IORT", 0, 0, 0);
619 "CM1_2_2ORT", logCM1_2_2IORT, physicalTreatmentRoom,
false, 0);
622 logCM1_2_2IORT -> SetVisAttributes(yellow);
628 const G4double outRadiusCM1_1_2IORT = 20. *
mm;
632 const G4double spanningAngleCM1_1_2IORT = 360.*
deg;
633 const G4double XPositionCM1_1_2IORT = -1035. *
mm;
637 solidCM1_1_2IORT =
new G4Tubs(
"CM1_1_2IORT", innRadiusCM1_1_2IORT,
638 outRadiusCM1_1_2IORT,
640 startAngleCM1_1_2IORT,
641 spanningAngleCM1_1_2IORT);
644 CM1_1_2IORTMaterialIORT,
"CM1_1_2IORT", 0, 0, 0);
647 "CM1_1_2ORT", logCM1_1_2IORT, physicalTreatmentRoom,
false, 0);
648 logCM1_1_2IORT -> SetVisAttributes(yellow);
670 const G4double outRadiusBlocco20mmIORT = 36.5 *
mm;
671 const G4double innRadiusBlocco20mmIORT = 10. *
mm;
674 const G4double spanningAngleBlocco20mmIORT = 360.*
deg;
675 const G4double XPositionBlocco20mmIORT = -1030. *
mm;
678 solidBlocco20mmIORT =
new G4Tubs(
"Blocco20mmIORT", innRadiusBlocco20mmIORT,
679 outRadiusBlocco20mmIORT,
681 startAngleBlocco20mmIORT,
682 spanningAngleBlocco20mmIORT);
685 Blocco20mmIORTMaterialIORT,
"Blocco20mmIORT", 0, 0, 0);
688 "Blocco20mmORT", logBlocco20mmIORT, physicalTreatmentRoom,
false, 0);
691 logBlocco20mmIORT -> SetVisAttributes(green);
698 const G4double outRadiusBlocco3IORT = 36.5 *
mm;
699 const G4double innRadiusBlocco3IORT = 15. *
mm;
702 const G4double spanningAngleBlocco3IORT = 360.*
deg;
703 const G4double XPositionBlocco3IORT = -1023.5 *
mm;
706 solidBlocco3IORT =
new G4Tubs(
"Blocco3IORT", innRadiusBlocco3IORT,
707 outRadiusBlocco3IORT,
709 startAngleBlocco3IORT,
710 spanningAngleBlocco3IORT);
713 Blocco3IORTMaterialIORT,
"Blocco3IORT", 0, 0, 0);
716 "Blocco3ORT", logBlocco3IORT, physicalTreatmentRoom,
false, 0);
719 logBlocco3IORT -> SetVisAttributes(yellow);
725 const G4double outRadiusBlocco2IORT = 41.5 *
mm;
726 const G4double innRadiusBlocco2IORT = 15. *
mm;
729 const G4double spanningAngleBlocco2IORT = 360.*
deg;
730 const G4double XPositionBlocco2IORT = -1012. *
mm;
733 solidBlocco2IORT =
new G4Tubs(
"Blocco2IORT", innRadiusBlocco2IORT,
734 outRadiusBlocco2IORT,
736 startAngleBlocco2IORT,
737 spanningAngleBlocco2IORT);
740 Blocco2IORTMaterialIORT,
"Blocco2IORT", 0, 0, 0);
743 "Blocco2IORT", logBlocco2IORT, physicalTreatmentRoom,
false, 0);
746 logBlocco2IORT -> SetVisAttributes(red);
752 const G4double outRadiusBlocco1IORT = 52.0 *
mm;
753 const G4double innRadiusBlocco1IORT = 15. *
mm;
756 const G4double spanningAngleBlocco1IORT = 360.*
deg;
757 const G4double XPositionBlocco1IORT = -995.5*
mm;
760 solidBlocco1IORT =
new G4Tubs(
"Blocco1IORT", innRadiusBlocco1IORT,
761 outRadiusBlocco1IORT,
763 startAngleBlocco1IORT,
764 spanningAngleBlocco1IORT);
767 Blocco1IORTMaterialIORT,
"Blocco1IORT", 0, 0, 0);
770 "Blocco1IORT", logBlocco1IORT, physicalTreatmentRoom,
false, 0);
773 logBlocco1IORT -> SetVisAttributes(white);
790 const G4double outRadiusGiunz5FinalCollIORT = 48.25 *
mm;
791 const G4double innRadiusGiunz5FinalCollIORT = 13.75 *
mm;
792 const G4double hightGiunz5FinalCollIORT = 3.5 *
mm;
793 const G4double startAngleGiunz5FinalCollIORT = 0.*
deg;
794 const G4double spanningAngleGiunz5FinalCollIORT = 360.*
deg;
795 const G4double Giunz5FinalCollXPositionIORT = -983.5 *
mm;
799 solidGiunz5FinalCollIORT =
new G4Tubs(
"Giunz5FinalCollIORT", innRadiusGiunz5FinalCollIORT,
800 outRadiusGiunz5FinalCollIORT,
801 hightGiunz5FinalCollIORT,
802 startAngleGiunz5FinalCollIORT,
803 spanningAngleGiunz5FinalCollIORT);
806 Giunz5FinalCollMaterialIORT,
"Giunz5FinalCollIORT", 0, 0, 0);
809 "Giunz5FinalCollIORT", logGiunz5FinalCollIORT, physicalTreatmentRoom,
false, 0);
811 logGiunz5FinalCollIORT -> SetVisAttributes(yellow);
817 const G4double outRadiusGiunz4FinalCollIORT = 42. *
mm;
818 const G4double innRadiusGiunz4FinalCollIORT = 13.75 *
mm;
819 const G4double hightGiunz4FinalCollIORT = 8.5 *
mm;
820 const G4double startAngleGiunz4FinalCollIORT = 0.*
deg;
821 const G4double spanningAngleGiunz4FinalCollIORT = 360.*
deg;
822 const G4double Giunz4FinalCollXPositionIORT = -971.5 *
mm;
826 solidGiunz4FinalCollIORT =
new G4Tubs(
"Giunz4FinalCollIORT", innRadiusGiunz4FinalCollIORT,
827 outRadiusGiunz4FinalCollIORT,
828 hightGiunz4FinalCollIORT,
829 startAngleGiunz4FinalCollIORT,
830 spanningAngleGiunz4FinalCollIORT);
833 Giunz4FinalCollMaterialIORT,
"Giunz4FinalCollIORT", 0, 0, 0);
836 "Giunz4FinalCollIORT", logGiunz4FinalCollIORT, physicalTreatmentRoom,
false, 0);
838 logGiunz4FinalCollIORT -> SetVisAttributes(blue);
846 const G4double outRadiusGiunz3FinalCollIORT = 42. *
mm;
847 const G4double innRadiusGiunz3FinalCollIORT = 0. *
mm;
848 const G4double hightGiunz3FinalCollIORT = 4.25 *
mm;
849 const G4double startAngleGiunz3FinalCollIORT = 0.*
deg;
850 const G4double spanningAngleGiunz3FinalCollIORT = 360.*
deg;
851 const G4double Giunz3FinalCollXPositionIORT = -958.75 *
mm;
854 solidGiunz3FinalCollIORT =
new G4Tubs(
"Giunz3FinalCollIORT", innRadiusGiunz3FinalCollIORT,
855 outRadiusGiunz3FinalCollIORT,
856 hightGiunz3FinalCollIORT,
857 startAngleGiunz3FinalCollIORT,
858 spanningAngleGiunz3FinalCollIORT);
861 Giunz3FinalCollMaterialIORT,
"Giunz3FinalCollIORT", 0, 0, 0);
864 "Giunz3FinalCollIORT", logicsolidGiunz3FinalCollIORT, physicalTreatmentRoom,
false, 0);
866 logicsolidGiunz3FinalCollIORT -> SetVisAttributes(yellow);
877 solidGiunz3FinalCollIntIORT =
new G4Cons(
"Giunz3FinalCollIntIORT",0.*
mm,13.75*
mm,0.*
mm,22.25*
mm,4.25*
mm,0.*
deg,360.*
deg);
880 Giunz3FinalCollMaterialIntIORT,
"Giunz3FinalCollIntIORT", 0, 0, 0);
882 physiGiunz3FinalCollIntIORT =
new G4PVPlacement(0,
G4ThreeVector(0.,0.,0.),
"Giunz3FinalCollIntIORT", logicsolidGiunz3FinalCollIntIORT,physiGiunz3FinalCollIORT,
false, 0);
884 logicsolidGiunz3FinalCollIntIORT -> SetVisAttributes(yellow);
891 const G4double outRadiusGiunz2FinalCollIORT = 42. *
mm;
892 const G4double innRadiusGiunz2FinalCollIORT = 22.25 *
mm;
893 const G4double hightGiunz2FinalCollIORT = 5.75 *
mm;
894 const G4double startAngleGiunz2FinalCollIORT = 0.*
deg;
895 const G4double spanningAngleGiunz2FinalCollIORT = 360.*
deg;
896 const G4double Giunz2FinalCollXPositionIORT = -948.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 = 65. *
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 = -933.*
mm;
927 solidGiunz1FinalCollIORT =
new G4Tubs(
"Giunz1FinalCollIORT", innRadiusGiunz1FinalCollIORT,
928 outRadiusGiunz1FinalCollIORT,
929 hightGiunz1FinalCollIORT,
930 startAngleGiunz1FinalCollIORT,
931 spanningAngleGiunz1FinalCollIORT);
934 Giunz1FinalCollMaterialIORT,
"Giunz1FinalCollIORT", 0, 0, 0);
937 "Giunz1FinalCollIORT", logGiunz1FinalCollIORT, physicalTreatmentRoom,
false, 0);
939 logGiunz1FinalCollIORT -> SetVisAttributes(gray);
951 const G4double hightFinalCollimatorIORT = 434. *
mm;
952 const G4double startAngleFinalCollimatorIORT = 0.*
deg;
953 const G4double spanningAngleFinalCollimatorIORT = 360.*
deg;
954 const G4double finalCollimatorXPositionIORT = -489.*
mm;
966 solidFinalCollimatorIORT =
new G4Tubs(
"FinalCollimatorIORT", innerRadiusFinalCollimatorIORT,
967 OuterRadiusFinalCollimatorIORT,
968 hightFinalCollimatorIORT,
969 startAngleFinalCollimatorIORT,
970 spanningAngleFinalCollimatorIORT);
973 finalCollimatorMaterialIORT,
"FinalCollimatorIORT", 0, 0, 0);
976 "FinalCollimatorIORT", logFinalCollimatorIORT, physicalTreatmentRoom,
false, 0);
979 logFinalCollimatorIORT -> SetVisAttributes(darkGreen);
990 solidFinalCollimatorIORT -> SetInnerRadius(value);
992 G4cout<<
"Inner Radius of the final collimator IORT is (mm):"
993 << solidFinalCollimatorIORT -> GetInnerRadius()/
mm
1001 solidFinalCollimatorIORT -> SetOuterRadius(value);
1003 G4cout<<
"Outer Radius of the final collimator IORT is (mm):"
1004 << solidFinalCollimatorIORT -> GetOuterRadius()/
mm
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
void SetInnerRadiusFinalCollimatorIORT(G4double)
CLHEP::Hep3Vector G4ThreeVector
void IortBeamLineBlocks()
HepRotation & rotateY(double delta)
void SetOuterRadiusFinalCollimatorIORT(G4double)
static G4NistManager * Instance()
G4VPhysicalVolume * Construct()
void IortBeamLineVacuumSource()
G4GLOB_DLL std::ostream G4cout
void IortBeamLineFinalCollimator()
static G4RunManager * GetRunManager()
void IortBeamLineMonitorChambers()
void IortBeamLineTitaniumWindows()
static const G4VisAttributes Invisible
const XML_Char int const XML_Char * value
void IortBeamLineJunctions()
G4Element * FindOrBuildElement(G4int Z, G4bool isotopes=true)