|
||||
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 // 0027 // 080417 Add IsZAApplicable method (return false) by T. Koi 0028 // 080428 Add bool onFlightDB by T. Koi 0029 // 091118 Add Ignore and Enable On Flight Doppler Broadening methods by T. Koi 0030 // 0031 // P. Arce, June-2014 Conversion neutron_hp to particle_hp 0032 // 0033 #ifndef G4ParticleHPInelasticData_h 0034 #define G4ParticleHPInelasticData_h 1 0035 0036 // Class Description 0037 // Cross-section data set for a high precision (based on evaluated data 0038 // libraries) description of neutron inelastic scattering below 20 MeV; 0039 // To be used in your physics list in case you need this physics. 0040 // In this case you want to register an object of this class with 0041 // the corresponding process. 0042 // Class Description - End 0043 0044 #include "G4DynamicParticle.hh" 0045 #include "G4Element.hh" 0046 #include "G4Neutron.hh" 0047 #include "G4ParticleDefinition.hh" 0048 #include "G4PhysicsTable.hh" 0049 #include "G4VCrossSectionDataSet.hh" 0050 0051 class G4ParticleHPData; 0052 0053 class G4ParticleHPInelasticData : public G4VCrossSectionDataSet 0054 { 0055 public: 0056 G4ParticleHPInelasticData(G4ParticleDefinition* projectile = G4Neutron::Neutron()); 0057 0058 ~G4ParticleHPInelasticData() override; 0059 0060 G4bool IsIsoApplicable(const G4DynamicParticle*, G4int /*Z*/, G4int /*A*/, 0061 const G4Element* /*elm*/, const G4Material* /*mat*/) override; 0062 0063 G4double GetIsoCrossSection(const G4DynamicParticle*, G4int /*Z*/, G4int /*A*/, 0064 const G4Isotope* /*iso*/, const G4Element* /*elm*/, 0065 const G4Material* /*mat*/) override; 0066 0067 // G4bool IsApplicable(const G4DynamicParticle*, const G4Element*); ?? 0068 0069 public: 0070 // G4bool IsZAApplicable( const G4DynamicParticle* , G4double /*ZZ*/, G4double /*AA*/) 0071 //{ return false;} 0072 0073 G4double GetCrossSection(const G4DynamicParticle*, const G4Element*, G4double aT); 0074 0075 // void BuildPhysicsTableHP(G4ParticleDefinition* projectile, const char* dataDirVariable); // 0076 // name it 'HP' to avoid compilation warning because of G4VCrossSectionDataSet's method 0077 void BuildPhysicsTable(const G4ParticleDefinition&) override; 0078 0079 void DumpPhysicsTable(const G4ParticleDefinition&) override; 0080 0081 G4ParticleDefinition* GetProjectile() { return theProjectile; } 0082 0083 public: 0084 G4int GetVerboseLevel() const; 0085 void SetVerboseLevel(G4int) override; 0086 void CrossSectionDescription(std::ostream&) const override; 0087 0088 private: 0089 G4PhysicsTable* theCrossSections; 0090 0091 G4ParticleDefinition* theProjectile; 0092 0093 G4ParticleHPData* theHPData; 0094 0095 G4bool instanceOfWorker; 0096 0097 G4double ke_cache; 0098 G4double xs_cache; 0099 const G4Element* element_cache; 0100 const G4Material* material_cache; 0101 0102 // char envVariable[500]; 0103 }; 0104 0105 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |