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: G4PreCompoundTriton.hh,v 1.6 2007/10/01 10:42:00 ahoward Exp $ |
---|
28 | // GEANT4 tag $Name: $ |
---|
29 | // |
---|
30 | // by V. Lara |
---|
31 | |
---|
32 | #ifndef G4PreCompoundTriton_h |
---|
33 | #define G4PreCompoundTriton_h 1 |
---|
34 | |
---|
35 | #include "G4PreCompoundIon.hh" |
---|
36 | #include "G4ReactionProduct.hh" |
---|
37 | #include "G4Triton.hh" |
---|
38 | |
---|
39 | #include "G4TritonCoulombBarrier.hh" |
---|
40 | |
---|
41 | |
---|
42 | class G4PreCompoundTriton : public G4PreCompoundIon |
---|
43 | { |
---|
44 | public: |
---|
45 | // default constructor |
---|
46 | G4PreCompoundTriton():G4PreCompoundIon(3,1,&theTritonCoulombBarrier,"Triton") {} |
---|
47 | |
---|
48 | // copy constructor |
---|
49 | G4PreCompoundTriton(const G4PreCompoundTriton &right): G4PreCompoundIon(right) {} |
---|
50 | |
---|
51 | // destructor |
---|
52 | ~G4PreCompoundTriton() {} |
---|
53 | |
---|
54 | // operators |
---|
55 | const G4PreCompoundTriton & operator=(const G4PreCompoundTriton &right) { |
---|
56 | if (&right != this) this->G4PreCompoundIon::operator=(right); |
---|
57 | return *this; |
---|
58 | } |
---|
59 | |
---|
60 | G4bool operator==(const G4PreCompoundTriton &right) const |
---|
61 | { return G4PreCompoundIon::operator==(right);} |
---|
62 | |
---|
63 | |
---|
64 | G4bool operator!=(const G4PreCompoundTriton &right) const |
---|
65 | { return G4PreCompoundIon::operator!=(right);} |
---|
66 | |
---|
67 | |
---|
68 | G4ReactionProduct * GetReactionProduct() const |
---|
69 | { |
---|
70 | G4ReactionProduct * theReactionProduct = |
---|
71 | new G4ReactionProduct(G4Triton::TritonDefinition()); |
---|
72 | theReactionProduct->SetMomentum(GetMomentum().vect()); |
---|
73 | theReactionProduct->SetTotalEnergy(GetMomentum().e()); |
---|
74 | #ifdef PRECOMPOUND_TEST |
---|
75 | theReactionProduct->SetCreatorModel("G4PrecompoundModel"); |
---|
76 | #endif |
---|
77 | return theReactionProduct; |
---|
78 | } |
---|
79 | |
---|
80 | private: |
---|
81 | |
---|
82 | // added Rj method according to literature and JMQ |
---|
83 | virtual G4double GetRj(const G4int NumberParticles, const G4int NumberCharged) |
---|
84 | { |
---|
85 | G4double rj = 1.0; |
---|
86 | G4double denominator = NumberParticles*(NumberParticles-1)*(NumberParticles-2); |
---|
87 | if(denominator != 0) rj = 3.0*static_cast<G4double>(NumberCharged*(NumberParticles-NumberCharged)*(NumberParticles-NumberCharged-1))/static_cast<G4double>(denominator); //JMQ 23/8/07 |
---|
88 | |
---|
89 | return rj; |
---|
90 | } |
---|
91 | |
---|
92 | virtual G4double GetAlpha() |
---|
93 | { |
---|
94 | G4double C = 0.0; |
---|
95 | G4double aZ = GetZ() + GetRestZ(); |
---|
96 | if (aZ >= 70) |
---|
97 | { |
---|
98 | C = 0.10; |
---|
99 | } |
---|
100 | else |
---|
101 | { |
---|
102 | C = ((((0.15417e-06*aZ) - 0.29875e-04)*aZ + 0.21071e-02)*aZ - 0.66612e-01)*aZ + 0.98375; |
---|
103 | } |
---|
104 | |
---|
105 | return 1.0 + C/3.0; |
---|
106 | } |
---|
107 | |
---|
108 | virtual G4double GetBeta() |
---|
109 | { |
---|
110 | return -GetCoulombBarrier(); |
---|
111 | } |
---|
112 | |
---|
113 | virtual G4double FactorialFactor(const G4double N, const G4double P) |
---|
114 | { |
---|
115 | return |
---|
116 | (N-3.0)*(P-2.0)*( |
---|
117 | (((N-2.0)*(P-1.0))/2.0) *( |
---|
118 | (((N-1.0)*P)/3.0) |
---|
119 | ) |
---|
120 | ); |
---|
121 | } |
---|
122 | |
---|
123 | virtual G4double CoalescenceFactor(const G4double A) |
---|
124 | { |
---|
125 | return 243.0/(A*A); |
---|
126 | } |
---|
127 | private: |
---|
128 | |
---|
129 | G4TritonCoulombBarrier theTritonCoulombBarrier; |
---|
130 | |
---|
131 | }; |
---|
132 | |
---|
133 | #endif |
---|