Geant4
9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4BREPSolidOpenPCone.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$
28
//
29
// ----------------------------------------------------------------------
30
// Class G4BREPSolidOpenPCone
31
//
32
// Class description:
33
//
34
// Definition of a generic BREP open polyconical solid:
35
//
36
// G4BREPSolidOpenPCone ( const G4String& name,
37
// G4double start_angle,
38
// G4double opening_angle,
39
// G4int num_z_planes,
40
// G4double z_start,
41
// G4double z_values[],
42
// G4double RMIN[],
43
// G4double RMAX[])
44
45
// Authors: J.Sulkimo, P.Urban.
46
// Revisions by: L.Broglia, G.Cosmo.
47
// ----------------------------------------------------------------------
48
#ifndef G4BREPSolidOpenPCone_hh
49
#define G4BREPSolidOpenPCone_hh
50
51
#include "
G4IntersectionSolid.hh
"
52
53
class
G4BREPSolidOpenPCone
:
public
G4IntersectionSolid
54
{
55
56
public
:
// with description
57
58
G4BREPSolidOpenPCone
(
const
G4String
& name,
59
G4double
start_angle,
60
G4double
opening_angle,
61
G4int
num_z_planes,
// sections
62
G4double
z_start,
63
G4double
z_values[],
64
G4double
RMIN[],
65
G4double
RMAX[] );
66
// Constructor defining the polycone through its
67
// conical/cylindrical surfaces.
68
69
~G4BREPSolidOpenPCone
();
70
// Empty destructor.
71
72
void
DescribeYourselfTo
(
G4VGraphicsScene
& scene)
const
;
73
// Dispatch function which identifies the solid to the graphics scene.
74
75
G4VSolid
*
Clone
()
const
;
76
// Returns a pointer of a dynamically allocated copy of the solid.
77
78
std::ostream&
StreamInfo
(std::ostream& os)
const
;
79
// Streams solid contents to output stream.
80
81
public
:
// without description
82
83
G4BREPSolidOpenPCone
(__void__&);
84
// Fake default constructor for usage restricted to direct object
85
// persistency for clients requiring preallocation of memory for
86
// persistifiable objects.
87
88
G4BREPSolidOpenPCone
(
const
G4BREPSolidOpenPCone
& rhs);
89
G4BREPSolidOpenPCone
&
operator=
(
const
G4BREPSolidOpenPCone
& rhs);
90
91
private
:
92
93
void
InitializeOPCone();
94
95
private
:
96
97
struct
G4BREPOpenPConeParams
98
{
99
G4double
start_angle, opening_angle;
100
G4int
num_z_planes;
// sections
101
G4double
z_start;
102
G4double
*z_values, *RMIN, *RMAX;
103
} constructorParams;
104
};
105
106
#endif
G4IntersectionSolid.hh
G4double
double G4double
Definition:
G4Types.hh:64
G4int
int G4int
Definition:
G4Types.hh:66
G4BREPSolidOpenPCone
Definition:
G4BREPSolidOpenPCone.hh:54
G4BREPSolidOpenPCone::StreamInfo
std::ostream & StreamInfo(std::ostream &os) const
Definition:
G4BREPSolidOpenPCone.cc:209
G4BREPSolidOpenPCone::operator=
G4BREPSolidOpenPCone & operator=(const G4BREPSolidOpenPCone &rhs)
Definition:
G4BREPSolidOpenPCone.cc:146
G4BREPSolidOpenPCone::Clone
G4VSolid * Clone() const
Definition:
G4BREPSolidOpenPCone.cc:204
G4BREPSolidOpenPCone::~G4BREPSolidOpenPCone
~G4BREPSolidOpenPCone()
Definition:
G4BREPSolidOpenPCone.cc:97
G4BREPSolidOpenPCone::DescribeYourselfTo
void DescribeYourselfTo(G4VGraphicsScene &scene) const
Definition:
G4BREPSolidOpenPCone.cc:199
G4IntersectionSolid
Definition:
G4IntersectionSolid.hh:54
G4String
Definition:
G4String.hh:105
G4VGraphicsScene
Definition:
G4VGraphicsScene.hh:69
G4VSolid
Definition:
G4VSolid.hh:89
geant4-v9.6.0
source
geometry
solids
BREPS
include
G4BREPSolidOpenPCone.hh
Generated by
1.9.6