source: trunk/source/g3tog4/include/G3MedTableEntry.hh@ 1219

Last change on this file since 1219 was 965, checked in by garnier, 17 years ago

update g3tog4

File size: 3.9 KB
RevLine 
[817]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: G3MedTableEntry.hh,v 1.6 2006/06/29 18:12:03 gunter Exp $
[965]28// GEANT4 tag $Name: geant4-09-02-ref-02 $
[817]29//
30// ----------------------
31// Class description:
32//
33// The class associates the G3 tracking medium index
34// with the corresponding G4Material, G4MagneticField, G4UserLimits
35// instances and sensitivity flag (isvol).
36
37// ----------------------
38//
39// by I.Hrivnacova, 27 Sep 99
40
41#ifndef G3MEDTABLEENTRYH_HH
42#define G3MEDTABLEENTRYH_HH 1
43
44#include "globals.hh"
45
46class G4Material;
47class G4MagneticField;
48class G4UserLimits;
49
50class G3MedTableEntry
51{
52 public: // with description
53
54 G3MedTableEntry(G4int id, G4Material* material, G4MagneticField* field,
55 G4UserLimits* limits, G4int isvol);
56 G3MedTableEntry(const G3MedTableEntry& right);
57 virtual ~G3MedTableEntry();
58
59 // operators
60 const G3MedTableEntry& operator=(const G3MedTableEntry& right);
61 G4int operator==(const G3MedTableEntry& right) const;
62 G4int operator!=(const G3MedTableEntry& right) const;
63
64 // set methods
65 void SetMaterial(G4Material* material);
66 void SetField(G4MagneticField* field);
67 void SetLimits(G4UserLimits* limits);
68 void SetISVOL(G4int isvol);
69
70 // get methods
71 G4int GetID() const;
72 G4Material* GetMaterial() const;
73 G4MagneticField* GetField() const;
74 G4UserLimits* GetLimits() const;
75 G4int GetISVOL() const;
76
77 private:
78
79 // data members
80 G4int fID;
81 G4Material* fMaterial;
82 G4MagneticField* fField;
83 G4UserLimits* fLimits;
84 G4int fISVOL;
85 //G4double deemax;
86 //G4double epsil;
87};
88
89// inline methods
90
91inline void G3MedTableEntry::SetMaterial(G4Material* material)
92{ fMaterial = material; }
93
94inline void G3MedTableEntry::SetField(G4MagneticField* field)
95{ fField = field; }
96
97inline void G3MedTableEntry::SetLimits(G4UserLimits* limits)
98{ fLimits = limits; }
99
100inline void G3MedTableEntry::SetISVOL(G4int isvol)
101{ fISVOL = isvol; }
102
103inline G4int G3MedTableEntry::GetID() const
104{ return fID; }
105
106inline G4Material* G3MedTableEntry::GetMaterial() const
107{ return fMaterial; }
108
109inline G4MagneticField* G3MedTableEntry::GetField() const
110{ return fField; }
111
112inline G4UserLimits* G3MedTableEntry::GetLimits() const
113{ return fLimits; }
114
115inline G4int G3MedTableEntry::GetISVOL() const
116{ return fISVOL; }
117
118#endif
Note: See TracBrowser for help on using the repository browser.