ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4Polyhedron.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4Polyhedron.cc
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
30
G4Polyhedron::G4Polyhedron
():
31
fNumberOfRotationStepsAtTimeOfCreation (fNumberOfRotationSteps)
32
{}
33
34
G4Polyhedron::~G4Polyhedron
() {}
35
36
G4Polyhedron::G4Polyhedron
(
const
HepPolyhedron
& from)
37
:
HepPolyhedron
(from)
38
{
39
fNumberOfRotationStepsAtTimeOfCreation
=
40
from.
fNumberOfRotationSteps
;
41
}
42
43
G4PolyhedronBox::G4PolyhedronBox
(
G4double
dx
,
G4double
dy
,
G4double
dz
):
44
G4Polyhedron
(
HepPolyhedronBox
(dx, dy, dz)) {}
45
46
G4PolyhedronBox::~G4PolyhedronBox
() {}
47
48
G4PolyhedronCone::G4PolyhedronCone
(
G4double
Rmn1,
G4double
Rmx1,
49
G4double
Rmn2,
G4double
Rmx2,
G4double
Dz
):
50
G4Polyhedron
(
HepPolyhedronCone
(Rmn1, Rmx1, Rmn2, Rmx2, Dz)) {}
51
52
G4PolyhedronCone::~G4PolyhedronCone
() {}
53
54
G4PolyhedronCons::G4PolyhedronCons
(
G4double
Rmn1,
G4double
Rmx1,
55
G4double
Rmn2,
G4double
Rmx2,
G4double
Dz
,
56
G4double
Phi1,
G4double
Dphi):
57
G4Polyhedron
(
HepPolyhedronCons
(Rmn1, Rmx1, Rmn2, Rmx2, Dz, Phi1, Dphi)) {}
58
59
G4PolyhedronCons::~G4PolyhedronCons
() {}
60
61
G4PolyhedronPara::G4PolyhedronPara
(
G4double
Dx
,
G4double
Dy
,
G4double
Dz
,
62
G4double
Alpha
,
G4double
Theta,
63
G4double
Phi):
64
G4Polyhedron
(
HepPolyhedronPara
(Dx, Dy, Dz, Alpha, Theta, Phi)) {}
65
66
G4PolyhedronPara::~G4PolyhedronPara
() {}
67
68
G4PolyhedronPcon::G4PolyhedronPcon
(
G4double
phi
,
G4double
dphi,
G4int
nz,
69
const
G4double
*
z
,
70
const
G4double
*rmin,
71
const
G4double
*
rmax
):
72
G4Polyhedron
(
HepPolyhedronPcon
(phi, dphi, nz, z, rmin, rmax)) {}
73
74
G4PolyhedronPcon::~G4PolyhedronPcon
() {}
75
76
G4PolyhedronPgon::G4PolyhedronPgon
(
G4double
phi
,
G4double
dphi,
G4int
npdv,
77
G4int
nz,
78
const
G4double
*
z
,
79
const
G4double
*rmin,
80
const
G4double
*
rmax
):
81
G4Polyhedron
(
HepPolyhedronPgon
(phi, dphi, npdv, nz, z, rmin, rmax)) {}
82
83
G4PolyhedronPgon::~G4PolyhedronPgon
() {}
84
85
G4PolyhedronSphere::G4PolyhedronSphere
(
G4double
rmin,
G4double
rmax
,
86
G4double
phi
,
G4double
dphi,
87
G4double
the,
G4double
dthe):
88
G4Polyhedron
(
HepPolyhedronSphere
(rmin, rmax, phi, dphi, the, dthe)) {}
89
90
G4PolyhedronSphere::~G4PolyhedronSphere
() {}
91
92
G4PolyhedronTorus::G4PolyhedronTorus
(
G4double
rmin,
G4double
rmax
,
93
G4double
rtor,
94
G4double
phi
,
G4double
dphi):
95
G4Polyhedron
(
HepPolyhedronTorus
(rmin, rmax, rtor, phi, dphi)) {}
96
97
G4PolyhedronTorus::~G4PolyhedronTorus
() {}
98
99
G4PolyhedronTrap::G4PolyhedronTrap
(
G4double
Dz
,
G4double
Theta,
G4double
Phi,
100
G4double
Dy1,
101
G4double
Dx1,
G4double
Dx2,
G4double
Alp1,
102
G4double
Dy2,
103
G4double
Dx3,
G4double
Dx4,
G4double
Alp2):
104
G4Polyhedron
(
HepPolyhedronTrap
(Dz, Theta, Phi, Dy1, Dx1, Dx2, Alp1,
105
Dy2, Dx3, Dx4, Alp2)) {}
106
107
G4PolyhedronTrap::~G4PolyhedronTrap
() {}
108
109
G4PolyhedronTrd1::G4PolyhedronTrd1
(
G4double
Dx1,
G4double
Dx2,
110
G4double
Dy
,
G4double
Dz
):
111
G4Polyhedron
(
HepPolyhedronTrd1
(Dx1, Dx2, Dy, Dz)) {}
112
113
G4PolyhedronTrd1::~G4PolyhedronTrd1
() {}
114
115
G4PolyhedronTrd2::G4PolyhedronTrd2
(
G4double
Dx1,
G4double
Dx2,
116
G4double
Dy1,
G4double
Dy2,
G4double
Dz
):
117
G4Polyhedron
(
HepPolyhedronTrd2
(Dx1, Dx2, Dy1, Dy2, Dz)) {}
118
119
G4PolyhedronTrd2::~G4PolyhedronTrd2
() {}
120
121
G4PolyhedronTube::G4PolyhedronTube
(
G4double
Rmin,
G4double
Rmax,
G4double
Dz
):
122
G4Polyhedron
(
HepPolyhedronTube
(Rmin, Rmax, Dz)) {}
123
124
G4PolyhedronTube::~G4PolyhedronTube
() {}
125
126
G4PolyhedronTubs::G4PolyhedronTubs
(
G4double
Rmin,
G4double
Rmax,
G4double
Dz
,
127
G4double
Phi1,
G4double
Dphi):
128
G4Polyhedron
(
HepPolyhedronTubs
(Rmin, Rmax, Dz, Phi1, Dphi)) {}
129
130
G4PolyhedronTubs::~G4PolyhedronTubs
() {}
131
132
G4PolyhedronParaboloid::G4PolyhedronParaboloid
(
G4double
r1
,
G4double
r2
,
133
G4double
dz
,
G4double
sPhi,
134
G4double
dPhi):
135
G4Polyhedron
(
HepPolyhedronParaboloid
(r1, r2, dz, sPhi, dPhi)) {}
136
137
G4PolyhedronParaboloid::~G4PolyhedronParaboloid
() {}
138
139
G4PolyhedronHype::G4PolyhedronHype
(
G4double
r1
,
G4double
r2
,
G4double
tan1,
140
G4double
tan2,
G4double
halfZ):
141
G4Polyhedron
(
HepPolyhedronHype
(r1, r2, tan1, tan2, halfZ)) {}
142
143
G4PolyhedronHype::~G4PolyhedronHype
() {}
144
145
G4PolyhedronEllipsoid::G4PolyhedronEllipsoid
(
G4double
ax
,
G4double
by,
146
G4double
cz,
147
G4double
zCut1,
G4double
zCut2):
148
G4Polyhedron
(
HepPolyhedronEllipsoid
(ax, by, cz, zCut1, zCut2)) {}
149
150
G4PolyhedronEllipsoid::~G4PolyhedronEllipsoid
() {}
151
152
G4PolyhedronEllipticalCone::G4PolyhedronEllipticalCone
(
G4double
ax
,
153
G4double
ay,
154
G4double
h
,
155
G4double
zCut1):
156
G4Polyhedron
(
HepPolyhedronEllipticalCone
(ax, ay, h, zCut1)) {}
157
158
G4PolyhedronEllipticalCone::~G4PolyhedronEllipticalCone
() {}
159
160
std::ostream&
operator<<
(std::ostream& os,
const
G4Polyhedron
& polyhedron)
161
{
162
os <<
"G4Polyhedron: "
163
<< (
const
G4Visible
&)polyhedron <<
'\n'
164
<< (
const
HepPolyhedron
&)polyhedron;
165
return
os;
166
}
geant4
tree
geant4-10.6-release
source
graphics_reps
src
G4Polyhedron.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:21
using
1.8.2 with
ECCE GitHub integration