00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // ---------------------- 00030 // Class description: 00031 // 00032 // The class associates the G3 tracking medium index 00033 // with the corresponding G4Material, G4MagneticField, G4UserLimits 00034 // instances and sensitivity flag (isvol). 00035 00036 // ---------------------- 00037 // 00038 // by I.Hrivnacova, 27 Sep 99 00039 00040 #ifndef G3MEDTABLEENTRYH_HH 00041 #define G3MEDTABLEENTRYH_HH 1 00042 00043 #include "globals.hh" 00044 00045 class G4Material; 00046 class G4MagneticField; 00047 class G4UserLimits; 00048 00049 class G3MedTableEntry 00050 { 00051 public: // with description 00052 00053 G3MedTableEntry(G4int id, G4Material* material, G4MagneticField* field, 00054 G4UserLimits* limits, G4int isvol); 00055 G3MedTableEntry(const G3MedTableEntry& right); 00056 virtual ~G3MedTableEntry(); 00057 00058 // operators 00059 G3MedTableEntry& operator=(const G3MedTableEntry& right); 00060 G4int operator==(const G3MedTableEntry& right) const; 00061 G4int operator!=(const G3MedTableEntry& right) const; 00062 00063 // set methods 00064 void SetMaterial(G4Material* material); 00065 void SetField(G4MagneticField* field); 00066 void SetLimits(G4UserLimits* limits); 00067 void SetISVOL(G4int isvol); 00068 00069 // get methods 00070 G4int GetID() const; 00071 G4Material* GetMaterial() const; 00072 G4MagneticField* GetField() const; 00073 G4UserLimits* GetLimits() const; 00074 G4int GetISVOL() const; 00075 00076 private: 00077 00078 // data members 00079 G4int fID; 00080 G4Material* fMaterial; 00081 G4MagneticField* fField; 00082 G4UserLimits* fLimits; 00083 G4int fISVOL; 00084 //G4double deemax; 00085 //G4double epsil; 00086 }; 00087 00088 // inline methods 00089 00090 inline void G3MedTableEntry::SetMaterial(G4Material* material) 00091 { fMaterial = material; } 00092 00093 inline void G3MedTableEntry::SetField(G4MagneticField* field) 00094 { fField = field; } 00095 00096 inline void G3MedTableEntry::SetLimits(G4UserLimits* limits) 00097 { fLimits = limits; } 00098 00099 inline void G3MedTableEntry::SetISVOL(G4int isvol) 00100 { fISVOL = isvol; } 00101 00102 inline G4int G3MedTableEntry::GetID() const 00103 { return fID; } 00104 00105 inline G4Material* G3MedTableEntry::GetMaterial() const 00106 { return fMaterial; } 00107 00108 inline G4MagneticField* G3MedTableEntry::GetField() const 00109 { return fField; } 00110 00111 inline G4UserLimits* G3MedTableEntry::GetLimits() const 00112 { return fLimits; } 00113 00114 inline G4int G3MedTableEntry::GetISVOL() const 00115 { return fISVOL; } 00116 00117 #endif