Files
geant4/source/g3tog4/include/G3MedTableEntry.hh
T
2016-06-08 16:39:52 +02:00

116 lines
3.7 KiB
C++

//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: G3MedTableEntry.hh,v 1.5 2001/07/11 09:58:57 gunter Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------
// Class description:
//
// The class associates the G3 tracking medium index
// with the corresponding G4Material, G4MagneticField, G4UserLimits
// instances and sensitivity flag (isvol).
// ----------------------
//
// by I.Hrivnacova, 27 Sep 99
#ifndef G3MEDTABLEENTRYH_HH
#define G3MEDTABLEENTRYH_HH 1
#include "globals.hh"
class G4Material;
class G4MagneticField;
class G4UserLimits;
class G3MedTableEntry
{
public: // with description
G3MedTableEntry(G4int id, G4Material* material, G4MagneticField* field,
G4UserLimits* limits, G4int isvol);
G3MedTableEntry(const G3MedTableEntry& right);
virtual ~G3MedTableEntry();
// operators
const G3MedTableEntry& operator=(const G3MedTableEntry& right);
G4int operator==(const G3MedTableEntry& right) const;
G4int operator!=(const G3MedTableEntry& right) const;
// set methods
void SetMaterial(G4Material* material);
void SetField(G4MagneticField* field);
void SetLimits(G4UserLimits* limits);
void SetISVOL(G4int isvol);
// get methods
G4int GetID() const;
G4Material* GetMaterial() const;
G4MagneticField* GetField() const;
G4UserLimits* GetLimits() const;
G4int GetISVOL() const;
private:
// data members
G4int fID;
G4Material* fMaterial;
G4MagneticField* fField;
G4UserLimits* fLimits;
G4int fISVOL;
//G4double deemax;
//G4double epsil;
};
// inline methods
inline void G3MedTableEntry::SetMaterial(G4Material* material)
{ fMaterial = material; }
inline void G3MedTableEntry::SetField(G4MagneticField* field)
{ fField = field; }
inline void G3MedTableEntry::SetLimits(G4UserLimits* limits)
{ fLimits = limits; }
inline void G3MedTableEntry::SetISVOL(G4int isvol)
{ fISVOL = isvol; }
inline G4int G3MedTableEntry::GetID() const
{ return fID; }
inline G4Material* G3MedTableEntry::GetMaterial() const
{ return fMaterial; }
inline G4MagneticField* G3MedTableEntry::GetField() const
{ return fField; }
inline G4UserLimits* G3MedTableEntry::GetLimits() const
{ return fLimits; }
inline G4int G3MedTableEntry::GetISVOL() const
{ return fISVOL; }
#endif