Geant4.10
 All Data Structures 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 
83 
84 private:
85  //passive proton line dimensions
86  void SetDefaultDimensions();
87  void ConstructPassiveCarbonBeamLine();
88 
89  //PassiveCarbonBeamLineMessenger* passiveMessenger;
90  G4VPhysicalVolume* physicalTreatmentRoom;
91  HadrontherapyDetectorConstruction* hadrontherapyDetectorConstruction;
92 
93  G4double vacuumZoneXSize;
94  G4double vacuumZoneYSize;
95  G4double vacuumZoneZSize;
96  G4double vacuumZoneXPosition;
97 
98  G4double kaptonWindowXSize;
99  G4double kaptonWindowYSize;
100  G4double kaptonWindowZSize;
101  G4double kaptonWindowXPosition;
102 
103  G4VPhysicalVolume* physiBeamLineSupport;
104  G4VPhysicalVolume* physiBeamLineCover;
105  G4VPhysicalVolume* physiBeamLineCover2;
106  G4VPhysicalVolume* physiKaptonWindow;
107 
108  G4Tubs* solidStopper;
109  G4VPhysicalVolume* physiStopper;
110  G4LogicalVolume* logicStopper;
111  G4double innerRadiusStopper;
112  G4double heightStopper;
113  G4double startAngleStopper;
114  G4double spanningAngleStopper;
115  G4double stopperXPosition;
116  G4double stopperYPosition;
117  G4double stopperZPosition;
118  G4double outerRadiusStopper;
119 
120  // First scattering foil coupled with the stopper
121  G4Box* firstScatteringFoil;
122  G4VPhysicalVolume* physiFirstScatteringFoil;
123  G4double firstScatteringFoilXSize;
124  G4double firstScatteringFoilYSize;
125  G4double firstScatteringFoilZSize;
126 
127  // Scattering foil coupled with the stopper
128  G4Box* secondScatteringFoil;
129  G4VPhysicalVolume* physiSecondScatteringFoil;
130  G4double secondScatteringFoilXSize;
131  G4double secondScatteringFoilYSize;
132  G4double secondScatteringFoilZSize;
133  G4double secondScatteringFoilXPosition;
134  G4double secondScatteringFoilYPosition;
135  G4double secondScatteringFoilZPosition;
136 
137 
138  G4double innerRadiusFinalCollimator;
139 
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 
177 };
178 #endif
179 
Definition: G4Box.hh:63
Definition: G4Tubs.hh:84
G4VPhysicalVolume * Construct()
G4VPhysicalVolume * mother
double G4double
Definition: G4Types.hh:76