Geant4-11
Public Member Functions | Private Attributes
G4ParticleHPThermalScatteringNames Class Reference

#include <G4ParticleHPThermalScatteringNames.hh>

Public Member Functions

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

Private Attributes

std::map< G4String, G4Stringnames
 
std::map< std::pair< G4String, G4String >, G4Stringnist_names
 

Detailed Description

Definition at line 47 of file G4ParticleHPThermalScatteringNames.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPThermalScatteringNames()

G4ParticleHPThermalScatteringNames::G4ParticleHPThermalScatteringNames ( )

Definition at line 46 of file G4ParticleHPThermalScatteringNames.cc.

47{
48 names.insert ( std::pair < G4String , G4String > ( "TS_Aluminium_Metal" , "al_metal" ) );
49 names.insert ( std::pair < G4String , G4String > ( "TS_Beryllium_Metal" , "be_metal" ) );
50 names.insert ( std::pair < G4String , G4String > ( "TS_Be_of_Beryllium_Oxide" , "be_beo" ) );
51 names.insert ( std::pair < G4String , G4String > ( "TS_C_of_Graphite" , "graphite" ) );
52 names.insert ( std::pair < G4String , G4String > ( "TS_D_of_Heavy_Water" , "d_heavy_water" ) );
53 names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Water" , "h_water" ) );
54 names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Zirconium_Hydride" , "h_zrh" ) );
55 names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Polyethylene" , "h_polyethylene" ) );
56 names.insert ( std::pair < G4String , G4String > ( "TS_Iron_Metal" , "fe_metal" ) );
57 names.insert ( std::pair < G4String , G4String > ( "TS_O_of_Uranium_Dioxide" , "o_uo2" ) );
58 names.insert ( std::pair < G4String , G4String > ( "TS_O_of_Beryllium_Oxide" , "o_beo" ) );
59 names.insert ( std::pair < G4String , G4String > ( "TS_U_of_Uranium_Dioxide" , "u_uo2" ) );
60 names.insert ( std::pair < G4String , G4String > ( "TS_U235_of_Uranium_Dioxide" , "u235_uo2" ) );
61 names.insert ( std::pair < G4String , G4String > ( "TS_U238_of_Uranium_Dioxide" , "u238_uo2" ) );
62 names.insert ( std::pair < G4String , G4String > ( "TS_Zr_of_Zirconium_Hydride" , "zr_zrh" ) ); // ENDF-B71
63 names.insert ( std::pair < G4String , G4String > ( "TS_Zr90_of_Zirconium_Hydride" , "zr90_zrh" ) ); // ENDF-B80
64 names.insert ( std::pair < G4String , G4String > ( "TS_Zr91_of_Zirconium_Hydride" , "zr91_zrh" ) ); // ENDF-B80
65 names.insert ( std::pair < G4String , G4String > ( "TS_Zr92_of_Zirconium_Hydride" , "zr92_zrh" ) ); // ENDF-B80
66 names.insert ( std::pair < G4String , G4String > ( "TS_Zr94_of_Zirconium_Hydride" , "zr94_zrh" ) ); // ENDF-B80
67 names.insert ( std::pair < G4String , G4String > ( "TS_Zr96_of_Zirconium_Hydride" , "zr96_zrh" ) ); // ENDF-B80
68 names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Para_Hydrogen" , "h_para_h2" ) );
69 names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Ortho_Hydrogen" , "h_ortho_h2" ) );
70 names.insert ( std::pair < G4String , G4String > ( "TS_D_of_Para_Deuterium" , "d_para_d2" ) );
71 names.insert ( std::pair < G4String , G4String > ( "TS_D_of_Ortho_Deuterium" , "d_ortho_d2" ) );
72 names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Liquid_Methane", "h_l_ch4" ) );
73 names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Solid_Methane", "h_s_ch4" ) );
74
75 // 26/03/2021 - Added by L. Thulliez (CEA-Saclay)
76 names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Ice", "h_ice" ) ); // ENDF-B80 & JEFF-3.3
77 names.insert ( std::pair < G4String , G4String > ( "TS_O_of_Ice", "o_ice" ) ); // ENDF-B80 & JEFF-3.3
78 names.insert ( std::pair < G4String , G4String > ( "TS_C_of_Graphite_Porosity_30percent" , "graphite_30p" ) ); // ENDF-B80
79 names.insert ( std::pair < G4String , G4String > ( "TS_C_of_Graphite_Porosity_10percent" , "graphite_10p" ) ); // ENDF-B80
80 names.insert ( std::pair < G4String , G4String > ( "TS_H_of_PolymethylMethacrylate", "h_c5o2h8" ) ); // ENDF-B80
81 names.insert ( std::pair < G4String , G4String > ( "TS_Al_of_Sapphir", "al_al2o3" ) ); // JEFF-3.3
82 names.insert ( std::pair < G4String , G4String > ( "TS_O_of_Sapphir", "o_al2o3" ) ); // JEFF-3.3
83 names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Mesitylene_phaseII", "h_mesitylene_phaseII" ) ); // JEFF-3.3
84 names.insert ( std::pair < G4String , G4String > ( "TS_H_of_Toluene", "h_toluene" ) ); // JEFF-3.3
85 names.insert ( std::pair < G4String , G4String > ( "TS_N_of_UN", "n_un" ) ); // ENDF-B80
86 names.insert ( std::pair < G4String , G4String > ( "TS_U235_of_UN", "u235_un" ) ); // ENDF-B80
87 names.insert ( std::pair < G4String , G4String > ( "TS_U238_of_UN", "u238_un" ) ); // ENDF-B80
88 names.insert ( std::pair < G4String , G4String > ( "TS_H_of_YH2", "h_yh2" ) ); // ENDF-B80
89 names.insert ( std::pair < G4String , G4String > ( "TS_Y_of_YH2", "y_yh2" ) ); // ENDF-B80
90 names.insert ( std::pair < G4String , G4String > ( "TS_C_of_SiC", "c_sic" ) ); // ENDF-B80
91 names.insert ( std::pair < G4String , G4String > ( "TS_Si28_of_SiC", "si28_sic" ) ); // ENDF-B80
92 names.insert ( std::pair < G4String , G4String > ( "TS_Si29_of_SiC", "si29_sic" ) ); // ENDF-B80
93 names.insert ( std::pair < G4String , G4String > ( "TS_Si30_of_SiC", "si30_sic" ) ); // ENDF-B80
94 names.insert ( std::pair < G4String , G4String > ( "TS_Si28_of_SiO2_beta", "si28_sio2_beta" ) ); // ENDF-B80
95 names.insert ( std::pair < G4String , G4String > ( "TS_Si29_of_SiO2_beta", "si29_sio2_beta" ) ); // ENDF-B80
96 names.insert ( std::pair < G4String , G4String > ( "TS_Si30_of_SiO2_beta", "si30_sio2_beta" ) ); // ENDF-B80
97 names.insert ( std::pair < G4String , G4String > ( "TS_Si28_of_SiO2_alpha", "si28_sio2_alpha" ) ); // ENDF-B80
98 names.insert ( std::pair < G4String , G4String > ( "TS_Si29_of_SiO2_alpha", "si29_sio2_alpha" ) ); // ENDF-B80
99 names.insert ( std::pair < G4String , G4String > ( "TS_Si30_of_SiO2_alpha", "si30_sio2_alpha" ) ); // ENDF-B80
100 //---
101
102 nist_names.insert ( std::pair < std::pair < G4String , G4String > , G4String > ( std::pair < G4String , G4String > ( "G4_BERYLLIUM_OXIDE" , "Be" ) , "be_beo" ) );
103 nist_names.insert ( std::pair < std::pair < G4String , G4String > , G4String > ( std::pair < G4String , G4String > ( "G4_BERYLLIUM_OXIDE" , "O" ) , "o_beo" ) );
104 nist_names.insert ( std::pair < std::pair < G4String , G4String > , G4String > ( std::pair < G4String , G4String > ( "G4_GRAPHITE" , "C" ) , "graphite" ) );
105 nist_names.insert ( std::pair < std::pair < G4String , G4String > , G4String > ( std::pair < G4String , G4String > ( "G4_POLYETHYLENE" , "H" ) , "h_polyethylene" ) );
106 nist_names.insert ( std::pair < std::pair < G4String , G4String > , G4String > ( std::pair < G4String , G4String > ( "G4_URANIUM_OXIDE" , "O" ) , "o_uo2" ) );
107 nist_names.insert ( std::pair < std::pair < G4String , G4String > , G4String > ( std::pair < G4String , G4String > ( "G4_URANIUM_OXIDE" , "U" ) , "u_uo2" ) );
108 nist_names.insert ( std::pair < std::pair < G4String , G4String > , G4String > ( std::pair < G4String , G4String > ( "G4_WATER" , "H" ) , "h_water" ) );
109}
std::map< std::pair< G4String, G4String >, G4String > nist_names

