Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:57:51

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 //
0028 // ----------------------
0029 // Class description:
0030 //
0031 // The class associates the G3 tracking medium index
0032 // with the corresponding G4Material, G4MagneticField, G4UserLimits 
0033 // instances and sensitivity flag (isvol).
0034 
0035 // ----------------------
0036 //
0037 // by I.Hrivnacova, 27 Sep 99
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:  // with description
0051 
0052     G3MedTableEntry(G4int id, G4Material* material, G4MagneticField* field,
0053        G4UserLimits* limits, G4int isvol);
0054     G3MedTableEntry(const G3MedTableEntry& right);
0055     virtual ~G3MedTableEntry();
0056     
0057     // operators
0058     G3MedTableEntry& operator=(const G3MedTableEntry& right);
0059     G4bool operator==(const G3MedTableEntry& right) const;
0060     G4bool operator!=(const G3MedTableEntry& right) const;
0061 
0062     // set methods
0063     void SetMaterial(G4Material* material);
0064     void SetField(G4MagneticField* field);
0065     void SetLimits(G4UserLimits* limits);
0066     void SetISVOL(G4int isvol);
0067 
0068     // get methods
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     // data members  
0078     G4int             fID;
0079     G4Material*       fMaterial;
0080     G4MagneticField*  fField;
0081     G4UserLimits*     fLimits;
0082     G4int             fISVOL;
0083     //G4double deemax;
0084     //G4double epsil;
0085 };
0086 
0087 // inline methods
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