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 | #ifndef G4IonProtonCrossSection_h |
---|
27 | #define G4IonProtonCrossSection_h |
---|
28 | |
---|
29 | #include "globals.hh" |
---|
30 | #include "G4Proton.hh" |
---|
31 | // Class Description |
---|
32 | // Cross-sections for ion proton scattering up to 20 GeV, getting the low |
---|
33 | // energy threshold behaviour right. |
---|
34 | // H.P. Wellisch (TRIUMF), D. Axen (British Columbia U.). 1996. |
---|
35 | // Published in Phys.Rev.C54:1329-1332,1996 |
---|
36 | // Class Description - End |
---|
37 | |
---|
38 | #include "G4VCrossSectionDataSet.hh" |
---|
39 | #include "G4ProtonInelasticCrossSection.hh" |
---|
40 | |
---|
41 | class G4IonProtonCrossSection : public G4VCrossSectionDataSet |
---|
42 | { |
---|
43 | public: |
---|
44 | |
---|
45 | virtual |
---|
46 | G4bool IsZAApplicable(const G4DynamicParticle* aPart, G4double /*ZZ*/, |
---|
47 | G4double AA) |
---|
48 | { |
---|
49 | G4bool result = false; |
---|
50 | if((AA < 1.1) && |
---|
51 | ( aPart->GetKineticEnergy()/aPart->GetDefinition() |
---|
52 | ->GetBaryonNumber() < 20*GeV && |
---|
53 | aPart->GetDefinition()->GetBaryonNumber() > 4) |
---|
54 | ) result = true; |
---|
55 | return result; |
---|
56 | } |
---|
57 | |
---|
58 | virtual |
---|
59 | G4bool IsApplicable(const G4DynamicParticle* aPart, const G4Element* anEle) |
---|
60 | { |
---|
61 | return IsZAApplicable(aPart, 0., anEle->GetN()); |
---|
62 | } |
---|
63 | |
---|
64 | virtual |
---|
65 | G4double GetCrossSection(const G4DynamicParticle* aPart, |
---|
66 | const G4Element*, G4double ) |
---|
67 | { |
---|
68 | return GetIsoZACrossSection(aPart, 0., 0., 0.); |
---|
69 | } |
---|
70 | |
---|
71 | virtual |
---|
72 | G4double GetIsoZACrossSection(const G4DynamicParticle* aPart, |
---|
73 | G4double /*ZZ*/, G4double /*AA*/, |
---|
74 | G4double /*temperature*/) |
---|
75 | { |
---|
76 | G4ProtonInelasticCrossSection theForward; |
---|
77 | return theForward.GetCrossSection(aPart->GetKineticEnergy(), |
---|
78 | aPart->GetDefinition()->GetBaryonNumber(), |
---|
79 | aPart->GetDefinition()->GetPDGCharge()); |
---|
80 | } |
---|
81 | |
---|
82 | |
---|
83 | virtual |
---|
84 | void BuildPhysicsTable(const G4ParticleDefinition&) |
---|
85 | {} |
---|
86 | |
---|
87 | virtual |
---|
88 | void DumpPhysicsTable(const G4ParticleDefinition&) |
---|
89 | {G4cout << "G4IonProtonCrossSection: uses formula"<<G4endl;} |
---|
90 | |
---|
91 | }; |
---|
92 | |
---|
93 | #endif |
---|