68 for (i =
MPT.begin(); i !=
MPT.end(); ++i)
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",
112 #ifdef G4MULTITHREADED
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));
177 if((vg<0) || (vg>c_light/n0)) { vg = c_light/n0; }
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));
213 if((vg<0) || (vg>c_light/n1)) { vg = c_light/n1; }
std::map< G4String, G4double, std::less< G4String > >::iterator MPTCiterator
G4MaterialPropertiesTable()
void InsertValues(G4double energy, G4double value)
G4MaterialPropertyVector * SetGROUPVEL()
#define G4MUTEX_INITIALIZER
G4MaterialPropertyVector * AddProperty(const char *key, G4double *PhotonEnergies, G4double *PropertyValues, G4int NumEntries)
G4GLOB_DLL std::ostream G4cout
G4PhysicsOrderedFreeVector G4MaterialPropertyVector
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
~G4MaterialPropertiesTable()