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 | // by V. Lara |
---|
27 | |
---|
28 | #ifndef G4HETCDeuteron_h |
---|
29 | #define G4HETCDeuteron_h 1 |
---|
30 | |
---|
31 | #include "G4HETCChargedFragment.hh" |
---|
32 | #include "G4ReactionProduct.hh" |
---|
33 | #include "G4Deuteron.hh" |
---|
34 | |
---|
35 | #include "G4DeuteronCoulombBarrier.hh" |
---|
36 | |
---|
37 | |
---|
38 | class G4HETCDeuteron : public G4HETCChargedFragment |
---|
39 | { |
---|
40 | public: |
---|
41 | // default constructor |
---|
42 | G4HETCDeuteron():G4HETCChargedFragment(2,1,&theDeuteronCoulombBarrier,"Deuteron") {} |
---|
43 | |
---|
44 | // copy constructor |
---|
45 | G4HETCDeuteron(const G4HETCDeuteron &right): G4HETCChargedFragment(right) {} |
---|
46 | |
---|
47 | // destructor |
---|
48 | ~G4HETCDeuteron() {} |
---|
49 | |
---|
50 | // operators |
---|
51 | const G4HETCDeuteron & operator=(const G4HETCDeuteron &right) |
---|
52 | { |
---|
53 | if (&right != this) this->G4HETCChargedFragment::operator=(right); |
---|
54 | return *this; |
---|
55 | } |
---|
56 | |
---|
57 | G4bool operator==(const G4HETCDeuteron &right) const |
---|
58 | { |
---|
59 | return G4HETCChargedFragment::operator==(right); |
---|
60 | } |
---|
61 | |
---|
62 | |
---|
63 | G4bool operator!=(const G4HETCDeuteron &right) const |
---|
64 | { |
---|
65 | return G4HETCChargedFragment::operator!=(right); |
---|
66 | } |
---|
67 | |
---|
68 | |
---|
69 | G4ReactionProduct * GetReactionProduct() const |
---|
70 | { |
---|
71 | G4ReactionProduct * theReactionProduct = |
---|
72 | new G4ReactionProduct(G4Deuteron::DeuteronDefinition()); |
---|
73 | theReactionProduct->SetMomentum(GetMomentum().vect()); |
---|
74 | theReactionProduct->SetTotalEnergy(GetMomentum().e()); |
---|
75 | #ifdef PRECOMPOUND_TEST |
---|
76 | theReactionProduct->SetCreatorModel("G4PrecompoundModel"); |
---|
77 | #endif |
---|
78 | return theReactionProduct; |
---|
79 | } |
---|
80 | |
---|
81 | private: |
---|
82 | virtual G4double GetAlpha() |
---|
83 | { |
---|
84 | G4double C = 0.0; |
---|
85 | G4double aZ = GetZ() + GetRestZ(); |
---|
86 | if (aZ >= 70) |
---|
87 | { |
---|
88 | C = 0.10; |
---|
89 | } |
---|
90 | else |
---|
91 | { |
---|
92 | C = ((((0.15417e-06*aZ) - 0.29875e-04)*aZ + 0.21071e-02)*aZ - 0.66612e-01)*aZ + 0.98375; |
---|
93 | } |
---|
94 | return 1.0 + C/2.0; |
---|
95 | } |
---|
96 | |
---|
97 | virtual G4double GetBeta() |
---|
98 | { |
---|
99 | return -GetCoulombBarrier(); |
---|
100 | } |
---|
101 | |
---|
102 | virtual G4double GetSpinFactor() |
---|
103 | { |
---|
104 | // 2s+1 |
---|
105 | return 3.0; |
---|
106 | } |
---|
107 | |
---|
108 | virtual G4double K(const G4Fragment & aFragment); |
---|
109 | |
---|
110 | |
---|
111 | private: |
---|
112 | |
---|
113 | G4DeuteronCoulombBarrier theDeuteronCoulombBarrier; |
---|
114 | |
---|
115 | }; |
---|
116 | |
---|
117 | #endif |
---|
118 | |
---|
119 | |
---|