Geant4
10.02.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
G4USphere.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
//
27
// $Id: G4Sphere.hh 72929 2013-08-14 08:27:27Z gcosmo $
28
//
29
//
30
// --------------------------------------------------------------------
31
// GEANT 4 class header file
32
//
33
// G4USphere
34
//
35
// Class description:
36
//
37
// Wrapper class for USphere to make use of USphere from USolids module.
38
39
// History:
40
// 13.09.13 G.Cosmo, CERN/PH
41
// --------------------------------------------------------------------
42
#ifndef G4USPHERE_HH
43
#define G4USPHERE_HH
44
45
#include "
G4USolid.hh
"
46
47
#if ( defined(G4GEOM_USE_USOLIDS) || defined(G4GEOM_USE_PARTIAL_USOLIDS) )
48
49
#include "USphere.hh"
50
51
#include "
G4Polyhedron.hh
"
52
53
class
G4USphere :
public
G4USolid
54
{
55
public
:
// with description
56
57
G4USphere(
const
G4String
& pName,
58
G4double
pRmin,
G4double
pRmax,
59
G4double
pSPhi,
G4double
pDPhi,
60
G4double
pSTheta,
G4double
pDTheta);
61
// Constructs a sphere or sphere shell section
62
// with the given name and dimensions
63
64
~G4USphere();
65
66
void
ComputeDimensions(
G4VPVParameterisation
* p,
67
const
G4int
n
,
68
const
G4VPhysicalVolume
* pRep);
69
70
G4VSolid
* Clone()
const
;
71
72
inline
USphere* GetShape()
const
;
73
74
G4double
GetInnerRadius ()
const
;
75
G4double
GetOuterRadius ()
const
;
76
G4double
GetStartPhiAngle ()
const
;
77
G4double
GetDeltaPhiAngle ()
const
;
78
G4double
GetStartThetaAngle()
const
;
79
G4double
GetDeltaThetaAngle()
const
;
80
81
void
SetInnerRadius (
G4double
newRMin);
82
void
SetOuterRadius (
G4double
newRmax);
83
void
SetStartPhiAngle (
G4double
newSphi,
G4bool
trig=
true
);
84
void
SetDeltaPhiAngle (
G4double
newDphi);
85
void
SetStartThetaAngle(
G4double
newSTheta);
86
void
SetDeltaThetaAngle(
G4double
newDTheta);
87
88
inline
G4GeometryType
GetEntityType()
const
;
89
90
G4Polyhedron
* CreatePolyhedron()
const
;
91
92
public
:
// without description
93
94
G4USphere(__void__&);
95
//
96
// Fake default constructor for usage restricted to direct object
97
// persistency for clients requiring preallocation of memory for
98
// persistifiable objects.
99
100
G4USphere(
const
G4USphere& rhs);
101
G4USphere& operator=(
const
G4USphere& rhs);
102
// Copy constructor and assignment operator.
103
};
104
105
// --------------------------------------------------------------------
106
// Inline methods
107
// --------------------------------------------------------------------
108
109
inline
USphere* G4USphere::GetShape()
const
110
{
111
return
(USphere*) fShape;
112
}
113
114
inline
G4GeometryType
G4USphere::GetEntityType()
const
115
{
116
return
"G4Sphere"
;
117
}
118
119
#endif // G4GEOM_USE_USOLIDS
120
121
#endif
G4Polyhedron.hh
G4USolid.hh
G4VPhysicalVolume
Definition:
G4VPhysicalVolume.hh:82
G4int
int G4int
Definition:
G4Types.hh:78
G4VSolid
Definition:
G4VSolid.hh:87
G4bool
bool G4bool
Definition:
G4Types.hh:79
n
const G4int n
Definition:
G4UrQMD1_3Interface.hh:144
G4VPVParameterisation
Definition:
G4VPVParameterisation.hh:72
G4Polyhedron
Definition:
G4Polyhedron.hh:115
G4double
double G4double
Definition:
G4Types.hh:76
G4String
Definition:
G4String.hh:45
geant4.10.02.p02
source
geometry
solids
CSG
include
G4USphere.hh
Generated on Fri Jul 1 2016 14:11:09 for Geant4 by
1.8.8