Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4MaterialPropertiesTable Class Reference

#include <G4MaterialPropertiesTable.hh>

Public Member Functions

 G4MaterialPropertiesTable ()
 
 ~G4MaterialPropertiesTable ()
 
void AddConstProperty (const char *key, G4double PropertyValue)
 
G4MaterialPropertyVectorAddProperty (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)
 
G4MaterialPropertyVectorGetProperty (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
 

Detailed Description

Definition at line 70 of file G4MaterialPropertiesTable.hh.

Constructor & Destructor Documentation

G4MaterialPropertiesTable::G4MaterialPropertiesTable ( )

Definition at line 57 of file G4MaterialPropertiesTable.cc.

58 {
59 }
G4MaterialPropertiesTable::~G4MaterialPropertiesTable ( )

Definition at line 65 of file G4MaterialPropertiesTable.cc.

66 {
67  MPTiterator i;
68  for (i = MPT.begin(); i != MPT.end(); ++i)
69  {
70  delete (*i).second;
71  }
72  MPT.clear();
73  MPTC.clear();
74 }

Member Function Documentation

void G4MaterialPropertiesTable::AddConstProperty ( const char *  key,
G4double  PropertyValue 
)
inline
void G4MaterialPropertiesTable::AddEntry ( const char *  key,
G4double  aPhotonEnergy,
G4double  aPropertyValue 
)
inline
G4MaterialPropertyVector* G4MaterialPropertiesTable::AddProperty ( const char *  key,
G4double PhotonEnergies,
G4double PropertyValues,
G4int  NumEntries 
)
inline
void G4MaterialPropertiesTable::AddProperty ( const char *  key,
G4MaterialPropertyVector opv 
)
inline
G4bool G4MaterialPropertiesTable::ConstPropertyExists ( const char *  key)
inline

Referenced by G4OpWLS::PostStepDoIt().

void G4MaterialPropertiesTable::DumpTable ( )

Definition at line 80 of file G4MaterialPropertiesTable.cc.

References G4cout, G4endl, G4Exception(), and JustWarning.

81 {
82  MPTiterator i;
83  for (i = MPT.begin(); i != MPT.end(); ++i)
84  {
85  G4cout << (*i).first << G4endl;
86  if ( (*i).second != 0 )
87  {
88  (*i).second->DumpValues();
89  }
90  else
91  {
92  G4Exception("G4MaterialPropertiesTable::DumpTable()", "mat204",
93  JustWarning, "NULL Material Property Vector Pointer.");
94  }
95  }
96  MPTCiterator j;
97  for (j = MPTC.begin(); j != MPTC.end(); ++j)
98  {
99  G4cout << j->first << G4endl;
100  if ( j->second != 0 )
101  {
102  G4cout << j->second << G4endl;
103  }
104  else
105  {
106  G4Exception("G4MaterialPropertiesTable::DumpTable()", "mat202",
107  JustWarning, "No Material Constant Property.");
108  }
109  }
110 }
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
#define G4endl
Definition: G4ios.hh:61
G4double G4MaterialPropertiesTable::GetConstProperty ( const char *  key)
inline

Referenced by G4OpMieHG::PostStepDoIt().

const std::map< G4String, G4double, std::less<G4String> >* G4MaterialPropertiesTable::GetPropertiesCMap ( ) const
inline

Definition at line 120 of file G4MaterialPropertiesTable.hh.

Referenced by G4GDMLWriteMaterials::PropertyWrite().

120 { return &MPTC; }
const std::map< G4String, G4MaterialPropertyVector*, std::less<G4String> >* G4MaterialPropertiesTable::GetPropertiesMap ( ) const
inline

Definition at line 118 of file G4MaterialPropertiesTable.hh.

Referenced by G4GDMLWriteMaterials::PropertyWrite().

118 { return &MPT; }
G4MaterialPropertyVector* G4MaterialPropertiesTable::GetProperty ( const char *  key)
inline
void G4MaterialPropertiesTable::RemoveConstProperty ( const char *  key)
inline
void G4MaterialPropertiesTable::RemoveProperty ( const char *  key)
inline

The documentation for this class was generated from the following files: