source: trunk/source/processes/hadronic/cross_sections/include/G4BGGPionElasticXS.hh @ 1350

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

update ti head

File size: 4.8 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: G4BGGPionElasticXS.hh,v 1.7 2010/10/20 09:07:38 stesting Exp $
27// GEANT4 tag $Name: hadr-cross-V09-03-12 $
28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class header file
32//
33//
34// File name:     G4BGGPionElasticXS
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 G4BGGPionElasticXS_h
51#define G4BGGPionElasticXS_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 G4BGGPionElasticXS : public G4VCrossSectionDataSet
65{
66public:
67
68  G4BGGPionElasticXS (const G4ParticleDefinition*);
69
70  virtual ~G4BGGPionElasticXS();
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, G4double A);
104  G4double CoulombFactor(G4double kinEnergy, G4int A);
105
106  G4double fGlauberEnergy; 
107  G4double fLowEnergy; 
108  G4double theGlauberFac[93];
109  G4double theCoulombFac[93];
110
111  const G4ParticleDefinition*     particle;
112  G4GlauberGribovCrossSection*    fGlauber;
113  G4UPiNuclearCrossSection*       fPion;
114  G4HadronNucleonXsc*             fHadron;
115  G4bool                          isPiplus;
116  G4bool                          isInitialized;
117};
118
119//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
120
121inline
122G4bool G4BGGPionElasticXS::IsApplicable(const G4DynamicParticle*, 
123                                        const G4Element*)
124{
125  return true;
126}
127
128//inline
129//G4bool G4BGGPionElasticXS::IsZAApplicable(const G4DynamicParticle*,
130//                                        G4double /*Z*/, G4double/* A*/)
131
132inline
133G4bool G4BGGPionElasticXS::IsIsoApplicable(const G4DynamicParticle*,
134                                           G4int /*Z*/, G4int/* A*/)
135{
136  return false;
137}
138
139
140inline 
141G4double G4BGGPionElasticXS::GetCrossSection(const G4DynamicParticle* dp, 
142                                             const G4Element* elm, 
143                                             G4double temp)
144{
145//  return GetIsoZACrossSection(dp, elm->GetZ(), elm->GetN(), temp);
146  G4int Z = G4lrint(elm->GetZ());
147  G4int N = G4lrint(elm->GetN());
148  return GetZandACrossSection(dp, Z, N, temp);
149}
150
151#endif
Note: See TracBrowser for help on using the repository browser.