References names, and nist_names.

◆ ~G4ParticleHPThermalScatteringNames()

G4ParticleHPThermalScatteringNames::~G4ParticleHPThermalScatteringNames ( )

Definition at line 112 of file G4ParticleHPThermalScatteringNames.cc.

113{
114;
115}

Member Function Documentation

◆ AddThermalElement()

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

Definition at line 134 of file G4ParticleHPThermalScatteringNames.cc.

135{
136 if ( names.find ( nameG4Element ) == names.end() ) names.insert( std::pair<G4String,G4String>( nameG4Element , filename ) );
137}

References names.

Referenced by G4ParticleHPThermalScattering::AddUserThermalScatteringFile(), and G4ParticleHPThermalScatteringData::AddUserThermalScatteringFile().

◆ GetSize()

size_t G4ParticleHPThermalScatteringNames::GetSize ( void  )
inline

Definition at line 57 of file G4ParticleHPThermalScatteringNames.hh.

57{ return names.size(); };

References names.

◆ GetTS_NDL_Name() [1/2]

G4String G4ParticleHPThermalScatteringNames::GetTS_NDL_Name ( G4String  material,
G4String  element 
)
inline

Definition at line 59 of file G4ParticleHPThermalScatteringNames.hh.

59{ return nist_names.find ( std::pair< G4String , G4String > ( material , element ) )->second; };
string material
Definition: eplot.py:19

