|
||||
File indexing completed on 2025-01-18 09:58:52
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 // P. Arce, June-2014 Conversion neutron_hp to particle_hp 0027 // 0028 #ifndef G4ParticleHPJENDLHEData_h 0029 #define G4ParticleHPJENDLHEData_h 1 0030 0031 // Class Description 0032 // Cross-section data set for a high precision (based on JENDL_HE evaluated data 0033 // libraries) description of elastic scattering 20 MeV ~ 3 GeV; 0034 // Class Description - End 0035 0036 // 15-Nov-06 First Implementation is done by T. Koi (SLAC/SCCS) 0037 // 080422 Add IsZAApplicable method (return false) by T. Koi 0038 // 0039 0040 #include "G4DynamicParticle.hh" 0041 #include "G4Element.hh" 0042 #include "G4Neutron.hh" 0043 #include "G4ParticleDefinition.hh" 0044 #include "G4PhysicsVector.hh" 0045 #include "G4VCrossSectionDataSet.hh" 0046 0047 #include <map> 0048 0049 class G4ParticleHPJENDLHEData : public G4VCrossSectionDataSet 0050 { 0051 public: 0052 G4ParticleHPJENDLHEData(); 0053 G4ParticleHPJENDLHEData(G4String, G4ParticleDefinition*); 0054 0055 ~G4ParticleHPJENDLHEData() override; 0056 0057 G4bool IsApplicable(const G4DynamicParticle*, const G4Element*); 0058 0059 G4bool IsZAApplicable(const G4DynamicParticle*, G4double /*ZZ*/, G4double /*AA*/) 0060 { 0061 return false; 0062 } 0063 0064 G4double GetCrossSection(const G4DynamicParticle*, const G4Element*, G4double aT); 0065 0066 void BuildPhysicsTable(const G4ParticleDefinition&) override; 0067 0068 void DumpPhysicsTable(const G4ParticleDefinition&) override; 0069 0070 private: 0071 std::vector<G4bool> vElement; 0072 0073 std::map<G4int, std::map<G4int, G4PhysicsVector*>*> mIsotope; 0074 0075 G4bool isThisInMap(G4int, G4int); 0076 G4bool isThisNewIsotope(G4int z, G4int a) { return !(isThisInMap(z, a)); }; 0077 G4PhysicsVector* readAFile(std::fstream*); 0078 void registAPhysicsVector(G4int, G4int, G4PhysicsVector*); 0079 0080 G4double getXSfromThisIsotope(G4int, G4int, G4double); 0081 0082 G4String reactionName; 0083 G4String particleName; 0084 }; 0085 0086 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |