#include <G4MaterialPropertiesTable.hh>
|
| G4MaterialPropertiesTable () |
|
| ~G4MaterialPropertiesTable () |
|
void | AddConstProperty (const char *key, G4double PropertyValue) |
|
G4MaterialPropertyVector * | AddProperty (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) |
|
G4MaterialPropertyVector * | GetProperty (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 |
|
◆ MPTCiterator
◆ MPTiterator
◆ G4MaterialPropertiesTable()
G4MaterialPropertiesTable::G4MaterialPropertiesTable |
( |
| ) |
|
◆ ~G4MaterialPropertiesTable()
G4MaterialPropertiesTable::~G4MaterialPropertiesTable |
( |
| ) |
|
Definition at line 65 of file G4MaterialPropertiesTable.cc.
68 for (i =
MPT.begin(); i !=
MPT.end(); ++i)
std::map< G4String, G4MaterialPropertyVector *, std::less< G4String > >::iterator MPTiterator
std::map< G4String, G4double, std::less< G4String > > MPTC
std::map< G4String, G4MaterialPropertyVector *, std::less< G4String > > MPT
◆ 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]
◆ AddProperty() [2/2]
◆ ConstPropertyExists()
G4bool G4MaterialPropertiesTable::ConstPropertyExists |
( |
const char * |
key | ) |
|
|
inline |
◆ DumpTable()
void G4MaterialPropertiesTable::DumpTable |
( |
| ) |
|
Definition at line 80 of file G4MaterialPropertiesTable.cc.
83 for (i =
MPT.begin(); i !=
MPT.end(); ++i)
86 if ( (*i).second != 0 )
88 (*i).second->DumpValues();
92 G4Exception(
"G4MaterialPropertiesTable::DumpTable()",
"mat204",
93 JustWarning,
"NULL Material Property Vector Pointer.");
97 for (j =
MPTC.begin(); j !=
MPTC.end(); ++j)
100 if ( j->second != 0 )
106 G4Exception(
"G4MaterialPropertiesTable::DumpTable()",
"mat202",
std::map< G4String, G4double, std::less< G4String > >::iterator MPTCiterator
G4GLOB_DLL std::ostream G4cout
std::map< G4String, G4MaterialPropertyVector *, std::less< G4String > >::iterator MPTiterator
std::map< G4String, G4double, std::less< G4String > > MPTC
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
std::map< G4String, G4MaterialPropertyVector *, std::less< G4String > > MPT
◆ GetConstProperty()
G4double G4MaterialPropertiesTable::GetConstProperty |
( |
const char * |
key | ) |
|
|
inline |
◆ GetPropertiesCMap()
◆ GetPropertiesMap()
◆ GetProperty()
◆ RemoveConstProperty()
void G4MaterialPropertiesTable::RemoveConstProperty |
( |
const char * |
key | ) |
|
|
inline |
◆ RemoveProperty()
void G4MaterialPropertiesTable::RemoveProperty |
( |
const char * |
key | ) |
|
|
inline |
◆ SetGROUPVEL()
Definition at line 119 of file G4MaterialPropertiesTable.cc.
121 #ifdef G4MULTITHREADED 127 itr =
MPT.find(
"GROUPVEL");
128 if(itr !=
MPT.end())
return itr->second;
133 if (rindex==0) {
return 0; }
137 if ( rindex->GetVectorLength() == 0 ) {
return 0; }
151 G4Exception(
"G4MaterialPropertiesTable::SetGROUPVEL()",
"mat205",
155 if ( rindex->GetVectorLength() >= 2 )
165 G4Exception(
"G4MaterialPropertiesTable::SetGROUPVEL()",
"mat205",
173 vg =
c_light/(n0+(n1-n0)/std::log(E1/E0));
184 for (
size_t i = 2; i < rindex->GetVectorLength(); i++)
186 vg =
c_light/( 0.5*(n0+n1)+(n1-n0)/std::log(E1/E0));
190 if((vg<0) || (vg>
c_light/(0.5*(n0+n1)))) { vg =
c_light/(0.5*(n0+n1)); }
197 E1 = rindex->Energy(i);
202 G4Exception(
"G4MaterialPropertiesTable::SetGROUPVEL()",
"mat205",
209 vg =
c_light/(n1+(n1-n0)/std::log(E1/E0));
void InsertValues(G4double energy, G4double value)
G4MaterialPropertyVector * AddProperty(const char *key, G4double *PhotonEnergies, G4double *PropertyValues, G4int NumEntries)
G4PhysicsOrderedFreeVector G4MaterialPropertyVector
std::map< G4String, G4MaterialPropertyVector *, std::less< G4String > >::iterator MPTiterator
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
std::map< G4String, G4MaterialPropertyVector *, std::less< G4String > > MPT
◆ MPT
◆ MPTC
The documentation for this class was generated from the following files: