Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G3MedTableEntry Class Reference

#include <G3MedTableEntry.hh>

Public Member Functions

 G3MedTableEntry (G4int id, G4Material *material, G4MagneticField *field, G4UserLimits *limits, G4int isvol)
 
 G3MedTableEntry (const G3MedTableEntry &right)
 
virtual ~G3MedTableEntry ()
 
G3MedTableEntryoperator= (const G3MedTableEntry &right)
 
G4int operator== (const G3MedTableEntry &right) const
 
G4int operator!= (const G3MedTableEntry &right) const
 
void SetMaterial (G4Material *material)
 
void SetField (G4MagneticField *field)
 
void SetLimits (G4UserLimits *limits)
 
void SetISVOL (G4int isvol)
 
G4int GetID () const
 
G4MaterialGetMaterial () const
 
G4MagneticFieldGetField () const
 
G4UserLimitsGetLimits () const
 
G4int GetISVOL () const
 

Detailed Description

Definition at line 49 of file G3MedTableEntry.hh.

Constructor & Destructor Documentation

◆ G3MedTableEntry() [1/2]

G3MedTableEntry::G3MedTableEntry ( G4int  id,
G4Material material,
G4MagneticField field,
G4UserLimits limits,
G4int  isvol 
)

Definition at line 37 of file G3MedTableEntry.cc.

39 : fID(id),
40 fMaterial(material),
41 fField(field),
42 fLimits(limits),
43 fISVOL(isvol)
44{}

◆ G3MedTableEntry() [2/2]

G3MedTableEntry::G3MedTableEntry ( const G3MedTableEntry right)

Definition at line 46 of file G3MedTableEntry.cc.

47 : fID(right.GetID()),
48 fMaterial(right.GetMaterial()),
49 fField(right.GetField()),
50 fLimits(right.GetLimits()),
51 fISVOL(right.GetISVOL())
52{}
G4Material * GetMaterial() const
G4MagneticField * GetField() const
G4UserLimits * GetLimits() const
G4int GetISVOL() const
G4int GetID() const

◆ ~G3MedTableEntry()

G3MedTableEntry::~G3MedTableEntry ( )
virtual

Definition at line 54 of file G3MedTableEntry.cc.

55{}

Member Function Documentation

◆ GetField()

G4MagneticField * G3MedTableEntry::GetField ( ) const
inline

Definition at line 108 of file G3MedTableEntry.hh.

109{ return fField; }

Referenced by operator=().

◆ GetID()

G4int G3MedTableEntry::GetID ( ) const
inline

Definition at line 102 of file G3MedTableEntry.hh.

103{ return fID; }

Referenced by G3MedTable::get(), operator=(), and operator==().

◆ GetISVOL()

G4int G3MedTableEntry::GetISVOL ( ) const
inline

Definition at line 114 of file G3MedTableEntry.hh.

115{ return fISVOL; }

Referenced by G3toG4BuildLVTree(), and operator=().

◆ GetLimits()

G4UserLimits * G3MedTableEntry::GetLimits ( ) const
inline

Definition at line 111 of file G3MedTableEntry.hh.

112{ return fLimits; }

Referenced by operator=().

◆ GetMaterial()

G4Material * G3MedTableEntry::GetMaterial ( ) const
inline

Definition at line 105 of file G3MedTableEntry.hh.

106{ return fMaterial; }

Referenced by G3toG4BuildLVTree(), and operator=().

◆ operator!=()

G4int G3MedTableEntry::operator!= ( const G3MedTableEntry right) const

Definition at line 76 of file G3MedTableEntry.cc.

77{
78 if (*this == right)
79 return 0;
80 else
81 return 1;
82}

◆ operator=()

G3MedTableEntry & G3MedTableEntry::operator= ( const G3MedTableEntry right)

Definition at line 57 of file G3MedTableEntry.cc.

58{
59 if (&right == this) { return *this; }
60 fID = right.GetID();
61 fMaterial = right.GetMaterial();
62 fField = right.GetField();
63 fLimits = right.GetLimits();
64 fISVOL = right.GetISVOL();
65 return *this;
66}

◆ operator==()

G4int G3MedTableEntry::operator== ( const G3MedTableEntry right) const

Definition at line 68 of file G3MedTableEntry.cc.

69{
70 if (fID == right.GetID())
71 return 1;
72 else
73 return 0;
74}

◆ SetField()

void G3MedTableEntry::SetField ( G4MagneticField field)
inline

Definition at line 93 of file G3MedTableEntry.hh.

94{ fField = field; }

◆ SetISVOL()

void G3MedTableEntry::SetISVOL ( G4int  isvol)
inline

Definition at line 99 of file G3MedTableEntry.hh.

100{ fISVOL = isvol; }

◆ SetLimits()

void G3MedTableEntry::SetLimits ( G4UserLimits limits)
inline

Definition at line 96 of file G3MedTableEntry.hh.

97{ fLimits = limits; }

◆ SetMaterial()

void G3MedTableEntry::SetMaterial ( G4Material material)
inline

Definition at line 90 of file G3MedTableEntry.hh.

91{ fMaterial = material; }

The documentation for this class was generated from the following files: