Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:53

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     G4ParticleHPThermalScatteringNames();
0052 
0053     ~G4ParticleHPThermalScatteringNames();
0054 
0055     G4bool IsThisThermalElement(G4String);
0056     G4bool IsThisThermalElement(G4String, G4String);
0057     size_t GetSize() { return names.size(); };
0058     G4String GetTS_NDL_Name(G4String nameG4Element) { return names.find(nameG4Element)->second; };
0059     G4String GetTS_NDL_Name(G4String material, G4String element)
0060     {
0061       return nist_names.find(std::pair<G4String, G4String>(material, element))->second;
0062     };
0063     // G4String GetTS_G4E_Name( G4int i ) { return  names[i]->first; };
0064 
0065     // For user prepared thermal files
0066     // Name of G4Element , Name of NDL file
0067     void AddThermalElement(G4String, G4String);
0068 
0069   private:
0070     //              G4Element  NDL name
0071     std::map<G4String, G4String> names;
0072 
0073     //                         G4Material G4Element    NDL name
0074     std::map<std::pair<G4String, G4String>, G4String> nist_names;
0075 };
0076 
0077 #endif