00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // $Id$ 00027 // 00028 // ------------------------------------------------------------------- 00029 // 00030 // GEANT4 Class header file 00031 // 00032 // 00033 // File name: G4NeutronInelasticXS 00034 // 00035 // Author Ivantchenko, Geant4, 3-AUG-09 00036 // 00037 // Modifications: 00038 // 00039 00040 // Class Description: 00041 // This is a base class for neutron inelastic hadronic cross section based on 00042 // data files from G4NEUTRONXSDATA data set 00043 // Class Description - End 00044 00045 #ifndef G4NeutronInelasticXS_h 00046 #define G4NeutronInelasticXS_h 1 00047 00048 #include "G4VCrossSectionDataSet.hh" 00049 #include "globals.hh" 00050 #include <vector> 00051 00052 class G4DynamicParticle; 00053 class G4ParticleDefinition; 00054 class G4Element; 00055 class G4PhysicsVector; 00056 class G4GlauberGribovCrossSection; 00057 class G4HadronNucleonXsc; 00058 00059 class G4NeutronInelasticXS : public G4VCrossSectionDataSet 00060 { 00061 public: 00062 00063 G4NeutronInelasticXS(); 00064 00065 virtual ~G4NeutronInelasticXS(); 00066 00067 virtual 00068 G4bool IsElementApplicable(const G4DynamicParticle*, G4int Z, 00069 const G4Material*); 00070 00071 virtual 00072 G4bool IsIsoApplicable(const G4DynamicParticle*, G4int Z, G4int A, 00073 const G4Element*, const G4Material*); 00074 00075 virtual 00076 G4double GetElementCrossSection(const G4DynamicParticle*, 00077 G4int Z, const G4Material* mat=0); 00078 /* 00079 virtual 00080 G4double GetIsoCrossSection(const G4DynamicParticle*, G4int Z, G4int A, 00081 const G4Isotope* iso, 00082 const G4Element* elm, 00083 const G4Material* mat); 00084 00085 virtual G4Isotope* SelectIsotope(const G4Element*, G4double kinEnergy); 00086 */ 00087 00088 virtual 00089 void BuildPhysicsTable(const G4ParticleDefinition&); 00090 00091 virtual void CrossSectionDescription(std::ostream&) const; 00092 00093 private: 00094 00095 void Initialise(G4int Z, G4DynamicParticle* dp = 0, const char* = 0); 00096 00097 G4NeutronInelasticXS & operator=(const G4NeutronInelasticXS &right); 00098 G4NeutronInelasticXS(const G4NeutronInelasticXS&); 00099 00100 G4GlauberGribovCrossSection* ggXsection; 00101 G4HadronNucleonXsc* fNucleon; 00102 00103 const G4ParticleDefinition* proton; 00104 00105 std::vector<G4PhysicsVector*> data; 00106 std::vector<G4double> coeff; 00107 G4int maxZ; 00108 00109 G4bool isInitialized; 00110 00111 }; 00112 00113 #endif