Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
geometry
navigation
include
G4GeomTestErrorList.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
// GEANT 4 class header file
31
//
32
// G4GeomTestErrorList
33
//
34
// Class description:
35
//
36
// A list of line segments that are found inside two
37
// separate daughter volumes, indicating a geometry error.
38
//
39
// This class relies on the compiler generated copy constructor
40
// and assignment operator.
41
42
// Author: D.C.Williams, UCSC (davidw@scipp.ucsc.edu)
43
// --------------------------------------------------------------------
44
#ifndef G4GeomTestErrorList_hh
45
#define G4GeomTestErrorList_hh
46
47
#include <vector>
48
49
#include "
G4Types.hh
"
50
#include "
G4ThreeVector.hh
"
51
#include "
G4RotationMatrix.hh
"
52
53
class
G4VPhysicalVolume
;
54
55
class
G4GeomTestErrorList
56
{
57
public
:
// with description
58
59
G4GeomTestErrorList
(
const
G4VPhysicalVolume
*theMother );
60
virtual
~G4GeomTestErrorList
();
61
// Constructor and virtual destructor
62
63
void
AddError
(
const
G4ThreeVector
&s1,
const
G4ThreeVector
&s2 );
64
// Declare a new instance of an error, by specifying
65
// two points in the coordinate system of the mother
66
67
const
G4VPhysicalVolume
*
GetMother
()
const
;
68
// Return pointers to mother volume
69
70
G4int
NumError
()
const
;
71
// Return number of errors
72
73
void
GetMotherPoints
(
G4int
i,
G4ThreeVector
&s1,
G4ThreeVector
&s2 )
const
;
74
void
GetGlobalPoints
(
G4int
i,
G4ThreeVector
&s1,
G4ThreeVector
&s2 )
const
;
75
// Return start and end points in various
76
// coordinate systems
77
78
void
GetOneDaughtPoints
(
const
G4VPhysicalVolume
*daught,
79
G4int
i,
G4ThreeVector
&s1,
G4ThreeVector
&s2 )
const
;
80
// Return start and end points in the coordinate system of a
81
// daughter volume
82
83
private
:
84
85
void
FindGlobalCoordinateSystem();
86
// Calculate the global coordinate system
87
88
class
Segment
89
{
90
public
:
91
Segment(
const
G4ThreeVector
&as1,
const
G4ThreeVector
&as2 )
92
: s1(as1), s2(as2) {;}
93
94
const
G4ThreeVector
&GetS1()
const
{
return
s1; }
95
const
G4ThreeVector
&GetS2()
const
{
return
s2; }
96
97
private
:
98
G4ThreeVector
s1, s2;
99
};
100
std::vector<Segment> segments;
101
// List of error segments
102
103
const
G4VPhysicalVolume
*mother;
104
// Mother volume
105
106
G4ThreeVector
globalTranslation;
107
G4RotationMatrix
globalRotation;
108
// Global coordinate system with respect to mother
109
};
110
111
#endif
Generated on Sat May 25 2013 14:33:11 for Geant4 by
1.8.4