File indexing completed on 2025-01-18 09:57:51
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039 #ifndef G3MEDTABLEENTRYH_HH
0040 #define G3MEDTABLEENTRYH_HH 1
0041
0042 #include "globals.hh"
0043
0044 class G4Material;
0045 class G4MagneticField;
0046 class G4UserLimits;
0047
0048 class G3MedTableEntry
0049 {
0050 public:
0051
0052 G3MedTableEntry(G4int id, G4Material* material, G4MagneticField* field,
0053 G4UserLimits* limits, G4int isvol);
0054 G3MedTableEntry(const G3MedTableEntry& right);
0055 virtual ~G3MedTableEntry();
0056
0057
0058 G3MedTableEntry& operator=(const G3MedTableEntry& right);
0059 G4bool operator==(const G3MedTableEntry& right) const;
0060 G4bool operator!=(const G3MedTableEntry& right) const;
0061
0062
0063 void SetMaterial(G4Material* material);
0064 void SetField(G4MagneticField* field);
0065 void SetLimits(G4UserLimits* limits);
0066 void SetISVOL(G4int isvol);
0067
0068
0069 G4int GetID() const;
0070 G4Material* GetMaterial() const;
0071 G4MagneticField* GetField() const;
0072 G4UserLimits* GetLimits() const;
0073 G4int GetISVOL() const;
0074
0075 private:
0076
0077
0078 G4int fID;
0079 G4Material* fMaterial;
0080 G4MagneticField* fField;
0081 G4UserLimits* fLimits;
0082 G4int fISVOL;
0083
0084
0085 };
0086
0087
0088
0089 inline void G3MedTableEntry::SetMaterial(G4Material* material)
0090 { fMaterial = material; }
0091
0092 inline void G3MedTableEntry::SetField(G4MagneticField* field)
0093 { fField = field; }
0094
0095 inline void G3MedTableEntry::SetLimits(G4UserLimits* limits)
0096 { fLimits = limits; }
0097
0098 inline void G3MedTableEntry::SetISVOL(G4int isvol)
0099 { fISVOL = isvol; }
0100
0101 inline G4int G3MedTableEntry::GetID() const
0102 { return fID; }
0103
0104 inline G4Material* G3MedTableEntry::GetMaterial() const
0105 { return fMaterial; }
0106
0107 inline G4MagneticField* G3MedTableEntry::GetField() const
0108 { return fField; }
0109
0110 inline G4UserLimits* G3MedTableEntry::GetLimits() const
0111 { return fLimits; }
0112
0113 inline G4int G3MedTableEntry::GetISVOL() const
0114 { return fISVOL; }
0115
0116 #endif