Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ParticleHPThermalScatteringNames Class Reference

#include <G4ParticleHPThermalScatteringNames.hh>

Public Member Functions

 G4ParticleHPThermalScatteringNames ()
 
 ~G4ParticleHPThermalScatteringNames ()
 
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 47 of file G4ParticleHPThermalScatteringNames.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPThermalScatteringNames()

G4ParticleHPThermalScatteringNames::G4ParticleHPThermalScatteringNames ( )

Definition at line 45 of file G4ParticleHPThermalScatteringNames.cc.

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

◆ ~G4ParticleHPThermalScatteringNames()

G4ParticleHPThermalScatteringNames::~G4ParticleHPThermalScatteringNames ( )

Definition at line 86 of file G4ParticleHPThermalScatteringNames.cc.

87{
88;
89}

Member Function Documentation

◆ AddThermalElement()

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

Definition at line 106 of file G4ParticleHPThermalScatteringNames.cc.

107{
108 if ( names.find ( nameG4Element ) == names.end() ) names.insert( std::pair<G4String,G4String>( nameG4Element , filename ) );
109}

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

◆ GetSize()

size_t G4ParticleHPThermalScatteringNames::GetSize ( )
inline

Definition at line 57 of file G4ParticleHPThermalScatteringNames.hh.

57{ return names.size(); };

◆ 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; };

◆ 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; };

Referenced by G4ParticleHPThermalScatteringData::BuildPhysicsTable().

◆ IsThisThermalElement() [1/2]

G4bool G4ParticleHPThermalScatteringNames::IsThisThermalElement ( G4String  aname)

Definition at line 91 of file G4ParticleHPThermalScatteringNames.cc.

92{
93 G4bool result = false;
94 if ( names.find ( aname ) != names.end() ) result = true;
95 return result;
96}
bool G4bool
Definition: G4Types.hh:86

Referenced by G4ParticleHPThermalScatteringData::BuildPhysicsTable().

◆ IsThisThermalElement() [2/2]

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

Definition at line 98 of file G4ParticleHPThermalScatteringNames.cc.

99{
100 G4bool result = false;
101 if ( nist_names.find ( std::pair<G4String,G4String>(material,element) ) != nist_names.end() ) result = true;
102 return result;
103}

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