![]() |
|
|||
File indexing completed on 2025-10-22 08:40:13
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // 0027 // P. Arce, June-2014 Conversion neutron_hp to particle_hp 0028 // 0029 #ifndef G4ParticleHPThermalScatteringNames_h 0030 #define G4ParticleHPThermalScatteringNames_h 1 0031 0032 // Class Description 0033 // Name list of Elements for a high precision (based on evaluated data 0034 // libraries) description of themal neutron scattering below 4 eV; 0035 // Based on Thermal neutron scattering files 0036 // from the evaluated nuclear data files ENDF/B-VI, Release2 0037 // To be used in your physics list in case you need this physics. 0038 // In this case you want to register an object of this class with 0039 // the corresponding process. 0040 // Class Description - End 0041 0042 // 15-Nov-06 First implementation is done by T. Koi (SLAC/SCCS) 0043 0044 #include "globals.hh" 0045 0046 #include <map> 0047 0048 class G4ParticleHPThermalScatteringNames 0049 { 0050 public: 0051 0052 G4ParticleHPThermalScatteringNames(); 0053 0054 ~G4ParticleHPThermalScatteringNames() = default; 0055 0056 G4bool IsThisThermalElement(const G4String&) const; 0057 G4bool IsThisThermalElement(const G4String&, const G4String&) const; 0058 inline std::size_t GetSize() const { return names.size(); } 0059 inline const G4String& GetTS_NDL_Name(const G4String& nameG4Element) const 0060 { 0061 return names.find(nameG4Element)->second; 0062 } 0063 inline const G4String& GetTS_NDL_Name(const G4String& material, 0064 const G4String& element) const 0065 { 0066 return nist_names.find(std::pair<G4String, G4String>(material, element))->second; 0067 } 0068 0069 // For user prepared thermal files 0070 // Name of G4Element , Name of NDL file 0071 void AddThermalElement(const G4String&, const G4String&); 0072 0073 private: 0074 0075 // G4Element NDL name 0076 std::map<G4String, G4String> names; 0077 0078 // G4Material G4Element NDL name 0079 std::map<std::pair<G4String, G4String>, G4String> nist_names; 0080 }; 0081 0082 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |