Import Geant4 6.2.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4MaterialPropertiesTable.cc,v 1.13 2002/11/07 02:30:29 gum Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// $Id: G4MaterialPropertiesTable.cc,v 1.15 2004/05/17 13:39:25 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-02 $
|
||||
//
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
@@ -128,6 +128,20 @@ G4double G4MaterialPropertiesTable::GetConstProperty(const char *key)
|
||||
}
|
||||
}
|
||||
|
||||
G4bool G4MaterialPropertiesTable::ConstPropertyExists(const char *key)
|
||||
{
|
||||
// Return true if a const property 'key' exists
|
||||
|
||||
MPTCiterator j;
|
||||
j = MPTC.find(G4String(key));
|
||||
if ( j != MPTC.end() ) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
G4MaterialPropertyVector* G4MaterialPropertiesTable::GetProperty(const char *key)
|
||||
{
|
||||
// Returns a Material Property Vector corresponding to a key
|
||||
|
||||
Reference in New Issue
Block a user