Geant4
9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4BREPSolidBox.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 G4BREPSolidBox
31
//
32
// Class description:
33
//
34
// Definition of a generic BREP box:
35
//
36
// G4BREPSolidBox(const G4String& name,
37
// const G4Point3D& Pt1, const G4Point3D& Pt2,
38
// const G4Point3D& Pt3, const G4Point3D& Pt4,
39
// const G4Point3D& Pt5, const G4Point3D& Pt6,
40
// const G4Point3D& Pt7, const G4Point3D& Pt8)
41
// Points have to be given in following way:
42
// First for YZ plane with X fixed to negative value, then
43
// for YZ plane with X xixed to positive value
44
// Examle :
45
// const G4Point3D Pt1(-x,-y,-z);
46
// const G4Point3D Pt2(-x,-y, z);
47
// const G4Point3D Pt3(-x, y, z);
48
// const G4Point3D Pt4(-x, y,-z);
49
// const G4Point3D Pt5( x,-y,-z);
50
// const G4Point3D Pt6( x,-y, z);
51
// const G4Point3D Pt7( x, y, z);
52
// const G4Point3D Pt8( x, y,-z);
53
// Authors: J.Sulkimo, P.Urban.
54
// Revisions by: L.Broglia, G.Cosmo.
55
// ----------------------------------------------------------------------
56
#ifndef __G4BREPSolidBOX
57
#define __G4BREPSolidBOX
58
59
#include "
G4BREPSolid.hh
"
60
#include "
G4RotationMatrix.hh
"
61
62
class
G4BREPSolidBox
:
public
G4BREPSolid
63
{
64
65
public
:
// with description
66
67
G4BREPSolidBox
(
const
G4String
&,
const
G4Point3D
&,
const
G4Point3D
&,
68
const
G4Point3D
&,
const
G4Point3D
&,
const
G4Point3D
&,
69
const
G4Point3D
&,
const
G4Point3D
&,
const
G4Point3D
& );
70
// Constructor defining the box through its planes.
71
72
~G4BREPSolidBox
();
73
// Empty destructor.
74
75
EInside
Inside
(
register
const
G4ThreeVector
& Pt)
const
;
76
// Determines if the point Pt is inside, outside or on the surface
77
// of the solid.
78
79
G4VSolid
*
Clone
()
const
;
80
// Returns a pointer of a dynamically allocated copy of the solid.
81
82
std::ostream&
StreamInfo
(std::ostream& os)
const
;
83
// Streams solid contents to output stream.
84
85
public
:
// without description
86
87
G4BREPSolidBox
(__void__&);
88
// Fake default constructor for usage restricted to direct object
89
// persistency for clients requiring preallocation of memory for
90
// persistifiable objects.
91
92
G4BREPSolidBox
(
const
G4BREPSolidBox
& rhs);
93
G4BREPSolidBox
&
operator=
(
const
G4BREPSolidBox
& rhs);
94
// Copy constructor and assignment operator.
95
96
private
:
97
98
void
InitializeBox();
99
100
private
:
101
102
G4RotationMatrix
Rotation;
103
G4Point3D
constructorParams[8];
104
105
};
106
107
#endif
G4BREPSolid.hh
G4RotationMatrix.hh
CLHEP::Hep3Vector
Definition:
ThreeVector.h:41
CLHEP::HepRotation
Definition:
Rotation.h:47
G4BREPSolidBox
Definition:
G4BREPSolidBox.hh:63
G4BREPSolidBox::Inside
EInside Inside(register const G4ThreeVector &Pt) const
Definition:
G4BREPSolidBox.cc:144
G4BREPSolidBox::StreamInfo
std::ostream & StreamInfo(std::ostream &os) const
Definition:
G4BREPSolidBox.cc:173
G4BREPSolidBox::Clone
G4VSolid * Clone() const
Definition:
G4BREPSolidBox.cc:168
G4BREPSolidBox::operator=
G4BREPSolidBox & operator=(const G4BREPSolidBox &rhs)
Definition:
G4BREPSolidBox.cc:82
G4BREPSolidBox::~G4BREPSolidBox
~G4BREPSolidBox()
Definition:
G4BREPSolidBox.cc:71
G4BREPSolid
Definition:
G4BREPSolid.hh:51
G4String
Definition:
G4String.hh:105
G4VSolid
Definition:
G4VSolid.hh:89
HepGeom::Point3D< G4double >
EInside
EInside
Definition:
geomdefs.hh:58
geant4-v9.6.0
source
geometry
solids
BREPS
include
G4BREPSolidBox.hh
Generated by
1.9.6