Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PassiveCarbonBeamLine.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // PassiveCarbonBeamLine.cc;
27 // See more at: http://g4advancedexamples.lngs.infn.it/Examples/hadrontherapy
28 
29 #ifndef PassiveCarbonBeamLine_H
30 #define PassiveCarbonBeamLine_H 1
31 
32 #include "globals.hh"
34 #include "G4Box.hh"
35 #include "G4Tubs.hh"
36 #include "G4VisAttributes.hh"
37 #include "G4LogicalVolume.hh"
38 
39 class G4VPhysicalVolume;
42 //class PassiveCarbonBeamLineMessenger;
43 
45 {
46 public:
47 
48  //PassiveCarbonBeamLine(G4VPhysicalVolume*);
51 
53 
55  // Definition of the beam line support
56 
57  // Simulation of the scattering system for the
58  // passive spread of the beam
59  void ScatteringSystem();
60 
61  void VacuumToAirInterface();
62  // Definition of the first scattering foil,
63  // of the Kapton window, of the stopper
64 
66  // Definition of three monitor chambers
67 
69  // Definition of the beam noozle
70 
72  // Definition of the final collimator
73 
74  // The following methods allow to change parameters
75  // of some beam line components
76 
77 private:
78  //passive proton line dimensions
79  void SetDefaultDimensions();
80  void ConstructPassiveCarbonBeamLine();
81 
82  //PassiveCarbonBeamLineMessenger* passiveMessenger;
83  G4VPhysicalVolume* physicalTreatmentRoom;
84  HadrontherapyDetectorConstruction* hadrontherapyDetectorConstruction;
85 
86  G4Material* kapton;
87 
88  G4double vacuumZoneXSize;
89  G4double vacuumZoneYSize;
90  G4double vacuumZoneZSize;
91  G4double vacuumZoneXPosition;
92 
93  G4double kaptonWindowXSize;
94  G4double kaptonWindowYSize;
95  G4double kaptonWindowZSize;
96  G4double kaptonWindowXPosition;
97 
98  G4VPhysicalVolume* physiBeamLineSupport;
99  G4VPhysicalVolume* physiBeamLineCover;
100  G4VPhysicalVolume* physiBeamLineCover2;
101  G4VPhysicalVolume* physiKaptonWindow;
102 
103  G4Tubs* solidStopper;
104  G4VPhysicalVolume* physiStopper;
105  G4LogicalVolume* logicStopper;
106  G4double innerRadiusStopper;
107  G4double heightStopper;
108  G4double startAngleStopper;
109  G4double spanningAngleStopper;
110  G4double stopperXPosition;
111  G4double stopperYPosition;
112  G4double stopperZPosition;
113  G4double outerRadiusStopper;
114 
115  // First scattering foil coupled with the stopper
116  G4Box* firstScatteringFoil;
117  G4VPhysicalVolume* physiFirstScatteringFoil;
118  G4double firstScatteringFoilXSize;
119  G4double firstScatteringFoilYSize;
120  G4double firstScatteringFoilZSize;
121  G4double firstScatteringFoilXPosition;
122  G4double firstScatteringFoilYPosition;
123  G4double firstScatteringFoilZPosition;
124 
125  // Scattering foil coupled with the stopper
126  G4Box* secondScatteringFoil;
127  G4VPhysicalVolume* physiSecondScatteringFoil;
128  G4double secondScatteringFoilXSize;
129  G4double secondScatteringFoilYSize;
130  G4double secondScatteringFoilZSize;
131  G4double secondScatteringFoilXPosition;
132  G4double secondScatteringFoilYPosition;
133  G4double secondScatteringFoilZPosition;
134 
135  G4VisAttributes* redWire;
136 
137  G4double innerRadiusFinalCollimator;
138 
139  G4VPhysicalVolume* mother;
140  G4VPhysicalVolume* physiFirstMonitorLayer1;
141  G4VPhysicalVolume* physiFirstMonitorLayer2;
142  G4VPhysicalVolume* physiFirstMonitorLayer3;
143  G4VPhysicalVolume* physiFirstMonitorLayer4;
144  G4VPhysicalVolume* physiNozzleSupport;
145  G4VPhysicalVolume* physiHoleNozzleSupport;
146  G4VPhysicalVolume* physiSecondHoleNozzleSupport;
147  G4Tubs* solidFinalCollimator;
148  G4VPhysicalVolume* physiFinalCollimator;
149 
150  G4VisAttributes* blue;
151  G4VisAttributes* gray;
152  G4VisAttributes* white;
153  G4VisAttributes* red;
154  G4VisAttributes* yellow;
155  G4VisAttributes* green;
156  G4VisAttributes* darkGreen;
157  G4VisAttributes* darkOrange3;
158  G4VisAttributes* skyBlue;
159 
160  G4Material* beamLineSupportMaterial;
161  G4Material* vacuumZoneMaterial;
162  G4Material* firstScatteringFoilMaterial;
163  G4Material* kaptonWindowMaterial;
164  G4Material* stopperMaterial;
165  G4Material* secondScatteringFoilMaterial;
166 
167  G4Material* layer1MonitorChamberMaterial;
168  G4Material* layer2MonitorChamberMaterial;
169  G4Material* layer3MonitorChamberMaterial;
170  G4Material* layer4MonitorChamberMaterial;
171  G4Material* nozzleSupportMaterial;
172  G4Material* holeNozzleSupportMaterial;
173  G4Material* seconHoleNozzleSupportMaterial;
174  G4Material* finalCollimatorMaterial;
175 };
176 #endif
177