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
g3tog4
include
G3MedTableEntry.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 description:
31
//
32
// The class associates the G3 tracking medium index
33
// with the corresponding G4Material, G4MagneticField, G4UserLimits
34
// instances and sensitivity flag (isvol).
35
36
// ----------------------
37
//
38
// by I.Hrivnacova, 27 Sep 99
39
40
#ifndef G3MEDTABLEENTRYH_HH
41
#define G3MEDTABLEENTRYH_HH 1
42
43
#include "
globals.hh
"
44
45
class
G4Material
;
46
class
G4MagneticField
;
47
class
G4UserLimits
;
48
49
class
G3MedTableEntry
50
{
51
public
:
// with description
52
53
G3MedTableEntry
(
G4int
id
,
G4Material
*
material
,
G4MagneticField
* field,
54
G4UserLimits
* limits,
G4int
isvol);
55
G3MedTableEntry
(
const
G3MedTableEntry
&
right
);
56
virtual
~G3MedTableEntry
();
57
58
// operators
59
G3MedTableEntry
&
operator=
(
const
G3MedTableEntry
& right);
60
G4int
operator==
(
const
G3MedTableEntry
& right)
const
;
61
G4int
operator!=
(
const
G3MedTableEntry
& right)
const
;
62
63
// set methods
64
void
SetMaterial
(
G4Material
* material);
65
void
SetField
(
G4MagneticField
* field);
66
void
SetLimits
(
G4UserLimits
* limits);
67
void
SetISVOL
(
G4int
isvol);
68
69
// get methods
70
G4int
GetID
()
const
;
71
G4Material
*
GetMaterial
()
const
;
72
G4MagneticField
*
GetField
()
const
;
73
G4UserLimits
*
GetLimits
()
const
;
74
G4int
GetISVOL
()
const
;
75
76
private
:
77
78
// data members
79
G4int
fID;
80
G4Material
* fMaterial;
81
G4MagneticField
* fField;
82
G4UserLimits
* fLimits;
83
G4int
fISVOL;
84
//G4double deemax;
85
//G4double epsil;
86
};
87
88
// inline methods
89
90
inline
void
G3MedTableEntry::SetMaterial
(
G4Material
*
material
)
91
{ fMaterial =
material
; }
92
93
inline
void
G3MedTableEntry::SetField
(
G4MagneticField
* field)
94
{ fField = field; }
95
96
inline
void
G3MedTableEntry::SetLimits
(
G4UserLimits
* limits)
97
{ fLimits = limits; }
98
99
inline
void
G3MedTableEntry::SetISVOL
(
G4int
isvol)
100
{ fISVOL = isvol; }
101
102
inline
G4int
G3MedTableEntry::GetID
()
const
103
{
return
fID; }
104
105
inline
G4Material
*
G3MedTableEntry::GetMaterial
()
const
106
{
return
fMaterial; }
107
108
inline
G4MagneticField
*
G3MedTableEntry::GetField
()
const
109
{
return
fField; }
110
111
inline
G4UserLimits
*
G3MedTableEntry::GetLimits
()
const
112
{
return
fLimits; }
113
114
inline
G4int
G3MedTableEntry::GetISVOL
()
const
115
{
return
fISVOL; }
116
117
#endif
Generated on Sat May 25 2013 14:33:08 for Geant4 by
1.8.4