Geant4.10
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4.10.00.p01
source
geometry
solids
CSG
src
G4UCons.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
// $Id:$
28
//
29
//
30
// Implementation for G4UCons wrapper class
31
// --------------------------------------------------------------------
32
33
#include "
G4Cons.hh
"
34
#include "
G4UCons.hh
"
35
#include "
G4VPVParameterisation.hh
"
36
37
//////////////////////////////////////////////////////////////////////////
38
//
39
// constructor - check parameters, convert angles so 0<sphi+dpshi<=2_PI
40
// - note if pDPhi>2PI then reset to 2PI
41
42
G4UCons::G4UCons
(
const
G4String
& pName,
43
G4double
pRmin1,
G4double
pRmax1,
44
G4double
pRmin2,
G4double
pRmax2,
45
G4double
pDz,
46
G4double
pSPhi,
G4double
pDPhi)
47
:
G4USolid
(pName, new
UCons
(pName, pRmin1, pRmax1, pRmin2, pRmax2,
48
pDz, pSPhi, pDPhi))
49
{
50
}
51
52
///////////////////////////////////////////////////////////////////////
53
//
54
// Fake default constructor - sets only member data and allocates memory
55
// for usage restricted to object persistency.
56
//
57
G4UCons::G4UCons
( __void__&
a
)
58
:
G4USolid
(a)
59
{
60
}
61
62
///////////////////////////////////////////////////////////////////////
63
//
64
// Destructor
65
66
G4UCons::~G4UCons
()
67
{
68
}
69
70
//////////////////////////////////////////////////////////////////////////
71
//
72
// Copy constructor
73
74
G4UCons::G4UCons
(
const
G4UCons
& rhs)
75
:
G4USolid
(rhs)
76
{
77
}
78
79
//////////////////////////////////////////////////////////////////////////
80
//
81
// Assignment operator
82
83
G4UCons
&
G4UCons::operator =
(
const
G4UCons
& rhs)
84
{
85
// Check assignment to self
86
//
87
if
(
this
== &rhs) {
return
*
this
; }
88
89
// Copy base class data
90
//
91
G4USolid::operator=
(rhs);
92
93
return
*
this
;
94
}
95
96
/////////////////////////////////////////////////////////////////////////
97
//
98
// Dispatch to parameterisation for replication mechanism dimension
99
// computation & modification.
100
101
void
G4UCons::ComputeDimensions
(
G4VPVParameterisation
*
p
,
102
const
G4int
n
,
103
const
G4VPhysicalVolume
* pRep )
104
{
105
p->
ComputeDimensions
(*(
G4Cons
*)
this
,n,pRep);
106
}
107
108
//////////////////////////////////////////////////////////////////////////
109
//
110
// Make a clone of the object
111
112
G4VSolid
*
G4UCons::Clone
()
const
113
{
114
return
new
G4UCons
(*
this
);
115
}
G4USolid
Definition:
G4USolid.hh:46
test.a
tuple a
Definition:
tests/test01/test.py:11
G4UCons::operator=
G4UCons & operator=(const G4UCons &rhs)
Definition:
G4UCons.cc:83
G4VPhysicalVolume
Definition:
G4VPhysicalVolume.hh:80
p
const char * p
Definition:
xmltok.h:285
G4int
int G4int
Definition:
G4Types.hh:78
UCons
Definition:
UCons.hh:49
G4VSolid
Definition:
G4VSolid.hh:87
G4UCons::~G4UCons
~G4UCons()
Definition:
G4UCons.cc:66
G4Cons
Definition:
G4Cons.hh:82
G4VPVParameterisation.hh
n
const G4int n
Definition:
G4UrQMD1_3Interface.hh:144
G4UCons.hh
G4UCons::ComputeDimensions
void ComputeDimensions(G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
Definition:
G4UCons.cc:101
G4VPVParameterisation::ComputeDimensions
virtual void ComputeDimensions(G4Box &, const G4int, const G4VPhysicalVolume *) const
Definition:
G4VPVParameterisation.hh:95
G4UCons::G4UCons
G4UCons(const G4String &pName, G4double pRmin1, G4double pRmax1, G4double pRmin2, G4double pRmax2, G4double pDz, G4double pSPhi, G4double pDPhi)
Definition:
G4UCons.cc:42
G4VPVParameterisation
Definition:
G4VPVParameterisation.hh:72
G4USolid::operator=
G4USolid & operator=(const G4USolid &rhs)
Definition:
G4USolid.cc:370
G4Cons.hh
G4double
double G4double
Definition:
G4Types.hh:76
G4UCons
Definition:
G4UCons.hh:49
G4UCons::Clone
G4VSolid * Clone() const
Definition:
G4UCons.cc:112
G4String
Definition:
examples/extended/parallel/TopC/ParN02/AnnotatedFiles/G4String.hh:45
Generated on Wed Apr 30 2014 15:55:07 for Geant4.10 by
1.8.7