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

#include <G4NeutronHPThermalScatteringNames.hh>

Public Member Functions

 G4NeutronHPThermalScatteringNames ()
 
 ~G4NeutronHPThermalScatteringNames ()
 
G4bool IsThisThermalElement (G4String)
 
G4bool IsThisThermalElement (G4String, G4String)
 
size_t GetSize ()
 
G4String GetTS_NDL_Name (G4String nameG4Element)
 
G4String GetTS_NDL_Name (G4String material, G4String element)
 
void AddThermalElement (G4String, G4String)
 

Detailed Description

Definition at line 44 of file G4NeutronHPThermalScatteringNames.hh.

Constructor & Destructor Documentation

G4NeutronHPThermalScatteringNames::G4NeutronHPThermalScatteringNames ( )

Definition at line 43 of file G4NeutronHPThermalScatteringNames.cc.

44 {
45  names.insert ( std::pair < G4String , G4String > ( "TS_Aluminium_Metal" , "al_metal" ) );
46  names.insert ( std::pair < G4String , G4String > ( "TS_Beryllium_Metal" , "be_metal" ) );
47  names.insert ( std::pair < G4String , G4String > ( "TS_Be_of_Beryllium_Oxide" , "be_beo" ) );
48  names.insert ( std::pair < G4String , G4String > ( "TS_C_of_Graphite" , "graphite" ) );
49  names.insert ( std::pair < G4String , G4String > ( "TS_D_of_Heavy_Water" , "d_heavy_water" ) );
50  names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Water" , "h_water" ) );
51  names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Zirconium_Hydride" , "h_zrh" ) );
52  names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Polyethylene" , "h_polyethylene" ) );
53  names.insert ( std::pair < G4String , G4String > ( "TS_Iron_Metal" , "fe_metal" ) );
54  names.insert ( std::pair < G4String , G4String > ( "TS_O_of_Uranium_Dioxide" , "o_uo2" ) );
55  names.insert ( std::pair < G4String , G4String > ( "TS_O_of_Beryllium_Oxide" , "o_beo" ) );
56  names.insert ( std::pair < G4String , G4String > ( "TS_U_of_Uranium_Dioxide" , "u_uo2" ) );
57  names.insert ( std::pair < G4String , G4String > ( "TS_Zr_of_Zirconium_Hydride" , "zr_zrh" ) );
58 
59 
60  //names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Para_Hydrogen" , "h_para_h2" ) );
61  //names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Ortho_Hydrogen" , "h_ortho_h2" ) );
62 
63  //names.insert ( std::pair < G4String , G4String > ( "TS_D_of_Para_Deuterium" , "d_para_d2" ) );
64  //names.insert ( std::pair < G4String , G4String > ( "TS_D_of_Ortho_Deuterium" , "d_ortho_d2" ) );
65 
66  //names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Liquid_Methane", "h_l_ch4" ) );
67  //names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Solid_Methane", "h_s_ch4" ) );
68 
69  //names.insert ( std::pair < G4String , G4String > ( "TS_Benzene", "benzen" ) );
70 
71 
72  nist_names.insert ( std::pair < std::pair < G4String , G4String > , G4String > ( std::pair < G4String , G4String > ( "G4_BERYLLIUM_OXIDE" , "Be" ) , "be_beo" ) );
73  nist_names.insert ( std::pair < std::pair < G4String , G4String > , G4String > ( std::pair < G4String , G4String > ( "G4_BERYLLIUM_OXIDE" , "O" ) , "o_beo" ) );
74  nist_names.insert ( std::pair < std::pair < G4String , G4String > , G4String > ( std::pair < G4String , G4String > ( "G4_GRAPHITE" , "C" ) , "graphite" ) );
75  nist_names.insert ( std::pair < std::pair < G4String , G4String > , G4String > ( std::pair < G4String , G4String > ( "G4_POLYETHYLENE" , "H" ) , "h_polyethylene" ) );
76  nist_names.insert ( std::pair < std::pair < G4String , G4String > , G4String > ( std::pair < G4String , G4String > ( "G4_URANIUM_OXIDE" , "O" ) , "o_uo2" ) );
77  nist_names.insert ( std::pair < std::pair < G4String , G4String > , G4String > ( std::pair < G4String , G4String > ( "G4_URANIUM_OXIDE" , "U" ) , "u_uo2" ) );
78  nist_names.insert ( std::pair < std::pair < G4String , G4String > , G4String > ( std::pair < G4String , G4String > ( "G4_WATER" , "H" ) , "h_water" ) );
79 
80  //nist_names.insert ( std::pair < std::pair < G4String , G4String > , G4String > ( std::pair < G4String , G4String > ( "G4_BENZENE" , "H" ) , "benzen" ) );
81  //nist_names.insert ( std::pair < std::pair < G4String , G4String > , G4String > ( std::pair < G4String , G4String > ( "G4_BENZENE" , "C" ) , "benzen" ) );
82 }
G4NeutronHPThermalScatteringNames::~G4NeutronHPThermalScatteringNames ( )

Definition at line 84 of file G4NeutronHPThermalScatteringNames.cc.

85 {
86 ;
87 }

Member Function Documentation

void G4NeutronHPThermalScatteringNames::AddThermalElement ( G4String  nameG4Element,
G4String  filename 
)

Definition at line 104 of file G4NeutronHPThermalScatteringNames.cc.

Referenced by G4NeutronHPThermalScattering::AddUserThermalScatteringFile(), and G4NeutronHPThermalScatteringData::AddUserThermalScatteringFile().

105 {
106  if ( names.find ( nameG4Element ) == names.end() ) names.insert( std::pair<G4String,G4String>( nameG4Element , filename ) );
107 }
size_t G4NeutronHPThermalScatteringNames::GetSize ( void  )
inline

Definition at line 54 of file G4NeutronHPThermalScatteringNames.hh.

54 { return names.size(); };
G4String G4NeutronHPThermalScatteringNames::GetTS_NDL_Name ( G4String  nameG4Element)
inline

Definition at line 55 of file G4NeutronHPThermalScatteringNames.hh.

Referenced by G4NeutronHPThermalScatteringData::BuildPhysicsTable().

55 { return names.find ( nameG4Element )->second; };
G4String G4NeutronHPThermalScatteringNames::GetTS_NDL_Name ( G4String  material,
G4String  element 
)
inline

Definition at line 56 of file G4NeutronHPThermalScatteringNames.hh.

56 { return nist_names.find ( std::pair< G4String , G4String > ( material , element ) )->second; };
G4bool G4NeutronHPThermalScatteringNames::IsThisThermalElement ( G4String  aname)

Definition at line 89 of file G4NeutronHPThermalScatteringNames.cc.

Referenced by G4NeutronHPThermalScatteringData::BuildPhysicsTable().

90 {
91  G4bool result = false;
92  if ( names.find ( aname ) != names.end() ) result = true;
93  return result;
94 }
bool G4bool
Definition: G4Types.hh:79
G4bool G4NeutronHPThermalScatteringNames::IsThisThermalElement ( G4String  material,
G4String  element 
)

Definition at line 96 of file G4NeutronHPThermalScatteringNames.cc.

97 {
98  G4bool result = false;
99  if ( nist_names.find ( std::pair<G4String,G4String>(material,element) ) != nist_names.end() ) result = true;
100  return result;
101 }
bool G4bool
Definition: G4Types.hh:79

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