Geant4 11.2.2
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)
 
G4bool operator== (const G3MedTableEntry &right) const
 
G4bool 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 48 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 36 of file G3MedTableEntry.cc.

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

◆ G3MedTableEntry() [2/2]

G3MedTableEntry::G3MedTableEntry ( const G3MedTableEntry & right)

Definition at line 45 of file G3MedTableEntry.cc.

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

◆ ~G3MedTableEntry()

G3MedTableEntry::~G3MedTableEntry ( )
virtual

Definition at line 53 of file G3MedTableEntry.cc.

54{}

Member Function Documentation

◆ GetField()

G4MagneticField * G3MedTableEntry::GetField ( ) const
inline

Definition at line 107 of file G3MedTableEntry.hh.

108{ return fField; }

Referenced by operator=().

◆ GetID()

G4int G3MedTableEntry::GetID ( ) const
inline

Definition at line 101 of file G3MedTableEntry.hh.

102{ return fID; }

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

◆ GetISVOL()

G4int G3MedTableEntry::GetISVOL ( ) const
inline

Definition at line 113 of file G3MedTableEntry.hh.

114{ return fISVOL; }

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

◆ GetLimits()

G4UserLimits * G3MedTableEntry::GetLimits ( ) const
inline

Definition at line 110 of file G3MedTableEntry.hh.

111{ return fLimits; }

Referenced by operator=().

◆ GetMaterial()

G4Material * G3MedTableEntry::GetMaterial ( ) const
inline

Definition at line 104 of file G3MedTableEntry.hh.

105{ return fMaterial; }

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

◆ operator!=()

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

Definition at line 75 of file G3MedTableEntry.cc.

76{
77 if (*this == right)
78 return false;
79 else
80 return true;
81}

◆ operator=()

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

Definition at line 56 of file G3MedTableEntry.cc.

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

◆ operator==()

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

Definition at line 67 of file G3MedTableEntry.cc.

68{
69 if (fID == right.GetID())
70 return true;
71 else
72 return false;
73}

◆ SetField()

void G3MedTableEntry::SetField ( G4MagneticField * field)
inline

Definition at line 92 of file G3MedTableEntry.hh.

93{ fField = field; }

◆ SetISVOL()

void G3MedTableEntry::SetISVOL ( G4int isvol)
inline

Definition at line 98 of file G3MedTableEntry.hh.

99{ fISVOL = isvol; }

◆ SetLimits()

void G3MedTableEntry::SetLimits ( G4UserLimits * limits)
inline

Definition at line 95 of file G3MedTableEntry.hh.

96{ fLimits = limits; }

◆ SetMaterial()

void G3MedTableEntry::SetMaterial ( G4Material * material)
inline

Definition at line 89 of file G3MedTableEntry.hh.

90{ fMaterial = material; }

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