source: trunk/examples/advanced/hadrontherapy/include/HadrontherapyBeamLine.hh @ 1321

Last change on this file since 1321 was 807, checked in by garnier, 16 years ago

update

File size: 6.1 KB
Line 
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// ----------------------------------------------------------------------------
27// $Id: HadrontherapyBeamLine.cc; May 2005
28// ----------------------------------------------------------------------------
29//                 GEANT 4 - Hadrontherapy example
30// ----------------------------------------------------------------------------
31// Code developed by:
32//
33// G.A.P. Cirrone(a)*, F. Di Rosa(a), S. Guatelli(b), G. Russo(a)
34//
35// (a) Laboratori Nazionali del Sud
36//     of the INFN, Catania, Italy
37// (b) INFN Section of Genova, Genova, Italy
38//
39// * cirrone@lns.infn.it
40// ----------------------------------------------------------------------------
41
42#ifndef HadrontherapyBeamLine_H
43#define HadrontherapyBeamLine_H 1
44
45class G4VPhysicalVolume;
46class HadrontherapyMaterial;
47
48class HadrontherapyBeamLine 
49{
50public:
51  HadrontherapyBeamLine(G4VPhysicalVolume*);
52  ~HadrontherapyBeamLine();
53
54  void HadrontherapyBeamLineSupport();
55  // Definition of the beam line support
56
57  void HadrontherapyBeamScatteringFoils();
58  // Definition of the first scattering foil,
59  // of the Kapton window, of the stopper
60
61  void HadrontherapyBeamCollimators();
62  // Definition of the first collimator, of the range shifter,
63  // of the second collimator, of the first and second
64  // collimator modulators
65 
66  void HadrontherapyBeamMonitoring();
67  // Definition of three monitor chambers
68
69  void HadrontherapyBeamNozzle();
70  // Definition of the beam noozle
71
72  void HadrontherapyBeamFinalCollimator();
73  // Definition of the final collimator
74
75  // The following methods allow to change parameters
76  // of some beam line components
77
78  void SetRangeShifterXPosition(G4double value);
79  // This method allows to move the Range Shifter along
80  // the X axis
81
82  void SetRangeShifterXSize(G4double halfSize);
83  // This method allows to change the size of the range shifter along
84  // the X axis
85 
86  void SetFirstScatteringFoilXSize(G4double);
87  // This method allows to change the size of the first scattering foil
88  // along the X axis
89
90  void SetSecondScatteringFoilXSize(G4double);
91  // This method allows to change the size of the second scattering foil
92  // along the X axis
93 
94  void SetOuterRadiusStopper(G4double);
95  // This method allows to change the size of the outer radius of the stopper
96 
97  void SetInnerRadiusFinalCollimator(G4double);
98  // This method allows to change the size of the inner radius of the
99  // final collimator
100 
101  void SetRSMaterial(G4String);
102  // This method allows to change the material
103  // of the range shifter
104
105private:
106  G4VPhysicalVolume* physiBeamLineSupport; 
107  G4VPhysicalVolume* physiBeamLineCover; 
108  G4VPhysicalVolume* physiBeamLineCover2;
109  G4Box* firstScatteringFoil;
110  G4VPhysicalVolume* physiFirstScatteringFoil;
111  G4VPhysicalVolume* physiKaptonWindow;
112  G4Tubs* solidStopper;
113  G4VPhysicalVolume* physiStopper; 
114  G4Box* secondScatteringFoil; 
115  G4VPhysicalVolume* physiSecondScatteringFoil; 
116  G4VPhysicalVolume* physiFirstCollimator; 
117  G4VPhysicalVolume* physiHoleFirstCollimator;
118  G4Box* solidRangeShifterBox;
119  G4LogicalVolume* logicRangeShifterBox;
120  G4VPhysicalVolume* physiRangeShifterBox;
121  G4VPhysicalVolume* physiSecondCollimator;
122  G4VPhysicalVolume* physiHoleSecondCollimator; 
123  G4VPhysicalVolume* physiFirstCollimatorModulatorBox;
124  G4VPhysicalVolume* physiHoleFirstCollimatorModulatorBox; 
125  G4VPhysicalVolume* physiSecondCollimatorModulatorBox;
126  G4VPhysicalVolume* physiHoleSecondCollimatorModulatorBox;
127  G4VPhysicalVolume* physiFirstMonitorLayer1;
128  G4VPhysicalVolume* physiFirstMonitorLayer2;
129  G4VPhysicalVolume* physiFirstMonitorLayer3;
130  G4VPhysicalVolume* physiFirstMonitorLayer4;
131  G4VPhysicalVolume* physiSecondMonitorLayer1;
132  G4VPhysicalVolume* physiSecondMonitorLayer2;
133  G4VPhysicalVolume* physiSecondMonitorLayer3;
134  G4VPhysicalVolume* physiSecondMonitorLayer4;
135  G4VPhysicalVolume* physiThirdMonitorLayer1;
136  G4VPhysicalVolume* physiThirdMonitorLayer2;
137  G4VPhysicalVolume* physiThirdMonitorLayer3;
138  G4VPhysicalVolume* physiThirdMonitorLayer4;
139  G4VPhysicalVolume* physiNozzleSupport;
140G4VPhysicalVolume* physiHoleNozzle;
141
142  G4VPhysicalVolume* physiHoleNozzleSupport; 
143  G4VPhysicalVolume* physiSecondHoleNozzleSupport;
144  G4Tubs* solidFinalCollimator; 
145  G4VPhysicalVolume* physiFinalCollimator; 
146  G4double firstScatteringFoilXSize;
147  G4double outerRadiusStopper;
148  G4double secondScatteringFoilXSize;
149  G4double rangeShifterXSize;
150  G4double rangeShifterXPosition;
151  G4double innerRadiusFinalCollimator;
152  G4VPhysicalVolume* mother;
153  HadrontherapyMaterial* material;
154  G4Material* RSMat;
155};
156#endif
Note: See TracBrowser for help on using the repository browser.