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

#include <G4MaterialPropertiesTable.hh>

Public Member Functions

 G4MaterialPropertiesTable ()
 
 ~G4MaterialPropertiesTable ()
 
void AddConstProperty (const char *key, G4double PropertyValue)
 
G4MaterialPropertyVectorAddProperty (const char *key, G4double *PhotonEnergies, G4double *PropertyValues, G4int NumEntries)
 
void AddProperty (const char *key, G4MaterialPropertyVector *opv)
 
void RemoveConstProperty (const char *key)
 
void RemoveProperty (const char *key)
 
G4double GetConstProperty (const char *key)
 
G4bool ConstPropertyExists (const char *key)
 
G4MaterialPropertyVectorGetProperty (const char *key)
 
void AddEntry (const char *key, G4double aPhotonEnergy, G4double aPropertyValue)
 
void DumpTable ()
 
const std::map< G4String, G4MaterialPropertyVector *, std::less< G4String > > * GetPropertiesMap () const
 
const std::map< G4String, G4double, std::less< G4String > > * GetPropertiesCMap () const
 

Detailed Description

Definition at line 70 of file G4MaterialPropertiesTable.hh.

Constructor & Destructor Documentation

◆ G4MaterialPropertiesTable()

G4MaterialPropertiesTable::G4MaterialPropertiesTable ( )

Definition at line 57 of file G4MaterialPropertiesTable.cc.

58{
59}

◆ ~G4MaterialPropertiesTable()

G4MaterialPropertiesTable::~G4MaterialPropertiesTable ( )

Definition at line 65 of file G4MaterialPropertiesTable.cc.

66{
67 MPTiterator i;
68 for (i = MPT.begin(); i != MPT.end(); ++i)
69 {
70 delete (*i).second;
71 }
72 MPT.clear();
73 MPTC.clear();
74}

Member Function Documentation

◆ AddConstProperty()

void G4MaterialPropertiesTable::AddConstProperty ( const char *  key,
G4double  PropertyValue 
)
inline

◆ AddEntry()

void G4MaterialPropertiesTable::AddEntry ( const char *  key,
G4double  aPhotonEnergy,
G4double  aPropertyValue 
)
inline

◆ AddProperty() [1/2]

G4MaterialPropertyVector * G4MaterialPropertiesTable::AddProperty ( const char *  key,
G4double PhotonEnergies,
G4double PropertyValues,
G4int  NumEntries 
)
inline

◆ AddProperty() [2/2]

void G4MaterialPropertiesTable::AddProperty ( const char *  key,
G4MaterialPropertyVector opv 
)
inline

◆ ConstPropertyExists()

G4bool G4MaterialPropertiesTable::ConstPropertyExists ( const char *  key)
inline

Referenced by G4OpWLS::PostStepDoIt().

◆ DumpTable()

void G4MaterialPropertiesTable::DumpTable ( )

Definition at line 80 of file G4MaterialPropertiesTable.cc.

81{
82 MPTiterator i;
83 for (i = MPT.begin(); i != MPT.end(); ++i)
84 {
85 G4cout << (*i).first << G4endl;
86 if ( (*i).second != 0 )
87 {
88 (*i).second->DumpValues();
89 }
90 else
91 {
92 G4Exception("G4MaterialPropertiesTable::DumpTable()", "mat204",
93 JustWarning, "NULL Material Property Vector Pointer.");
94 }
95 }
96 MPTCiterator j;
97 for (j = MPTC.begin(); j != MPTC.end(); ++j)
98 {
99 G4cout << j->first << G4endl;
100 if ( j->second != 0 )
101 {
102 G4cout << j->second << G4endl;
103 }
104 else
105 {
106 G4Exception("G4MaterialPropertiesTable::DumpTable()", "mat202",
107 JustWarning, "No Material Constant Property.");
108 }
109 }
110}
@ JustWarning
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

◆ GetConstProperty()

G4double G4MaterialPropertiesTable::GetConstProperty ( const char *  key)
inline

Referenced by G4OpMieHG::PostStepDoIt().

◆ GetPropertiesCMap()

const std::map< G4String, G4double, std::less< G4String > > * G4MaterialPropertiesTable::GetPropertiesCMap ( ) const
inline

Definition at line 120 of file G4MaterialPropertiesTable.hh.

120{ return &MPTC; }

Referenced by G4GDMLWriteMaterials::PropertyWrite().

◆ GetPropertiesMap()

const std::map< G4String, G4MaterialPropertyVector *, std::less< G4String > > * G4MaterialPropertiesTable::GetPropertiesMap ( ) const
inline

Definition at line 118 of file G4MaterialPropertiesTable.hh.

118{ return &MPT; }

Referenced by G4GDMLWriteMaterials::PropertyWrite().

◆ GetProperty()

◆ RemoveConstProperty()

void G4MaterialPropertiesTable::RemoveConstProperty ( const char *  key)
inline

◆ RemoveProperty()

void G4MaterialPropertiesTable::RemoveProperty ( const char *  key)
inline

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