[819] | 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 | // |
---|
[1196] | 26 | // $Id: G4BGGPionInelasticXS.hh,v 1.5 2009/11/19 11:47:19 vnivanch Exp $ |
---|
[1228] | 27 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
[819] | 28 | // |
---|
| 29 | // ------------------------------------------------------------------- |
---|
| 30 | // |
---|
| 31 | // GEANT4 Class header file |
---|
| 32 | // |
---|
| 33 | // |
---|
| 34 | // File name: G4BGGPionInelasticXS |
---|
| 35 | // |
---|
| 36 | // Author: Vladimir Ivanchenko |
---|
| 37 | // |
---|
| 38 | // Creation date: 01.10.2003 |
---|
| 39 | // Modifications: |
---|
| 40 | // |
---|
| 41 | // |
---|
| 42 | // Class Description: |
---|
| 43 | // |
---|
| 44 | // Wrapper of pi+ and pi- inelastic cross-sections using Barashenkov |
---|
| 45 | // parametersation below 100 GeV and Glauber-Gribov model above |
---|
| 46 | // |
---|
| 47 | // ------------------------------------------------------------------- |
---|
| 48 | // |
---|
| 49 | |
---|
| 50 | #ifndef G4BGGPionInelasticXS_h |
---|
| 51 | #define G4BGGPionInelasticXS_h |
---|
| 52 | |
---|
| 53 | #include "globals.hh" |
---|
| 54 | #include "G4VCrossSectionDataSet.hh" |
---|
| 55 | #include "G4ParticleDefinition.hh" |
---|
| 56 | #include "G4Element.hh" |
---|
| 57 | |
---|
| 58 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 59 | |
---|
| 60 | class G4GlauberGribovCrossSection; |
---|
| 61 | class G4UPiNuclearCrossSection; |
---|
[962] | 62 | class G4HadronNucleonXsc; |
---|
[819] | 63 | |
---|
| 64 | class G4BGGPionInelasticXS : public G4VCrossSectionDataSet |
---|
| 65 | { |
---|
| 66 | public: |
---|
| 67 | |
---|
| 68 | G4BGGPionInelasticXS (const G4ParticleDefinition*); |
---|
| 69 | |
---|
| 70 | virtual ~G4BGGPionInelasticXS(); |
---|
| 71 | |
---|
| 72 | virtual |
---|
| 73 | G4bool IsApplicable(const G4DynamicParticle*, const G4Element*); |
---|
| 74 | |
---|
| 75 | virtual |
---|
| 76 | G4bool IsZAApplicable(const G4DynamicParticle*, G4double Z, G4double A); |
---|
| 77 | |
---|
| 78 | virtual |
---|
| 79 | G4double GetCrossSection(const G4DynamicParticle*, |
---|
| 80 | const G4Element*, G4double aTemperature = 0.); |
---|
| 81 | |
---|
| 82 | virtual |
---|
| 83 | G4double GetIsoZACrossSection(const G4DynamicParticle*, G4double /*Z*/, |
---|
| 84 | G4double /*A*/, G4double aTemperature = 0.); |
---|
| 85 | |
---|
| 86 | virtual |
---|
| 87 | void BuildPhysicsTable(const G4ParticleDefinition&); |
---|
| 88 | |
---|
| 89 | virtual |
---|
| 90 | void DumpPhysicsTable(const G4ParticleDefinition&); |
---|
| 91 | |
---|
| 92 | private: |
---|
| 93 | |
---|
| 94 | void Initialise(); |
---|
| 95 | |
---|
[962] | 96 | G4double CoulombFactor(G4double kinEnergy, G4double A); |
---|
[819] | 97 | |
---|
[962] | 98 | G4double fGlauberEnergy; |
---|
| 99 | G4double fLowEnergy; |
---|
| 100 | G4double theGlauberFac[93]; |
---|
| 101 | G4double theCoulombFac[93]; |
---|
| 102 | |
---|
[819] | 103 | const G4ParticleDefinition* particle; |
---|
| 104 | G4GlauberGribovCrossSection* fGlauber; |
---|
| 105 | G4UPiNuclearCrossSection* fPion; |
---|
[962] | 106 | G4HadronNucleonXsc* fHadron; |
---|
| 107 | G4bool isPiplus; |
---|
| 108 | G4bool isInitialized; |
---|
[819] | 109 | }; |
---|
| 110 | |
---|
| 111 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 112 | |
---|
| 113 | inline |
---|
[962] | 114 | G4bool G4BGGPionInelasticXS::IsApplicable(const G4DynamicParticle*, |
---|
| 115 | const G4Element*) |
---|
[819] | 116 | { |
---|
[962] | 117 | return true; |
---|
| 118 | // return IsZAApplicable(dp, elm->GetZ(), elm->GetN()); |
---|
[819] | 119 | } |
---|
| 120 | |
---|
| 121 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 122 | |
---|
| 123 | inline |
---|
[962] | 124 | G4bool G4BGGPionInelasticXS::IsZAApplicable(const G4DynamicParticle*, |
---|
| 125 | G4double /*Z*/, G4double/* A*/) |
---|
[819] | 126 | { |
---|
[1196] | 127 | return false; |
---|
[962] | 128 | // return (dp->GetDefinition() == particle); |
---|
[819] | 129 | } |
---|
| 130 | |
---|
| 131 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 132 | |
---|
| 133 | inline |
---|
| 134 | G4double G4BGGPionInelasticXS::GetCrossSection(const G4DynamicParticle* dp, |
---|
[962] | 135 | const G4Element* elm, |
---|
| 136 | G4double temp) |
---|
[819] | 137 | { |
---|
| 138 | return GetIsoZACrossSection(dp, elm->GetZ(), elm->GetN(), temp); |
---|
| 139 | } |
---|
| 140 | |
---|
| 141 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 142 | |
---|
| 143 | #endif |
---|