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: G4StatMFMicroPartition.hh,v 1.3 2006/06/29 20:24:31 gunter Exp $ |
---|
28 | // GEANT4 tag $Name: $ |
---|
29 | // |
---|
30 | // Hadronic Process: Nuclear De-excitations |
---|
31 | // by V. Lara |
---|
32 | |
---|
33 | #ifndef G4StatMFMicroPartition_h |
---|
34 | #define G4StatMFMicroPartition_h 1 |
---|
35 | |
---|
36 | #include <vector> |
---|
37 | |
---|
38 | #include "globals.hh" |
---|
39 | #include "G4StatMFParameters.hh" |
---|
40 | #include "G4StatMFChannel.hh" |
---|
41 | |
---|
42 | class G4StatMFMicroPartition { |
---|
43 | |
---|
44 | public: |
---|
45 | // Constructor |
---|
46 | G4StatMFMicroPartition(const G4int A, const G4double Z) : |
---|
47 | theA(A), theZ(Z), _Probability(0.0), _Temperature(0.0), |
---|
48 | _Entropy(0.0) {}; |
---|
49 | |
---|
50 | |
---|
51 | // Destructor |
---|
52 | ~G4StatMFMicroPartition() {}; |
---|
53 | |
---|
54 | |
---|
55 | private: |
---|
56 | // Default constructor |
---|
57 | G4StatMFMicroPartition() {}; |
---|
58 | |
---|
59 | // Copy constructor |
---|
60 | G4StatMFMicroPartition(const G4StatMFMicroPartition & right); |
---|
61 | |
---|
62 | // operators |
---|
63 | G4StatMFMicroPartition & operator=(const G4StatMFMicroPartition & right); |
---|
64 | public: |
---|
65 | G4bool operator==(const G4StatMFMicroPartition & right) const; |
---|
66 | G4bool operator!=(const G4StatMFMicroPartition & right) const; |
---|
67 | |
---|
68 | public: |
---|
69 | |
---|
70 | // Gives fragments charges |
---|
71 | G4StatMFChannel * ChooseZ(const G4double A0, const G4double Z0, const G4double MeanT); |
---|
72 | |
---|
73 | G4double GetProbability(void) |
---|
74 | { return _Probability; } |
---|
75 | |
---|
76 | |
---|
77 | |
---|
78 | void SetPartitionFragment(const G4int anA) |
---|
79 | { |
---|
80 | _thePartition.push_back(anA); |
---|
81 | CoulombFreeEnergy(anA); |
---|
82 | } |
---|
83 | |
---|
84 | void Normalize(const G4double Normalization) |
---|
85 | { _Probability /= Normalization; } |
---|
86 | |
---|
87 | |
---|
88 | G4double CalcPartitionProbability(const G4double U, |
---|
89 | const G4double FreeInternalE0, |
---|
90 | const G4double SCompound); |
---|
91 | |
---|
92 | G4double GetTemperature(void) |
---|
93 | { |
---|
94 | return _Temperature; |
---|
95 | } |
---|
96 | |
---|
97 | G4double GetEntropy(void) |
---|
98 | { |
---|
99 | return _Entropy; |
---|
100 | } |
---|
101 | |
---|
102 | private: |
---|
103 | void CoulombFreeEnergy(const G4double anA); |
---|
104 | |
---|
105 | G4double CalcPartitionTemperature(const G4double U, |
---|
106 | const G4double FreeInternalE0); |
---|
107 | |
---|
108 | G4double GetPartitionEnergy(const G4double T); |
---|
109 | |
---|
110 | G4double GetCoulombEnergy(void); |
---|
111 | |
---|
112 | G4double GetDegeneracyFactor(const G4int A); |
---|
113 | |
---|
114 | G4double InvLevelDensity(const G4double Af) |
---|
115 | { |
---|
116 | // Calculate Inverse Density Level |
---|
117 | // Epsilon0*(1 + 3 /(Af - 1)) |
---|
118 | if (Af < 1.5) return 0.0; |
---|
119 | else return G4StatMFParameters::GetEpsilon0()*(1.0+3.0/(Af - 1.0)); |
---|
120 | } |
---|
121 | |
---|
122 | private: |
---|
123 | |
---|
124 | // A and Z of initial nucleus |
---|
125 | G4double theA; |
---|
126 | G4double theZ; |
---|
127 | |
---|
128 | // Partition probability |
---|
129 | G4double _Probability; |
---|
130 | |
---|
131 | // Partition temperature |
---|
132 | G4double _Temperature; |
---|
133 | |
---|
134 | // Partition entropy |
---|
135 | G4double _Entropy; |
---|
136 | |
---|
137 | // The partition itself |
---|
138 | std::vector<G4int> _thePartition; |
---|
139 | |
---|
140 | |
---|
141 | std::vector<G4double> _theCoulombFreeEnergy; |
---|
142 | |
---|
143 | }; |
---|
144 | |
---|
145 | #endif |
---|