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: G4ParameterisationPolycone.hh,v 1.7 2006/06/29 18:18:18 gunter Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-02-ref-02 $ |
---|
29 | // |
---|
30 | // classes G4ParameterisationPolyconeRho, |
---|
31 | // G4ParameterisationPolyconePhi, |
---|
32 | // G4ParameterisationPolyconeZ |
---|
33 | // |
---|
34 | // Class description: |
---|
35 | // |
---|
36 | // These classes represent the parameterised positioning equivalent to |
---|
37 | // dividing a G4Polycone along one of each axis Rho, Phi, Z. |
---|
38 | |
---|
39 | // History: |
---|
40 | // ------- |
---|
41 | // 09.05.01 - P.Arce, Initial version |
---|
42 | // 08.04.04 - I.Hrivnacova, Implemented reflection |
---|
43 | //--------------------------------------------------------------------- |
---|
44 | #ifndef G4ParameterisationPolycone_H |
---|
45 | #define G4ParameterisationPolycone_H 1 |
---|
46 | |
---|
47 | #include "G4VDivisionParameterisation.hh" |
---|
48 | #include "G4Polycone.hh" |
---|
49 | |
---|
50 | class G4VPhysicalVolume; |
---|
51 | |
---|
52 | // Dummy declarations to get rid of warnings ... |
---|
53 | class G4Trd; |
---|
54 | class G4Trap; |
---|
55 | class G4Cons; |
---|
56 | class G4Orb; |
---|
57 | class G4Sphere; |
---|
58 | class G4Torus; |
---|
59 | class G4Para; |
---|
60 | class G4Hype; |
---|
61 | class G4Tubs; |
---|
62 | class G4Polyhedra; |
---|
63 | |
---|
64 | class G4VParameterisationPolycone : public G4VDivisionParameterisation |
---|
65 | { |
---|
66 | public: // with description |
---|
67 | |
---|
68 | G4VParameterisationPolycone( EAxis axis, G4int nCopies, |
---|
69 | G4double offset, G4double step, |
---|
70 | G4VSolid* msolid, DivisionType divType ); |
---|
71 | |
---|
72 | virtual ~G4VParameterisationPolycone(); |
---|
73 | }; |
---|
74 | |
---|
75 | //--------------------------------------------------------------------- |
---|
76 | // Class G4ParameterisationPolyconeRho |
---|
77 | //--------------------------------------------------------------------- |
---|
78 | |
---|
79 | class G4ParameterisationPolyconeRho : public G4VParameterisationPolycone |
---|
80 | { |
---|
81 | public: // with description |
---|
82 | |
---|
83 | G4ParameterisationPolyconeRho( EAxis axis, G4int nCopies, |
---|
84 | G4double offset, G4double step, |
---|
85 | G4VSolid* motherSolid, |
---|
86 | DivisionType divType ); |
---|
87 | virtual ~G4ParameterisationPolyconeRho(); |
---|
88 | |
---|
89 | virtual void CheckParametersValidity(); |
---|
90 | |
---|
91 | virtual G4double GetMaxParameter() const; |
---|
92 | |
---|
93 | virtual void ComputeTransformation( const G4int copyNo, |
---|
94 | G4VPhysicalVolume* physVol ) const; |
---|
95 | void ComputeDimensions( G4Polycone& pcone, const G4int copyNo, |
---|
96 | const G4VPhysicalVolume* physVol ) const; |
---|
97 | |
---|
98 | private: // Dummy declarations to get rid of warnings ... |
---|
99 | |
---|
100 | void ComputeDimensions (G4Trd&,const G4int, |
---|
101 | const G4VPhysicalVolume*) const {} |
---|
102 | void ComputeDimensions (G4Trap&,const G4int, |
---|
103 | const G4VPhysicalVolume*) const {} |
---|
104 | void ComputeDimensions (G4Box&,const G4int, |
---|
105 | const G4VPhysicalVolume*) const {} |
---|
106 | void ComputeDimensions (G4Orb&,const G4int, |
---|
107 | const G4VPhysicalVolume*) const {} |
---|
108 | void ComputeDimensions (G4Sphere&,const G4int, |
---|
109 | const G4VPhysicalVolume*) const {} |
---|
110 | void ComputeDimensions (G4Torus&,const G4int, |
---|
111 | const G4VPhysicalVolume*) const {} |
---|
112 | void ComputeDimensions (G4Para&,const G4int, |
---|
113 | const G4VPhysicalVolume*) const {} |
---|
114 | void ComputeDimensions (G4Hype&,const G4int, |
---|
115 | const G4VPhysicalVolume*) const {} |
---|
116 | void ComputeDimensions (G4Tubs&,const G4int, |
---|
117 | const G4VPhysicalVolume*) const {} |
---|
118 | void ComputeDimensions (G4Cons&,const G4int, |
---|
119 | const G4VPhysicalVolume*) const {} |
---|
120 | void ComputeDimensions (G4Polyhedra&,const G4int, |
---|
121 | const G4VPhysicalVolume*) const {} |
---|
122 | }; |
---|
123 | |
---|
124 | //--------------------------------------------------------------------- |
---|
125 | // Class G4ParameterisationPolyconePhi |
---|
126 | //--------------------------------------------------------------------- |
---|
127 | |
---|
128 | class G4ParameterisationPolyconePhi : public G4VParameterisationPolycone |
---|
129 | { |
---|
130 | public: // with description |
---|
131 | |
---|
132 | G4ParameterisationPolyconePhi( EAxis axis, G4int nCopies, |
---|
133 | G4double offset, G4double step, |
---|
134 | G4VSolid* motherSolid, |
---|
135 | DivisionType divType ); |
---|
136 | virtual ~G4ParameterisationPolyconePhi(); |
---|
137 | |
---|
138 | virtual G4double GetMaxParameter() const; |
---|
139 | |
---|
140 | virtual void ComputeTransformation( const G4int copyNo, |
---|
141 | G4VPhysicalVolume* physVol ) const; |
---|
142 | void ComputeDimensions( G4Polycone& pcone, const G4int copyNo, |
---|
143 | const G4VPhysicalVolume* physVol ) const; |
---|
144 | |
---|
145 | private: // Dummy declarations to get rid of warnings ... |
---|
146 | |
---|
147 | void ComputeDimensions (G4Trd&,const G4int, |
---|
148 | const G4VPhysicalVolume*) const {} |
---|
149 | void ComputeDimensions (G4Trap&,const G4int, |
---|
150 | const G4VPhysicalVolume*) const {} |
---|
151 | void ComputeDimensions (G4Box&,const G4int, |
---|
152 | const G4VPhysicalVolume*) const {} |
---|
153 | void ComputeDimensions (G4Orb&,const G4int, |
---|
154 | const G4VPhysicalVolume*) const {} |
---|
155 | void ComputeDimensions (G4Sphere&,const G4int, |
---|
156 | const G4VPhysicalVolume*) const {} |
---|
157 | void ComputeDimensions (G4Torus&,const G4int, |
---|
158 | const G4VPhysicalVolume*) const {} |
---|
159 | void ComputeDimensions (G4Para&,const G4int, |
---|
160 | const G4VPhysicalVolume*) const {} |
---|
161 | void ComputeDimensions (G4Hype&,const G4int, |
---|
162 | const G4VPhysicalVolume*) const {} |
---|
163 | void ComputeDimensions (G4Tubs&,const G4int, |
---|
164 | const G4VPhysicalVolume*) const {} |
---|
165 | void ComputeDimensions (G4Cons&,const G4int, |
---|
166 | const G4VPhysicalVolume*) const {} |
---|
167 | void ComputeDimensions (G4Polyhedra&,const G4int, |
---|
168 | const G4VPhysicalVolume*) const {} |
---|
169 | }; |
---|
170 | |
---|
171 | //--------------------------------------------------------------------- |
---|
172 | // Class G4ParameterisationPolyconeZ |
---|
173 | //--------------------------------------------------------------------- |
---|
174 | |
---|
175 | class G4ParameterisationPolyconeZ : public G4VParameterisationPolycone |
---|
176 | { |
---|
177 | public: // with description |
---|
178 | |
---|
179 | G4ParameterisationPolyconeZ( EAxis axis, G4int nCopies, |
---|
180 | G4double offset, G4double step, |
---|
181 | G4VSolid* motherSolid, |
---|
182 | DivisionType divType ); |
---|
183 | virtual ~G4ParameterisationPolyconeZ(); |
---|
184 | |
---|
185 | virtual void CheckParametersValidity(); |
---|
186 | |
---|
187 | virtual G4double GetMaxParameter() const; |
---|
188 | |
---|
189 | virtual void ComputeTransformation( const G4int copyNo, |
---|
190 | G4VPhysicalVolume* physVol ) const; |
---|
191 | void ComputeDimensions( G4Polycone& pcone, const G4int copyNo, |
---|
192 | const G4VPhysicalVolume* physVol ) const; |
---|
193 | |
---|
194 | private: // Dummy declarations to get rid of warnings ... |
---|
195 | |
---|
196 | void ComputeDimensions (G4Trd&,const G4int, |
---|
197 | const G4VPhysicalVolume*) const {} |
---|
198 | void ComputeDimensions (G4Trap&,const G4int, |
---|
199 | const G4VPhysicalVolume*) const {} |
---|
200 | void ComputeDimensions (G4Box&,const G4int, |
---|
201 | const G4VPhysicalVolume*) const {} |
---|
202 | void ComputeDimensions (G4Orb&,const G4int, |
---|
203 | const G4VPhysicalVolume*) const {} |
---|
204 | void ComputeDimensions (G4Sphere&,const G4int, |
---|
205 | const G4VPhysicalVolume*) const {} |
---|
206 | void ComputeDimensions (G4Torus&,const G4int, |
---|
207 | const G4VPhysicalVolume*) const {} |
---|
208 | void ComputeDimensions (G4Para&,const G4int, |
---|
209 | const G4VPhysicalVolume*) const {} |
---|
210 | void ComputeDimensions (G4Hype&,const G4int, |
---|
211 | const G4VPhysicalVolume*) const {} |
---|
212 | void ComputeDimensions (G4Tubs&,const G4int, |
---|
213 | const G4VPhysicalVolume*) const {} |
---|
214 | void ComputeDimensions (G4Cons&,const G4int, |
---|
215 | const G4VPhysicalVolume*) const {} |
---|
216 | void ComputeDimensions (G4Polyhedra&,const G4int, |
---|
217 | const G4VPhysicalVolume*) const {} |
---|
218 | }; |
---|
219 | |
---|
220 | #endif |
---|