Import Geant4 5.0.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4MaterialPropertiesTable.hh,v 1.10 2001/07/11 10:01:26 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4MaterialPropertiesTable.hh,v 1.11 2002/11/07 02:29:58 gum Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
@@ -31,11 +31,13 @@
|
||||
//
|
||||
// File: G4MaterialPropertiesTable.hh
|
||||
// Description: An Material properties table is a hash table, with
|
||||
// key = property name, and value = G4MaterialPropertyVector
|
||||
// key = property name, and value either G4double or
|
||||
// G4MaterialPropertyVector
|
||||
// Version: 1.0
|
||||
// Created: 1996-02-08
|
||||
// Author: Juliet Armstrong
|
||||
// Updated: 1999-11-05 Migration from G4RWTPtrHashDictionary to STL
|
||||
// Updated: 2002-11-05 add named material constants by P. Gumplinger
|
||||
// 1999-11-05 Migration from G4RWTPtrHashDictionary to STL
|
||||
// by John Allison
|
||||
// 1999-10-29 add method and class descriptors
|
||||
// 1997-03-25 by Peter Gumplinger
|
||||
@@ -58,44 +60,29 @@
|
||||
|
||||
// Class Description:
|
||||
// An Material properties table is a hash table, with key = property
|
||||
// name, and value = G4MaterialPropertyVector.
|
||||
// name, and value either G4double or G4MaterialPropertyVector.
|
||||
// Class Description - End:
|
||||
|
||||
#define RefractionIndex "RINDEX"
|
||||
|
||||
/////////////////////
|
||||
// Class Definition
|
||||
/////////////////////
|
||||
|
||||
class G4MaterialPropertiesTable {
|
||||
|
||||
//////////////
|
||||
// Operators
|
||||
//////////////
|
||||
|
||||
private:
|
||||
|
||||
G4MaterialPropertiesTable&
|
||||
operator =(const G4MaterialPropertiesTable &right);
|
||||
|
||||
////////////////
|
||||
// Constructor
|
||||
////////////////
|
||||
////////////////
|
||||
// Constructor
|
||||
////////////////
|
||||
|
||||
public: // Without description
|
||||
|
||||
G4MaterialPropertiesTable();
|
||||
|
||||
private:
|
||||
|
||||
G4MaterialPropertiesTable(const G4MaterialPropertiesTable &right);
|
||||
|
||||
public: // Without description
|
||||
|
||||
///////////////
|
||||
// Destructor
|
||||
///////////////
|
||||
|
||||
public: // Without description
|
||||
|
||||
~G4MaterialPropertiesTable();
|
||||
|
||||
////////////
|
||||
@@ -104,6 +91,10 @@ public: // Without description
|
||||
|
||||
public: // With description
|
||||
|
||||
void AddConstProperty(const char *key,
|
||||
G4double PropertyValue);
|
||||
// Add a new property to the table by giving a key-name and value
|
||||
|
||||
void AddProperty(const char *key,
|
||||
G4double *PhotonMomenta,
|
||||
G4double *PropertyValues,
|
||||
@@ -115,9 +106,15 @@ public: // With description
|
||||
// Add a new property to the table by giving a key-name and an
|
||||
// already constructed G4MaterialPropertyVector.
|
||||
|
||||
void RemoveConstProperty(const char *key);
|
||||
// Remove a constant property from the table.
|
||||
|
||||
void RemoveProperty(const char *key);
|
||||
// Remove a property from the table.
|
||||
|
||||
G4double GetConstProperty(const char *key);
|
||||
// Get the constant property from the table corresponding to the key-name
|
||||
|
||||
G4MaterialPropertyVector* GetProperty(const char *key);
|
||||
// Get the property from the table corresponding to the key-name.
|
||||
|
||||
@@ -139,6 +136,11 @@ private:
|
||||
G4std::map<G4String, G4MaterialPropertyVector*, G4std::less<G4String> > MPT;
|
||||
typedef G4std::map<G4String, G4MaterialPropertyVector*,
|
||||
G4std::less<G4String> >::iterator MPTiterator;
|
||||
|
||||
G4std::map< G4String, G4double, G4std::less<G4String> > MPTC;
|
||||
typedef G4std::map< G4String, G4double,
|
||||
G4std::less<G4String> >::iterator MPTCiterator;
|
||||
|
||||
};
|
||||
|
||||
#endif /* G4MaterialPropertiesTable_h */
|
||||
|
||||
Reference in New Issue
Block a user