References eplot::material, and nist_names.

◆ GetTS_NDL_Name() [2/2]

G4String G4ParticleHPThermalScatteringNames::GetTS_NDL_Name ( G4String  nameG4Element)
inline

Definition at line 58 of file G4ParticleHPThermalScatteringNames.hh.

58{ return names.find ( nameG4Element )->second; };

References names.

Referenced by G4ParticleHPThermalScattering::buildPhysicsTable(), and G4ParticleHPThermalScatteringData::BuildPhysicsTable().

◆ IsThisThermalElement() [1/2]

G4bool G4ParticleHPThermalScatteringNames::IsThisThermalElement ( G4String  aname)

Definition at line 118 of file G4ParticleHPThermalScatteringNames.cc.

119{
120 G4bool result = false;
121 if ( names.find ( aname ) != names.end() ) result = true;
122 return result;
123}
bool G4bool
Definition: G4Types.hh:86

References names.

Referenced by G4ParticleHPThermalScattering::buildPhysicsTable(), and G4ParticleHPThermalScatteringData::BuildPhysicsTable().

◆ IsThisThermalElement() [2/2]

G4bool G4ParticleHPThermalScatteringNames::IsThisThermalElement ( G4String  material,
G4String  element 
)

Definition at line 126 of file G4ParticleHPThermalScatteringNames.cc.

127{
128 G4bool result = false;
129 if ( nist_names.find ( std::pair<G4String,G4String>(material,element) ) != nist_names.end() ) result = true;
130 return result;
131}

References eplot::material, and nist_names.

Field Documentation

◆ names

std::map< G4String , G4String > G4ParticleHPThermalScatteringNames::names
private

◆ nist_names

std::map< std::pair < G4String , G4String > , G4String > G4ParticleHPThermalScatteringNames::nist_names
private

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