Import Geant4 4.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:18:25 +02:00
parent 36c080dca6
commit 921d3b1cda
3990 changed files with 185376 additions and 82884 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4MaterialPropertiesTable.cc,v 1.9.4.1 2001/06/28 19:10:31 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4MaterialPropertiesTable.cc,v 1.12 2001/10/17 07:59:54 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
////////////////////////////////////////////////////////////////////////
@@ -162,7 +162,7 @@ void G4MaterialPropertiesTable::AddEntry(const char *key,
G4double aPropertyValue)
{
G4MaterialPropertyVector *targetVector=MPT [G4String(key)];
if (targetVector != NULL) {
if (targetVector != 0) {
targetVector->AddElement(aPhotonMomentum, aPropertyValue);
}
else {
@@ -179,7 +179,7 @@ void G4MaterialPropertiesTable::RemoveEntry(const char *key,
targetVector->RemoveElement(aPhotonMomentum);
}
else {
G4Exception("G4MaterialPropertiesTable::AddEntry ==> "
G4Exception("G4MaterialPropertiesTable::RemoveEntry ==> "
"Material Property Vector not found.");
}
}
@@ -187,7 +187,12 @@ void G4MaterialPropertiesTable::DumpTable()
{
MPTiterator i;
for (i = MPT.begin(); i != MPT.end(); ++i) {
G4cout << *(*i).first << G4endl;
(*i).second->DumpVector();
G4cout << (*i).first << G4endl;
if ( (*i).second != 0 ) {
(*i).second->DumpVector();
}
else {
G4cout << "NULL Material Property Vector Pointer." << G4endl;
}
}
}