Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
50 {
51  public: // with description
52 
54  G4UserLimits* limits, G4int isvol);
56  virtual ~G3MedTableEntry();
57 
58  // operators
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 
91 { fMaterial = material; }
92 
94 { fField = field; }
95 
97 { fLimits = limits; }
98 
99 inline void G3MedTableEntry::SetISVOL(G4int isvol)
100 { fISVOL = isvol; }
101 
103 { return fID; }
104 
106 { return fMaterial; }
107 
109 { return fField; }
110 
112 { return fLimits; }
113 
115 { return fISVOL; }
116 
117 #endif