source: trunk/examples/advanced/medical_linac/include/MedLinacMLCDecorator.hh @ 1282

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

update

File size: 4.3 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: MedLinacMLCDecorator.hh,v 1.3 2006/06/29 16:03:45 gunter Exp $
28//
29// Code developed by: M. Piergentili
30//
31//
32
33
34#ifndef MedLinacMLCDecorator_h
35#define MedLinacMLCDecorator_h 1
36
37#include "globals.hh"
38#include "MedLinacDecorator.hh"
39#include "MedLinacVGeometryComponent.hh"
40#include "MedLinacMLCMessenger.hh"
41
42class G4VPhysicalVolume;
43class G4Box;
44class G4LogicalVolume;
45class G4Material;
46class G4VisAttributes;
47class MedLinacVGeometryComponent;
48class MedLinacDecorator;
49class MedLinacMLCMessenger;
50
51class MedLinacMLCDecorator: public MedLinacDecorator
52{
53public:
54  MedLinacMLCDecorator(MedLinacVGeometryComponent*);
55  ~MedLinacMLCDecorator();
56  void ConstructComponent(G4VPhysicalVolume*,G4VPhysicalVolume*);
57  void DestroyComponent(); 
58
59  void SetLeafName (G4String);
60  void SetPos_y (G4double);
61
62private:
63  void ConstructMultiLeafCollimator(G4VPhysicalVolume*,G4VPhysicalVolume*);
64
65   G4LogicalVolume* leafLog;
66   G4VPhysicalVolume* leafAPhys;
67   G4VPhysicalVolume* leafBPhys;
68
69  G4VisAttributes* simpleTungstenSVisAtt;
70
71  public:
72 
73  void PrintParametersMLC(); 
74
75  G4String GetLeafName()  {return leaf_name;}; 
76  G4double GetPos_y()  {return pos;}; 
77 
78
79
80  private:
81  G4String  leaf_name;
82  G4double  pos;
83
84  G4double  a1y;
85  G4double  a2y;
86  G4double  a3y;
87  G4double  a4y;
88  G4double  a5y;
89  G4double  a6y;
90  G4double  a7y;
91  G4double  a8y;
92  G4double  a9y;
93  G4double  a10y;
94  G4double  a11y;
95  G4double  a12y;
96  G4double  a13y;
97  G4double  a14y;
98  G4double  a15y;
99  G4double  a16y;
100  G4double  a17y;
101  G4double  a18y;
102  G4double  a19y;
103  G4double  a20y;
104  G4double  a21y;
105  G4double  a22y;
106  G4double  a23y;
107  G4double  a24y;
108  G4double  a25y;
109  G4double  a26y;
110  G4double  a27y;
111  G4double  a28y;
112  G4double  a29y;
113  G4double  a30y;
114  G4double  a31y;
115  G4double  a32y;
116  G4double  a33y;
117  G4double  a34y;
118  G4double  a35y;
119  G4double  a36y;
120  G4double  a37y;
121  G4double  a38y;
122  G4double  a39y;
123  G4double  a40y;
124
125  G4double  b1y;
126  G4double  b2y;
127  G4double  b3y;
128  G4double  b4y;
129  G4double  b5y;
130  G4double  b6y;
131  G4double  b7y;
132  G4double  b8y;
133  G4double  b9y;
134  G4double  b10y;
135  G4double  b11y;
136  G4double  b12y;
137  G4double  b13y;
138  G4double  b14y;
139  G4double  b15y;
140  G4double  b16y;
141  G4double  b17y;
142  G4double  b18y;
143  G4double  b19y;
144  G4double  b20y;
145  G4double  b21y;
146  G4double  b22y;
147  G4double  b23y;
148  G4double  b24y;
149  G4double  b25y;
150  G4double  b26y;
151  G4double  b27y;
152  G4double  b28y;
153  G4double  b29y;
154  G4double  b30y;
155  G4double  b31y;
156  G4double  b32y;
157  G4double  b33y;
158  G4double  b34y;
159  G4double  b35y;
160  G4double  b36y;
161  G4double  b37y;
162  G4double  b38y;
163  G4double  b39y;
164  G4double  b40y;
165
166  MedLinacMLCMessenger* MLCMessenger;
167};
168#endif
169
Note: See TracBrowser for help on using the repository browser.