Geant4
11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4EnclosingCylinder.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
// G4EnclosingCylinder
27
//
28
// Class description:
29
//
30
// Definition of a utility class for quickly deciding if a point
31
// is clearly outside a polyhedra or polycone or deciding if
32
// a trajectory is clearly going to miss those shapes.
33
34
// Author: David C. Williams (
[email protected]
)
35
// --------------------------------------------------------------------
36
#ifndef G4ENCLOSINGCYLINDER_HH
37
#define G4ENCLOSINGCYLINDER_HH
38
39
#include "
G4Types.hh
"
40
#include "
geomdefs.hh
"
41
#include "
G4ThreeVector.hh
"
42
43
class
G4ReduciblePolygon
;
44
45
class
G4EnclosingCylinder
46
{
47
public
:
48
49
G4EnclosingCylinder
(
const
G4ReduciblePolygon
* rz,
50
G4bool
phiIsOpen
,
51
G4double
startPhi
,
G4double
totalPhi
);
52
~G4EnclosingCylinder
() =
default
;
53
54
G4bool
MustBeOutside
(
const
G4ThreeVector
& p )
const
;
55
// Decide very rapidly if the point is outside the cylinder.
56
// If one is not certain, return false.
57
58
G4bool
ShouldMiss
(
const
G4ThreeVector
& p,
const
G4ThreeVector
& v )
const
;
59
// Decide very rapidly if the trajectory is going to miss the cylinder.
60
// If one is not sure, return false.
61
62
G4EnclosingCylinder
(__void__&);
63
// Fake default constructor for usage restricted to direct object
64
// persistency for clients requiring preallocation of memory for
65
// persistifiable objects.
66
67
protected
:
68
69
G4double
radius
;
// radius of our cylinder
70
G4double
zLo
,
zHi
;
// z extent
71
72
G4bool
phiIsOpen
;
// true if there is a phi segment
73
G4double
startPhi
,
// for isPhiOpen==true, starting of phi segment
74
totalPhi
;
// for isPhiOpen==true, size of phi segment
75
76
G4double
rx1
=0.0,
ry1
=0.0,
77
dx1
=0.0,
dy1
=0.0;
78
G4double
rx2
=0.0,
ry2
=0.0,
79
dx2
=0.0,
dy2
=0.0;
80
81
G4bool
concave
;
// true, if x/y cross section is concave
82
};
83
84
#endif
G4ThreeVector.hh
G4Types.hh
G4double
double G4double
Definition
G4Types.hh:83
G4bool
bool G4bool
Definition
G4Types.hh:86
CLHEP::Hep3Vector
Definition
ThreeVector.h:36
G4EnclosingCylinder
Definition
G4EnclosingCylinder.hh:46
G4EnclosingCylinder::rx2
G4double rx2
Definition
G4EnclosingCylinder.hh:78
G4EnclosingCylinder::totalPhi
G4double totalPhi
Definition
G4EnclosingCylinder.hh:74
G4EnclosingCylinder::phiIsOpen
G4bool phiIsOpen
Definition
G4EnclosingCylinder.hh:72
G4EnclosingCylinder::concave
G4bool concave
Definition
G4EnclosingCylinder.hh:81
G4EnclosingCylinder::ShouldMiss
G4bool ShouldMiss(const G4ThreeVector &p, const G4ThreeVector &v) const
Definition
G4EnclosingCylinder.cc:124
G4EnclosingCylinder::G4EnclosingCylinder
G4EnclosingCylinder(const G4ReduciblePolygon *rz, G4bool phiIsOpen, G4double startPhi, G4double totalPhi)
Definition
G4EnclosingCylinder.cc:39
G4EnclosingCylinder::zLo
G4double zLo
Definition
G4EnclosingCylinder.hh:70
G4EnclosingCylinder::~G4EnclosingCylinder
~G4EnclosingCylinder()=default
G4EnclosingCylinder::startPhi
G4double startPhi
Definition
G4EnclosingCylinder.hh:73
G4EnclosingCylinder::MustBeOutside
G4bool MustBeOutside(const G4ThreeVector &p) const
Definition
G4EnclosingCylinder.cc:95
G4EnclosingCylinder::dy2
G4double dy2
Definition
G4EnclosingCylinder.hh:79
G4EnclosingCylinder::dx1
G4double dx1
Definition
G4EnclosingCylinder.hh:77
G4EnclosingCylinder::zHi
G4double zHi
Definition
G4EnclosingCylinder.hh:70
G4EnclosingCylinder::ry1
G4double ry1
Definition
G4EnclosingCylinder.hh:76
G4EnclosingCylinder::radius
G4double radius
Definition
G4EnclosingCylinder.hh:69
G4EnclosingCylinder::ry2
G4double ry2
Definition
G4EnclosingCylinder.hh:78
G4EnclosingCylinder::dx2
G4double dx2
Definition
G4EnclosingCylinder.hh:79
G4EnclosingCylinder::rx1
G4double rx1
Definition
G4EnclosingCylinder.hh:76
G4EnclosingCylinder::dy1
G4double dy1
Definition
G4EnclosingCylinder.hh:77
G4ReduciblePolygon
Definition
G4ReduciblePolygon.hh:53
geomdefs.hh
geant4-v11.2.2
source
geometry
solids
specific
include
G4EnclosingCylinder.hh
Generated by
1.12.0