Geant4  10.02.p01
PassiveProtonBeamLine.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 PassiveProtonBeamLine_H
30 #define PassiveProtonBeamLine_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;
41 //class FaradayCup;
45 
47 {
48 public:
49 
50  //PassiveProtonBeamLine(G4VPhysicalVolume*);
53  // static G4bool doCalculation;
54 
56  //***************************** PW **************NON SERVE*************************
57 
59 
60  //***************************** PW **************NON SERVE*************************
61 
63  // Definition of the beam line support
64 
66  // Definition of the first scattering foil,
67  // of the Kapton window, of the stopper
68 
70  // This defines the "range shifter". Is is a slab
71  // (usually of PMMA" acting as energy degrader
72  // of primary beam
73 
75  // Definition of the first collimator, of the range shifter,
76  // of the second collimator, of the first and second
77  // collimator modulators
78 
80  // Definition of three monitor chambers
81 
83  // Construct the MOPI on-line detector
84 
86  // Definition of the beam noozle
87 
89  // Definition of the final collimator
90 
91  // The following methods allow to change parameters
92  // of some beam line components
93 
95  // This method allows to move the Range Shifter along
96  // the X axis
97 
98  void SetRangeShifterXSize(G4double halfSize);
99  // This method allows to change the size of the range shifter along
100  // the X axis
101 
103  // This method allows to change the size of the first scattering foil
104  // along the X axis
105 
107  // This method allows to change the size of the second scattering foil
108  // along the X axis
109 
111  // This method allows to change the size of the outer radius of the stopper
112 
114  // This method allows to change the size of the inner radius of the
115  // final collimator
116 
117  void SetRSMaterial(G4String);
118  // This method allows to change the material
119  // of the range shifter
120 
122  // This method allows moving the modulator through UI commands
123 
124 
125 private:
127  //passive proton line dimensions
128  void SetDefaultDimensions();
130 
131  HadrontherapyModulator* modulator; // Pointer to the modulator
132  // geometry component
136 
137  // Pointer to the Faraday Cup class file
138  // FaradayCup *pFaradayCup;
139 
141 
146 
151 
156 
165 
172 
179 
180 
187 
191 
201 
204 
207 
208  // MOPI Detector
209  // Mother volume
213 
220 
221  // First Kapton layer
231 
232  // First Aluminum layer
242 
243  // First Air Gap
253 
254  // Cathode
264 
266 
267  // First Air Gap
277 
278  // First Aluminum layer
288 
289  // Second Kapton layer
299 
302 
318 
328 
354 
359 
360 
362 
363 
364 };
365 #endif
G4VPhysicalVolume * physiKaptonWindow
G4Material * MOPIFirstKaptonLayerMaterial
G4VPhysicalVolume * physiFirstMonitorLayer2
G4VPhysicalVolume * physiHoleFirstCollimator
G4VPhysicalVolume * physicalTreatmentRoom
G4VPhysicalVolume * physiFinalCollimator
PassiveProtonBeamLineMessenger * passiveMessenger
Definition: G4Box.hh:64
G4LogicalVolume * logicMOPICathode
void SetModulatorAngle(G4double angle)
G4VPhysicalVolume * physiFirstMonitorLayer1
HadrontherapyDetectorROGeometry * RO
Definition: G4Tubs.hh:85
static PassiveProtonBeamLine * instance
static G4double angle[DIM]
G4VPhysicalVolume * physiHoleSecondCollimator
static PassiveProtonBeamLine * GetInstance()
void SetSecondScatteringFoilXSize(G4double)
G4VPhysicalVolume * physiFirstScatteringFoil
G4VPhysicalVolume * physiFirstCollimator
G4Material * MOPISecondKaptonLayerMaterial
HadrontherapyDetectorConstruction * hadrontherapyDetectorConstruction
G4VPhysicalVolume * physiBeamLineCover2
G4VPhysicalVolume * physiSecondCollimator
G4Material * holeFirstCollimatorMaterial
G4Material * layer1MonitorChamberMaterial
G4VPhysicalVolume * physiSecondMonitorLayer2
G4VPhysicalVolume * physiSecondMonitorLayer4
G4VPhysicalVolume * physiFirstCollimatorModulatorBox
G4Material * MOPIFirstAluminumLayerMaterial
G4VPhysicalVolume * physiFirstMonitorLayer3
G4Material * layer4MonitorChamberMaterial
void SetRangeShifterXPosition(G4double value)
G4LogicalVolume * logicMOPIFirstAirGap
G4VPhysicalVolume * physiMOPIMotherVolume
void SetInnerRadiusFinalCollimator(G4double)
G4LogicalVolume * logicMOPIFirstKaptonLayer
G4VPhysicalVolume * physiHoleFirstCollimatorModulatorBox
G4VPhysicalVolume * physiBrassTube2
void SetFirstScatteringFoilXSize(G4double)
G4VPhysicalVolume * physiFirstMonitorLayer4
G4LogicalVolume * logicMOPISecondAluminumLayer
G4VPhysicalVolume * physiMOPISecondAirGap
void SetRangeShifterXSize(G4double halfSize)
G4VPhysicalVolume * physiNozzleSupport
G4VPhysicalVolume * physiBrassTube3
G4VPhysicalVolume * physiSecondMonitorLayer1
G4LogicalVolume * logicMOPISecondAirGap
G4VPhysicalVolume * physiSecondCollimatorModulatorBox
G4VPhysicalVolume * physiHoleNozzleSupport
G4Material * secondScatteringFoilMaterial
G4VPhysicalVolume * mother
G4LogicalVolume * logicMOPISecondKaptonLayer
G4LogicalVolume * logicMOPIMotherVolume
G4LogicalVolume * logicMOPIFirstAluminumLayer
G4VPhysicalVolume * physiMOPISecondKaptonLayer
G4VPhysicalVolume * physiMOPIFirstAluminumLayer
G4VPhysicalVolume * physiSecondScatteringFoil
G4VPhysicalVolume * physiMOPICathode
G4Material * layer2MonitorChamberMaterial
G4LogicalVolume * logicStopper
G4VPhysicalVolume * physiHoleSecondCollimatorModulatorBox
G4LogicalVolume * logicRangeShifterBox
G4VPhysicalVolume * physiStopper
G4VPhysicalVolume * physiMOPIFirstAirGap
HadrontherapyModulator * modulator
G4VPhysicalVolume * physiBeamLineSupport
G4VPhysicalVolume * Construct()
G4VPhysicalVolume * physiMOPIFirstKaptonLayer
double G4double
Definition: G4Types.hh:76
G4VPhysicalVolume * physiSecondMonitorLayer3
G4VPhysicalVolume * physiBrassTube
G4Material * firstScatteringFoilMaterial
G4VPhysicalVolume * physiRangeShifterBox
G4Material * MOPISecondAluminumLayerMaterial
G4Material * layer3MonitorChamberMaterial
G4VPhysicalVolume * physiMOPISecondAluminumLayer
G4VPhysicalVolume * physiBeamLineCover