Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G3MedTableEntry.hh
이 파일의 문서화 페이지로 가기
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 67982 2013-03-13 10:36:03Z gcosmo $
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 
53  G3MedTableEntry(G4int id, G4Material* material, G4MagneticField* field,
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
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
G4MagneticField * GetField() const
virtual ~G3MedTableEntry()
G4int operator!=(const G3MedTableEntry &right) const
G4int operator==(const G3MedTableEntry &right) const
void SetISVOL(G4int isvol)
void SetField(G4MagneticField *field)
G4UserLimits * fLimits
G4int GetISVOL() const
G4int GetID() const
void SetLimits(G4UserLimits *limits)
G3MedTableEntry(G4int id, G4Material *material, G4MagneticField *field, G4UserLimits *limits, G4int isvol)
G4MagneticField * fField
int G4int
Definition: G4Types.hh:78
G3MedTableEntry & operator=(const G3MedTableEntry &right)
G4Material * GetMaterial() const
G4Material * fMaterial
void SetMaterial(G4Material *material)
G4UserLimits * GetLimits() const