source: trunk/source/processes/hadronic/cross_sections/include/G4BGGPionInelasticXS.hh

Last change on this file was 1340, checked in by garnier, 14 years ago

update ti head

File size: 4.5 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: G4BGGPionInelasticXS.hh,v 1.6 2010/10/12 06:04:02 dennis Exp $
27// GEANT4 tag $Name: hadr-cross-V09-03-12 $
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#include "G4HadTmpUtil.hh"
58
59
60class G4GlauberGribovCrossSection;
61class G4UPiNuclearCrossSection;
62class G4HadronNucleonXsc;
63
64class G4BGGPionInelasticXS : public G4VCrossSectionDataSet
65{
66public:
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  G4bool IsIsoApplicable(const G4DynamicParticle*, G4int Z, G4int A);
80
81  virtual
82  G4double GetCrossSection(const G4DynamicParticle*, 
83                           const G4Element*, G4double aTemperature = 0.);
84
85//  virtual
86//  G4double GetIsoZACrossSection(const G4DynamicParticle*, G4double /*Z*/,
87//                              G4double /*A*/, G4double aTemperature = 0.);
88
89  virtual
90  G4double GetZandACrossSection(const G4DynamicParticle*, G4int /*Z*/,
91                                G4int /*A*/, G4double aTemperature = 0.);
92
93  virtual
94  void BuildPhysicsTable(const G4ParticleDefinition&);
95
96  virtual
97  void DumpPhysicsTable(const G4ParticleDefinition&); 
98
99private:
100
101  void Initialise();
102
103  G4double CoulombFactor(G4double kinEnergy, G4int A);
104
105  G4double fGlauberEnergy; 
106  G4double fLowEnergy; 
107  G4double theGlauberFac[93];
108  G4double theCoulombFac[93];
109
110  const G4ParticleDefinition*     particle;
111  G4GlauberGribovCrossSection*    fGlauber;
112  G4UPiNuclearCrossSection*       fPion;
113  G4HadronNucleonXsc*             fHadron;
114  G4bool                          isPiplus;
115  G4bool                          isInitialized;
116};
117
118
119inline
120G4bool G4BGGPionInelasticXS::IsApplicable(const G4DynamicParticle*, 
121                                          const G4Element*)
122{
123  return true;
124}
125
126
127inline
128G4bool G4BGGPionInelasticXS::IsIsoApplicable(const G4DynamicParticle*, 
129                                             G4int /*Z*/, G4int/* A*/)
130{
131  return false;
132}
133
134
135inline
136G4double G4BGGPionInelasticXS::GetCrossSection(const G4DynamicParticle* dp, 
137                                               const G4Element* elm, 
138                                               G4double temp)
139{
140//  return GetIsoZACrossSection(dp, elm->GetZ(), elm->GetN(), temp);
141  G4int Z = G4lrint(elm->GetZ());
142  G4int N = G4lrint(elm->GetN());
143  return GetZandACrossSection(dp, Z, N, temp);
144}
145
146#endif
Note: See TracBrowser for help on using the repository browser.