source: trunk/source/processes/hadronic/cross_sections/include/G4BGGNucleonInelasticXS.hh@ 858

Last change on this file since 858 was 819, checked in by garnier, 17 years ago

import all except CVS

File size: 4.4 KB
Line 
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//
26// $Id: G4BGGNucleonInelasticXS.hh,v 1.1 2007/03/13 15:19:30 vnivanch Exp $
27// GEANT4 tag $Name: $
28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class header file
32//
33//
34// File name: G4BGGNucleonInelasticXS
35//
36// Author: Vladimir Ivanchenko
37//
38// Creation date: 13.03.2007
39// Modifications:
40//
41//
42// Class Description:
43//
44// Wrapper of proton and neutron inelastic cross-sections using Barashenkov
45// parametersation below 100 GeV and Glauber-Gribov model above
46//
47// -------------------------------------------------------------------
48//
49
50#ifndef G4BGGNucleonInelasticXS_h
51#define G4BGGNucleonInelasticXS_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
60class G4GlauberGribovCrossSection;
61class G4NucleonNuclearCrossSection;
62
63class G4BGGNucleonInelasticXS : public G4VCrossSectionDataSet
64{
65public:
66
67 G4BGGNucleonInelasticXS (const G4ParticleDefinition*);
68
69 virtual ~G4BGGNucleonInelasticXS();
70
71 virtual
72 G4bool IsApplicable(const G4DynamicParticle*, const G4Element*);
73
74 virtual
75 G4bool IsZAApplicable(const G4DynamicParticle*, G4double Z, G4double A);
76
77 virtual
78 G4double GetCrossSection(const G4DynamicParticle*,
79 const G4Element*, G4double aTemperature = 0.);
80
81 virtual
82 G4double GetIsoZACrossSection(const G4DynamicParticle*, G4double /*Z*/,
83 G4double /*A*/, G4double aTemperature = 0.);
84
85 virtual
86 void BuildPhysicsTable(const G4ParticleDefinition&);
87
88 virtual
89 void DumpPhysicsTable(const G4ParticleDefinition&);
90
91private:
92
93 void Initialise();
94
95 G4double thEnergy; // threshold of Glauber model
96 G4double theFac[93];
97
98 const G4ParticleDefinition* particle;
99 G4GlauberGribovCrossSection* fGlauber;
100 G4NucleonNuclearCrossSection* fNucleon;
101};
102
103//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
104
105inline
106G4bool G4BGGNucleonInelasticXS::IsApplicable(const G4DynamicParticle* dp,
107 const G4Element* elm)
108{
109 return IsZAApplicable(dp, elm->GetZ(), elm->GetN());
110}
111
112//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
113
114inline
115G4bool G4BGGNucleonInelasticXS::IsZAApplicable(const G4DynamicParticle* dp,
116 G4double Z, G4double/* A*/)
117{
118 return (dp->GetDefinition() == particle && Z > 1.5);
119}
120
121//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
122
123inline
124G4double G4BGGNucleonInelasticXS::GetCrossSection(const G4DynamicParticle* dp,
125 const G4Element* elm,
126 G4double temp)
127{
128 return GetIsoZACrossSection(dp, elm->GetZ(), elm->GetN(), temp);
129}
130
131//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
132
133#endif
Note: See TracBrowser for help on using the repository browser.