Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ParameterisationTubs.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// G4ParameterisationTubs[Rho/Phi/Z]
27//
28// Class description:
29//
30// This class represents the parameterised positioning equivalent to
31// dividing a G4Tubs along one of each axis Rho, Phi, Z.
32
33// Author: Pedro Arce (CIEMAT), 09.05.2001 - Initial version
34// Ivana Hrivnacova (Orsay), 08.04.2004 - Implemented reflection
35// --------------------------------------------------------------------
36#ifndef G4PARAMETERISATIONTUBS_HH
37#define G4PARAMETERISATIONTUBS_HH 1
38
40
42
43// Dummy declarations to get rid of warnings ...
44//
45class G4Trd;
46class G4Trap;
47class G4Cons;
48class G4Sphere;
49class G4Orb;
50class G4Ellipsoid;
51class G4Torus;
52class G4Para;
53class G4Hype;
54class G4Polycone;
55class G4Polyhedra;
56
57/**
58 * @brief G4VParameterisationTubs is the base class for the parameterised
59 * positioning equivalent to dividing a G4Tubs along one of each axis Rho,
60 * Phi, Z.
61 */
62
64{
65 public:
66
67 /**
68 * Initialises a parameterised tubs, given the axis of parameterisation
69 * 'axis' and the number of divided slices 'nCopies'.
70 * @param[in] axis The axis along which apply the parameterisation.
71 * @param[in] nCopies The total number of divided slices.
72 * @param[in] offset Potential initial offset along the axis.
73 * @param[in] step The width of the divided slice.
74 * @param[in] pSolid Pointer to the original shape to parameterise.
75 * @param[in] divType String identifier for the kind of division.
76 */
79 G4VSolid* pSolid, DivisionType divType );
80
81 /**
82 * Default Destructor.
83 */
85};
86
88{
89 public:
90
91 /**
92 * Initialises a parameterised tubs, along the Rho axis.
93 * @param[in] axis The axis along which apply the parameterisation.
94 * @param[in] nCopies The total number of divided slices.
95 * @param[in] offset Potential initial offset along the axis.
96 * @param[in] step The width of the divided slice.
97 * @param[in] pSolid Pointer to the original shape to parameterise.
98 * @param[in] divType String identifier for the kind of division.
99 */
102 G4VSolid* pSolid, DivisionType divType );
103
104 /**
105 * Default Destructor.
106 */
108
109 /**
110 * Returns the max width along Rho.
111 * @returns The maximum width of the solid to divide along the Rho axis.
112 */
113 G4double GetMaxParameter() const override;
114
115 /**
116 * Concrete methods implementing the parameterisation.
117 */
118 void ComputeTransformation(const G4int copyNo,
119 G4VPhysicalVolume* physVol) const override;
120 void ComputeDimensions(G4Tubs& tubs, const G4int copyNo,
121 const G4VPhysicalVolume* physVol) const override;
122
123 private: // Dummy declarations to get rid of warnings ...
124
125 void ComputeDimensions (G4Trd&,const G4int,
126 const G4VPhysicalVolume*) const override {}
127 void ComputeDimensions (G4Trap&,const G4int,
128 const G4VPhysicalVolume*) const override {}
129 void ComputeDimensions (G4Box&,const G4int,
130 const G4VPhysicalVolume*) const override {}
131 void ComputeDimensions (G4Sphere&,const G4int,
132 const G4VPhysicalVolume*) const override {}
133 void ComputeDimensions (G4Orb&,const G4int,
134 const G4VPhysicalVolume*) const override {}
135 void ComputeDimensions (G4Ellipsoid&,const G4int,
136 const G4VPhysicalVolume*) const override {}
137 void ComputeDimensions (G4Torus&,const G4int,
138 const G4VPhysicalVolume*) const override {}
139 void ComputeDimensions (G4Para&,const G4int,
140 const G4VPhysicalVolume*) const override {}
141 void ComputeDimensions (G4Hype&,const G4int,
142 const G4VPhysicalVolume*) const override {}
143 void ComputeDimensions (G4Cons&,const G4int,
144 const G4VPhysicalVolume*) const override {}
145 void ComputeDimensions (G4Polycone&,const G4int,
146 const G4VPhysicalVolume*) const override {}
147 void ComputeDimensions (G4Polyhedra&,const G4int,
148 const G4VPhysicalVolume*) const override {}
149};
150
151
153{
154 public:
155
156 /**
157 * Initialises a parameterised tubs, along the Phi axis.
158 * @param[in] axis The axis along which apply the parameterisation.
159 * @param[in] nCopies The total number of divided slices.
160 * @param[in] offset Potential initial offset along the axis.
161 * @param[in] step The width of the divided slice.
162 * @param[in] pSolid Pointer to the original shape to parameterise.
163 * @param[in] divType String identifier for the kind of division.
164 */
167 G4VSolid* pSolid, DivisionType divType );
168
169 /**
170 * Default Destructor.
171 */
173
174 /**
175 * Returns the max width along Phi.
176 * @returns The maximum width of the solid to divide along the Phi axis.
177 */
178 G4double GetMaxParameter() const override;
179
180 /**
181 * Concrete methods implementing the parameterisation.
182 */
183 void ComputeTransformation(const G4int copyNo,
184 G4VPhysicalVolume* physVol) const override;
185 void ComputeDimensions(G4Tubs& tubs, const G4int copyNo,
186 const G4VPhysicalVolume* physVol) const override;
187
188 private: // Dummy declarations to get rid of warnings ...
189
190 void ComputeDimensions (G4Trd&,const G4int,
191 const G4VPhysicalVolume*) const override {}
192 void ComputeDimensions (G4Trap&,const G4int,
193 const G4VPhysicalVolume*) const override {}
194 void ComputeDimensions (G4Box&,const G4int,
195 const G4VPhysicalVolume*) const override {}
196 void ComputeDimensions (G4Sphere&,const G4int,
197 const G4VPhysicalVolume*) const override {}
198 void ComputeDimensions (G4Orb&,const G4int,
199 const G4VPhysicalVolume*) const override {}
200 void ComputeDimensions (G4Ellipsoid&,const G4int,
201 const G4VPhysicalVolume*) const override {}
202 void ComputeDimensions (G4Torus&,const G4int,
203 const G4VPhysicalVolume*) const override {}
204 void ComputeDimensions (G4Para&,const G4int,
205 const G4VPhysicalVolume*) const override {}
206 void ComputeDimensions (G4Hype&,const G4int,
207 const G4VPhysicalVolume*) const override {}
208 void ComputeDimensions (G4Cons&,const G4int,
209 const G4VPhysicalVolume*) const override {}
210 void ComputeDimensions (G4Polycone&,const G4int,
211 const G4VPhysicalVolume*) const override {}
212 void ComputeDimensions (G4Polyhedra&,const G4int,
213 const G4VPhysicalVolume*) const override {}
214};
215
216
218{
219 public:
220
221 /**
222 * Initialises a parameterised tubs, along the Z axis.
223 * @param[in] axis The axis along which apply the parameterisation.
224 * @param[in] nCopies The total number of divided slices.
225 * @param[in] offset Potential initial offset along the axis.
226 * @param[in] step The width of the divided slice.
227 * @param[in] pSolid Pointer to the original shape to parameterise.
228 * @param[in] divType String identifier for the kind of division.
229 */
232 G4VSolid* pSolid, DivisionType divType );
233
234 /**
235 * Default Destructor.
236 */
238
239 /**
240 * Returns the max width along Z.
241 * @returns The maximum width of the solid to divide along the Z axis.
242 */
243 G4double GetMaxParameter() const override;
244
245 /**
246 * Concrete methods implementing the parameterisation.
247 */
248 void ComputeTransformation(const G4int copyNo,
249 G4VPhysicalVolume* physVol) const override;
250 void ComputeDimensions(G4Tubs& tubs, const G4int copyNo,
251 const G4VPhysicalVolume* physVol) const override;
252
253 private: // Dummy declarations to get rid of warnings ...
254
255 void ComputeDimensions (G4Trd&,const G4int,
256 const G4VPhysicalVolume*) const override {}
257 void ComputeDimensions (G4Trap&,const G4int,
258 const G4VPhysicalVolume*) const override {}
259 void ComputeDimensions (G4Box&,const G4int,
260 const G4VPhysicalVolume*) const override {}
261 void ComputeDimensions (G4Sphere&,const G4int,
262 const G4VPhysicalVolume*) const override {}
263 void ComputeDimensions (G4Orb&,const G4int,
264 const G4VPhysicalVolume*) const override {}
265 void ComputeDimensions (G4Ellipsoid&,const G4int,
266 const G4VPhysicalVolume*) const override {}
267 void ComputeDimensions (G4Torus&,const G4int,
268 const G4VPhysicalVolume*) const override {}
269 void ComputeDimensions (G4Para&,const G4int,
270 const G4VPhysicalVolume*) const override {}
271 void ComputeDimensions (G4Hype&,const G4int,
272 const G4VPhysicalVolume*) const override {}
273 void ComputeDimensions (G4Cons&,const G4int,
274 const G4VPhysicalVolume*) const override {}
275 void ComputeDimensions (G4Polycone&,const G4int,
276 const G4VPhysicalVolume*) const override {}
277 void ComputeDimensions (G4Polyhedra&,const G4int,
278 const G4VPhysicalVolume*) const override {}
279};
280
281#endif
G4ThreadLocal T * G4GeomSplitter< T >::offset
double G4double
Definition G4Types.hh:83
int G4int
Definition G4Types.hh:85
G4Cons is, in the general case, a Phi segment of a cone, with half-length fDz, inner and outer radii ...
Definition G4Cons.hh:85
G4Ellipsoid is an ellipsoidal solid, optionally cut at a given Z.
G4Hype is a tube with hyperbolic profile; it describes an hyperbolic volume with curved sides paralle...
Definition G4Hype.hh:72
G4Orb represents a full sphere.
Definition G4Orb.hh:59
G4Para represents a parallelepiped, essentially a box with half lengths dx,dy,dz 'skewed' so that the...
Definition G4Para.hh:86
G4ParameterisationTubsPhi(EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *pSolid, DivisionType divType)
~G4ParameterisationTubsPhi() override
G4double GetMaxParameter() const override
void ComputeTransformation(const G4int copyNo, G4VPhysicalVolume *physVol) const override
void ComputeDimensions(G4Tubs &tubs, const G4int copyNo, const G4VPhysicalVolume *physVol) const override
void ComputeTransformation(const G4int copyNo, G4VPhysicalVolume *physVol) const override
G4ParameterisationTubsRho(EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *pSolid, DivisionType divType)
void ComputeDimensions(G4Tubs &tubs, const G4int copyNo, const G4VPhysicalVolume *physVol) const override
~G4ParameterisationTubsRho() override
G4double GetMaxParameter() const override
void ComputeDimensions(G4Tubs &tubs, const G4int copyNo, const G4VPhysicalVolume *physVol) const override
~G4ParameterisationTubsZ() override
G4double GetMaxParameter() const override
G4ParameterisationTubsZ(EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *pSolid, DivisionType divType)
void ComputeTransformation(const G4int copyNo, G4VPhysicalVolume *physVol) const override
G4Polycone represents a composed closed shape (PCON) made of cones and cylinders, along the Z axis wi...
Definition G4Polycone.hh:82
G4Polyhedra represents a composed closed polyhedra (PGON) made of planar sizes along the Z axis,...
G4Sphere is, in the general case, a section of a spherical shell, between specified phi and theta ang...
Definition G4Sphere.hh:89
G4Torus represents a torus or torus segment with curved sides parallel to the z-axis....
Definition G4Torus.hh:102
G4Trap is a general trapezoid: the faces perpendicular to the Z planes are trapezia,...
Definition G4Trap.hh:116
G4Trd is a trapezoid with the X and Y dimensions varying along Z.
Definition G4Trd.hh:65
G4Tubs is a tube or tube segment with curved sides parallel to the Z-axis. The tube has a specified h...
Definition G4Tubs.hh:85
G4VDivisionParameterisation(EAxis axis, G4int nDiv, G4double width, G4double offset, DivisionType divType, G4VSolid *motherSolid=nullptr)
G4VParameterisationTubs(EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *pSolid, DivisionType divType)
~G4VParameterisationTubs() override
G4VPhysicalVolume is an abstract base class for the representation of a positioned volume....
G4VSolid is an abstract base class for solids, physical shapes that can be tracked through....
Definition G4VSolid.hh:80
EAxis
Definition geomdefs.hh:54
const axis_t axis_to_type< N >::axis
Definition pugixml.cc:9668