Geant4  10.03.p03
 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 // Hadrontherapy advanced example for Geant4
27 // See more at: https://twiki.cern.ch/twiki/bin/view/Geant4/AdvancedExamplesHadrontherapy
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 
44 {
45 public:
46 
49 
51 
53  // Definition of the beam line support
54 
55  // Simulation of the scattering system for the
56  // passive spread of the beam
57  void ScatteringSystem();
58 
59  void VacuumToAirInterface();
60  // Definition of the first scattering foil,
61  // of the Kapton window, of the stopper
62 
64  // Definition of three monitor chambers
65 
67  // Definition of the beam noozle
68 
70  // Definition of the final collimator
71 
72  // The following methods allow to change parameters
73  // of some beam line components
74 
81 
82 private:
83  //passive proton line dimensions
84  void SetDefaultDimensions();
85  void ConstructPassiveCarbonBeamLine();
86 
87  //PassiveCarbonBeamLineMessenger* passiveMessenger;
88  G4VPhysicalVolume* physicalTreatmentRoom;
89  HadrontherapyDetectorConstruction* hadrontherapyDetectorConstruction;
90  //FaradayCup *FC;
91 
92  G4double vacuumZoneXSize;
93  G4double vacuumZoneYSize;
94  G4double vacuumZoneZSize;
95  G4double vacuumZoneXPosition;
96 
97  G4double kaptonWindowXSize;
98  G4double kaptonWindowYSize;
99  G4double kaptonWindowZSize;
100  G4double kaptonWindowXPosition;
101 
102  G4VPhysicalVolume* physiBeamLineSupport;
103  G4VPhysicalVolume* physiBeamLineCover;
104  G4VPhysicalVolume* physiBeamLineCover2;
105  G4VPhysicalVolume* physiKaptonWindow;
106 
107  G4Tubs* solidStopper;
108  G4VPhysicalVolume* physiStopper;
109  G4LogicalVolume* logicStopper;
110  G4double innerRadiusStopper;
111  G4double heightStopper;
112  G4double startAngleStopper;
113  G4double spanningAngleStopper;
114  G4double stopperXPosition;
115  G4double stopperYPosition;
116  G4double stopperZPosition;
117  G4double outerRadiusStopper;
118 
119  // First scattering foil coupled with the stopper
120  G4Box* firstScatteringFoil;
121  G4VPhysicalVolume* physiFirstScatteringFoil;
122  G4double firstScatteringFoilXSize;
123  G4double firstScatteringFoilYSize;
124  G4double firstScatteringFoilZSize;
125 
126  // Scattering foil coupled with the stopper
127  G4Box* secondScatteringFoil;
128  G4VPhysicalVolume* physiSecondScatteringFoil;
129  G4double secondScatteringFoilXSize;
130  G4double secondScatteringFoilYSize;
131  G4double secondScatteringFoilZSize;
132  G4double secondScatteringFoilXPosition;
133  G4double secondScatteringFoilYPosition;
134  G4double secondScatteringFoilZPosition;
135 
136 
137  G4double innerRadiusFinalCollimator;
138 
139  G4VPhysicalVolume* physiFirstMonitorLayer1;
140  G4VPhysicalVolume* physiFirstMonitorLayer2;
141  G4VPhysicalVolume* physiFirstMonitorLayer3;
142  G4VPhysicalVolume* physiFirstMonitorLayer4;
143  G4VPhysicalVolume* physiNozzleSupport;
144  G4VPhysicalVolume* physiHoleNozzleSupport;
145  G4VPhysicalVolume* physiNozzleSupportHole;
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:64
Definition: G4Tubs.hh:85
G4VPhysicalVolume * Construct()
G4VPhysicalVolume * mother
double G4double
Definition: G4Types.hh:76