source: trunk/source/processes/hadronic/cross_sections/include/G4BGGNucleonElasticXS.hh @ 1315

Last change on this file since 1315 was 1228, checked in by garnier, 14 years ago

update geant4.9.3 tag

File size: 4.6 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: G4BGGNucleonElasticXS.hh,v 1.5 2009/11/19 11:41:30 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-03 $
28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class header file
32//
33//
34// File name:     G4BGGNucleonElasticXS
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 elastic cross-sections using Barashenkov
45// parametersation below 100 GeV and Glauber-Gribov model above
46//
47// -------------------------------------------------------------------
48//
49
50#ifndef G4BGGNucleonElasticXS_h
51#define G4BGGNucleonElasticXS_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;
62class G4HadronNucleonXsc;
63
64class G4BGGNucleonElasticXS : public G4VCrossSectionDataSet
65{
66public:
67
68  G4BGGNucleonElasticXS (const G4ParticleDefinition*);
69
70  virtual ~G4BGGNucleonElasticXS();
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
92private:
93
94  void Initialise();
95
96  G4double CoulombFactor(G4double kinEnergy, G4double A);
97
98  G4double fGlauberEnergy; 
99  G4double fLowEnergy; 
100  G4double theGlauberFac[93];
101  G4double theCoulombFac[93];
102
103  const G4ParticleDefinition*     particle;
104  G4GlauberGribovCrossSection*    fGlauber;
105  G4NucleonNuclearCrossSection*   fNucleon;
106  G4HadronNucleonXsc*             fHadron;
107  G4bool                          isProton;
108  G4bool                          isInitialized;
109};
110
111//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
112
113inline
114G4bool G4BGGNucleonElasticXS::IsApplicable(const G4DynamicParticle*, 
115                                           const G4Element*)
116{
117  return true;
118  //  return IsZAApplicable(dp, elm->GetZ(), elm->GetN());
119}
120
121//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
122
123inline
124G4bool G4BGGNucleonElasticXS::IsZAApplicable(const G4DynamicParticle*, 
125                                             G4double /*Z*/, G4double/* A*/)
126{
127  return true;
128  //  return (dp->GetDefinition() == particle);
129}
130
131//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
132
133inline
134G4double G4BGGNucleonElasticXS::GetCrossSection(const G4DynamicParticle* dp, 
135                                                const G4Element* elm, 
136                                                G4double temp)
137{
138  return GetIsoZACrossSection(dp, elm->GetZ(), elm->GetN(), temp);
139}
140
141//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
142
143#endif
Note: See TracBrowser for help on using the repository browser.