Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4Polyhedron.cc
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//
27
28#include "G4Polyhedron.hh"
29
31= default;
32
34 HepPolyhedron (Nvert, Nface)
35{}
36
38
40 : HepPolyhedron(from)
41{
42 fNumberOfRotationStepsAtTimeOfCreation =
44}
45
47 G4Polyhedron (HepPolyhedronBox (dx, dy, dz)) {}
48
50
52 G4double Rmn2, G4double Rmx2, G4double Dz):
53 G4Polyhedron (HepPolyhedronCone (Rmn1, Rmx1, Rmn2, Rmx2, Dz)) {}
54
56
58 G4double Rmn2, G4double Rmx2, G4double Dz,
59 G4double Phi1, G4double Dphi):
60 G4Polyhedron (HepPolyhedronCons (Rmn1, Rmx1, Rmn2, Rmx2, Dz, Phi1, Dphi)) {}
61
63
65 G4double Alpha, G4double Theta,
66 G4double Phi):
67 G4Polyhedron (HepPolyhedronPara (Dx, Dy, Dz, Alpha, Theta, Phi)) {}
68
70
72 const G4double *z,
73 const G4double *rmin,
74 const G4double *rmax):
75 G4Polyhedron (HepPolyhedronPcon (phi, dphi, nz, z, rmin, rmax)) {}
76
78 const std::vector<G4TwoVector> &rz):
79 G4Polyhedron (HepPolyhedronPcon(phi, dphi, rz)) {}
80
82
84 G4int nz,
85 const G4double *z,
86 const G4double *rmin,
87 const G4double *rmax):
88 G4Polyhedron (HepPolyhedronPgon (phi, dphi, npdv, nz, z, rmin, rmax)) {}
89
91 const std::vector<G4TwoVector> &rz):
92 G4Polyhedron (HepPolyhedronPgon(phi, dphi, npdv, rz)) {}
93
95
97 G4double phi, G4double dphi,
98 G4double the, G4double dthe):
99 G4Polyhedron (HepPolyhedronSphere (rmin, rmax, phi, dphi, the, dthe)) {}
100
102
104 const G4double p1[3],
105 const G4double p2[3],
106 const G4double p3[3]):
107 G4Polyhedron (HepPolyhedronTet (p0, p1, p2, p3)) {}
108
110
112 G4double rtor,
113 G4double phi, G4double dphi):
114 G4Polyhedron (HepPolyhedronTorus (rmin, rmax, rtor, phi, dphi)) {}
115
117
119 G4double Dy1,
120 G4double Dx1, G4double Dx2, G4double Alp1,
121 G4double Dy2,
122 G4double Dx3, G4double Dx4, G4double Alp2):
123 G4Polyhedron (HepPolyhedronTrap (Dz, Theta, Phi, Dy1, Dx1, Dx2, Alp1,
124 Dy2, Dx3, Dx4, Alp2)) {}
125
127
129 G4double Dy, G4double Dz):
130 G4Polyhedron (HepPolyhedronTrd1 (Dx1, Dx2, Dy, Dz)) {}
131
133
135 G4double Dy1, G4double Dy2, G4double Dz):
136 G4Polyhedron (HepPolyhedronTrd2 (Dx1, Dx2, Dy1, Dy2, Dz)) {}
137
139
141 G4Polyhedron (HepPolyhedronTube (Rmin, Rmax, Dz)) {}
142
144
146 G4double Phi1, G4double Dphi):
147 G4Polyhedron (HepPolyhedronTubs (Rmin, Rmax, Dz, Phi1, Dphi)) {}
148
150
152 G4double dz, G4double sPhi,
153 G4double dPhi):
154 G4Polyhedron (HepPolyhedronParaboloid(r1, r2, dz, sPhi, dPhi)) {}
155
157
159 G4double tan2, G4double halfZ):
160 G4Polyhedron (HepPolyhedronHype(r1, r2, tan1, tan2, halfZ)) {}
161
163
165 G4double cz,
166 G4double zCut1, G4double zCut2):
167 G4Polyhedron (HepPolyhedronEllipsoid (ax, by, cz, zCut1, zCut2)) {}
168
170
172 G4double ay,
173 G4double h,
174 G4double zCut1):
175 G4Polyhedron (HepPolyhedronEllipticalCone (ax, ay, h, zCut1)) {}
176
178
180 G4double h,
181 G4double r):
183
185
187G4PolyhedronTetMesh(const std::vector<G4ThreeVector>& tetrahedra):
188 G4Polyhedron (HepPolyhedronTetMesh(tetrahedra)) {}
189
191
194 const std::vector<G4ThreeVector>& positions):
195 G4Polyhedron (HepPolyhedronBoxMesh(sizeX, sizeY, sizeZ, positions)) {}
196
198
199std::ostream& operator<<(std::ostream& os, const G4Polyhedron& polyhedron)
200{
201 os << "G4Polyhedron: "
202 << (const G4Visible&)polyhedron << '\n'
203 << (const HepPolyhedron&)polyhedron;
204 return os;
205}
std::ostream & operator<<(std::ostream &os, const G4Polyhedron &polyhedron)
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
G4PolyhedronBoxMesh(G4double sizeX, G4double sizeY, G4double sizeZ, const std::vector< G4ThreeVector > &positions)
~G4PolyhedronBoxMesh() override
G4PolyhedronBox(G4double dx, G4double dy, G4double dz)
Definition: G4Polyhedron.cc:46
~G4PolyhedronBox() override
G4PolyhedronCone(G4double Rmn1, G4double Rmx1, G4double Rmn2, G4double Rmx2, G4double Dz)
Definition: G4Polyhedron.cc:51
~G4PolyhedronCone() override
~G4PolyhedronCons() override
G4PolyhedronCons(G4double Rmn1, G4double Rmx1, G4double Rmn2, G4double Rmx2, G4double Dz, G4double Phi1, G4double Dphi)
Definition: G4Polyhedron.cc:57
~G4PolyhedronEllipsoid() override
G4PolyhedronEllipsoid(G4double dx, G4double dy, G4double dz, G4double zcut1, G4double zcut2)
~G4PolyhedronEllipticalCone() override
G4PolyhedronEllipticalCone(G4double dx, G4double dy, G4double z, G4double zcut1)
G4PolyhedronHype(G4double r1, G4double r2, G4double tan1, G4double tan2, G4double halfZ)
~G4PolyhedronHype() override
~G4PolyhedronHyperbolicMirror() override
G4PolyhedronHyperbolicMirror(G4double a, G4double h, G4double r)
~G4PolyhedronPara() override
G4PolyhedronPara(G4double Dx, G4double Dy, G4double Dz, G4double Alpha, G4double Theta, G4double Phi)
Definition: G4Polyhedron.cc:64
~G4PolyhedronParaboloid() override
G4PolyhedronParaboloid(G4double r1, G4double r2, G4double dz, G4double sPhi, G4double dPhi)
~G4PolyhedronPcon() override
G4PolyhedronPcon(G4double phi, G4double dphi, G4int nz, const G4double *z, const G4double *rmin, const G4double *rmax)
Definition: G4Polyhedron.cc:71
~G4PolyhedronPgon() override
G4PolyhedronPgon(G4double phi, G4double dphi, G4int npdv, G4int nz, const G4double *z, const G4double *rmin, const G4double *rmax)
Definition: G4Polyhedron.cc:83
G4PolyhedronSphere(G4double rmin, G4double rmax, G4double phi, G4double dphi, G4double the, G4double dthe)
Definition: G4Polyhedron.cc:96
~G4PolyhedronSphere() override
G4PolyhedronTetMesh(const std::vector< G4ThreeVector > &tetrahedra)
~G4PolyhedronTetMesh() override
G4PolyhedronTet(const G4double p0[3], const G4double p1[3], const G4double p2[3], const G4double p3[3])
~G4PolyhedronTet() override
G4PolyhedronTorus(G4double rmin, G4double rmax, G4double rtor, G4double phi, G4double dphi)
~G4PolyhedronTorus() override
G4PolyhedronTrap(G4double Dz, G4double Theta, G4double Phi, G4double Dy1, G4double Dx1, G4double Dx2, G4double Alp1, G4double Dy2, G4double Dx3, G4double Dx4, G4double Alp2)
~G4PolyhedronTrap() override
G4PolyhedronTrd1(G4double Dx1, G4double Dx2, G4double Dy, G4double Dz)
~G4PolyhedronTrd1() override
G4PolyhedronTrd2(G4double Dx1, G4double Dx2, G4double Dy1, G4double Dy2, G4double Dz)
~G4PolyhedronTrd2() override
~G4PolyhedronTube() override
G4PolyhedronTube(G4double Rmin, G4double Rmax, G4double Dz)
~G4PolyhedronTubs() override
G4PolyhedronTubs(G4double Rmin, G4double Rmax, G4double Dz, G4double Phi1, G4double Dphi)
~G4Polyhedron() override
static G4ThreadLocal G4int fNumberOfRotationSteps