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 | // |
---|
27 | // $Id: G4ProtonGEMProbability.cc,v 1.5 2009/09/15 12:54:17 vnivanch Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-03-cand-01 $ |
---|
29 | // |
---|
30 | // Hadronic Process: Nuclear De-excitations |
---|
31 | // by V. Lara (Sept 2001) |
---|
32 | // |
---|
33 | // J.M. Quesada (July 2009) C's and k's values according to Furihata's paper |
---|
34 | // (based on notes added on proof in Dostrovskii's paper) |
---|
35 | |
---|
36 | #include "G4ProtonGEMProbability.hh" |
---|
37 | |
---|
38 | G4ProtonGEMProbability::G4ProtonGEMProbability() : |
---|
39 | G4GEMProbability(1,1,1.0/2.0) // A,Z,Gamma |
---|
40 | { |
---|
41 | SetExcitationEnergiesPtr(&ExcitEnergies); |
---|
42 | SetExcitationSpinsPtr(&ExcitSpins); |
---|
43 | SetExcitationLifetimesPtr(&ExcitLifetimes); |
---|
44 | } |
---|
45 | |
---|
46 | |
---|
47 | G4ProtonGEMProbability::G4ProtonGEMProbability(const G4ProtonGEMProbability &) : G4GEMProbability() |
---|
48 | { |
---|
49 | throw G4HadronicException(__FILE__, __LINE__, "G4ProtonGEMProbability::copy_constructor meant to not be accessable"); |
---|
50 | } |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | |
---|
55 | const G4ProtonGEMProbability & G4ProtonGEMProbability:: |
---|
56 | operator=(const G4ProtonGEMProbability &) |
---|
57 | { |
---|
58 | throw G4HadronicException(__FILE__, __LINE__, "G4ProtonGEMProbability::operator= meant to not be accessable"); |
---|
59 | return *this; |
---|
60 | } |
---|
61 | |
---|
62 | |
---|
63 | G4bool G4ProtonGEMProbability::operator==(const G4ProtonGEMProbability &) const |
---|
64 | { |
---|
65 | return false; |
---|
66 | } |
---|
67 | |
---|
68 | G4bool G4ProtonGEMProbability::operator!=(const G4ProtonGEMProbability &) const |
---|
69 | { |
---|
70 | return true; |
---|
71 | } |
---|
72 | |
---|
73 | //JMQ 190709 C's values from Furihata's paper |
---|
74 | //(notes added on proof in Dostrovskii's paper) |
---|
75 | //data = {{20, 0.}, {30, -0.06}, {40, -0.10}, {50, -0.10}}; |
---|
76 | G4double G4ProtonGEMProbability::CCoeficient(const G4double aZ) const |
---|
77 | { |
---|
78 | G4double C = 0.0; |
---|
79 | |
---|
80 | if (aZ >= 50){ |
---|
81 | C=-0.10; |
---|
82 | } else if (aZ <= 20) { |
---|
83 | C = 0.0; |
---|
84 | } else C=0.123482-0.00534691*aZ-0.0000610624*aZ*aZ+5.93719*1e-7*aZ*aZ*aZ+1.95687*1e-8*aZ*aZ*aZ*aZ; |
---|
85 | return C; |
---|
86 | |
---|
87 | } |
---|
88 | |
---|
89 | //G4double G4ProtonGEMProbability::CCoeficient(const G4double aZ) const |
---|
90 | //{ |
---|
91 | // Data comes from |
---|
92 | // Dostrovsky, Fraenkel and Friedlander |
---|
93 | // Physical Review, vol 116, num. 3 1959 |
---|
94 | // |
---|
95 | // const G4int size = 5; |
---|
96 | // G4double Zlist[5] = { 10.0, 20.0, 30.0, 50.0, 70.0}; |
---|
97 | // G4double Cp[5] = { 0.50, 0.28, 0.20, 0.15, 0.10}; |
---|
98 | // G4double C = 0.0; |
---|
99 | |
---|
100 | // if (aZ >= 70) { |
---|
101 | // C = 0.10; |
---|
102 | // } else { |
---|
103 | // C = ((((0.15417e-06*aZ) - 0.29875e-04)*aZ + 0.21071e-02)*aZ - 0.66612e-01)*aZ + 0.98375; |
---|
104 | // } |
---|
105 | |
---|
106 | // return C; |
---|
107 | |
---|
108 | //} |
---|