[1197] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
[1340] | 26 | // $Id: G4NeutronElasticXS.hh,v 1.6 2010/10/15 22:32:55 dennis Exp $ |
---|
| 27 | // GEANT4 tag $Name: hadr-cross-V09-03-12 $ |
---|
[1197] | 28 | // |
---|
| 29 | // ------------------------------------------------------------------- |
---|
| 30 | // |
---|
| 31 | // GEANT4 Class header file |
---|
| 32 | // |
---|
| 33 | // |
---|
| 34 | // File name: G4NeutronElasticXS |
---|
| 35 | // |
---|
| 36 | // Author Ivantchenko, Geant4, 3-AUG-09 |
---|
| 37 | // |
---|
| 38 | // Modifications: |
---|
| 39 | // |
---|
| 40 | |
---|
[1340] | 41 | // Class Description: |
---|
| 42 | // This is a base class for neutron elastic hadronic cross section based on |
---|
| 43 | // data files from G4NEUTRONXSDATA data set |
---|
| 44 | // Class Description - End |
---|
[1197] | 45 | |
---|
| 46 | #ifndef G4NeutronElasticXS_h |
---|
| 47 | #define G4NeutronElasticXS_h 1 |
---|
| 48 | |
---|
| 49 | #include "G4VCrossSectionDataSet.hh" |
---|
| 50 | #include "globals.hh" |
---|
[1340] | 51 | #include <vector> |
---|
[1197] | 52 | |
---|
| 53 | class G4DynamicParticle; |
---|
| 54 | class G4ParticleDefinition; |
---|
| 55 | class G4Element; |
---|
| 56 | class G4PhysicsVector; |
---|
| 57 | class G4GlauberGribovCrossSection; |
---|
[1340] | 58 | class G4HadronNucleonXsc; |
---|
[1197] | 59 | |
---|
| 60 | class G4NeutronElasticXS : public G4VCrossSectionDataSet |
---|
| 61 | { |
---|
| 62 | public: // With Description |
---|
| 63 | |
---|
| 64 | G4NeutronElasticXS(); |
---|
| 65 | |
---|
| 66 | virtual ~G4NeutronElasticXS(); |
---|
| 67 | |
---|
| 68 | virtual |
---|
| 69 | G4bool IsApplicable(const G4DynamicParticle*, const G4Element*); |
---|
| 70 | |
---|
| 71 | virtual |
---|
[1340] | 72 | G4bool IsIsoApplicable(const G4DynamicParticle*, G4int /*Z*/, G4int /*A*/); |
---|
[1197] | 73 | |
---|
| 74 | virtual |
---|
| 75 | G4double GetCrossSection(const G4DynamicParticle*, |
---|
| 76 | const G4Element*, |
---|
| 77 | G4double aTemperature = 0.); |
---|
| 78 | |
---|
| 79 | virtual |
---|
| 80 | void BuildPhysicsTable(const G4ParticleDefinition&); |
---|
| 81 | |
---|
| 82 | virtual |
---|
| 83 | void DumpPhysicsTable(const G4ParticleDefinition&); |
---|
| 84 | |
---|
[1340] | 85 | private: |
---|
[1197] | 86 | |
---|
| 87 | void Initialise(G4int Z, G4DynamicParticle* dp = 0, const char* = 0); |
---|
| 88 | |
---|
| 89 | G4NeutronElasticXS & operator=(const G4NeutronElasticXS &right); |
---|
| 90 | G4NeutronElasticXS(const G4NeutronElasticXS&); |
---|
| 91 | |
---|
| 92 | G4GlauberGribovCrossSection* ggXsection; |
---|
[1340] | 93 | G4HadronNucleonXsc* fNucleon; |
---|
[1197] | 94 | |
---|
[1340] | 95 | const G4ParticleDefinition* proton; |
---|
[1197] | 96 | |
---|
[1340] | 97 | std::vector<G4PhysicsVector*> data; |
---|
| 98 | std::vector<G4double> coeff; |
---|
| 99 | G4int maxZ; |
---|
| 100 | |
---|
[1197] | 101 | G4bool isInitialized; |
---|
| 102 | |
---|
| 103 | }; |
---|
| 104 | |
---|
| 105 | #endif |
---|