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: G4VStatMFMacroCluster.hh,v 1.5 2006/08/19 19:55:09 dennis Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
29 | // |
---|
30 | // Hadronic Process: Nuclear De-excitations |
---|
31 | // by V. Lara |
---|
32 | |
---|
33 | |
---|
34 | #ifndef G4VStatMFMacroCluster_h |
---|
35 | #define G4VStatMFMacroCluster_h 1 |
---|
36 | |
---|
37 | #include "G4StatMFParameters.hh" |
---|
38 | #include "G4HadronicException.hh" |
---|
39 | |
---|
40 | class G4VStatMFMacroCluster { |
---|
41 | |
---|
42 | public: |
---|
43 | // Constructor |
---|
44 | G4VStatMFMacroCluster(const G4int Size) : |
---|
45 | theA(Size), |
---|
46 | _InvLevelDensity(0.0), |
---|
47 | _Entropy(0.0), |
---|
48 | theZARatio(0.0), |
---|
49 | _MeanMultiplicity(0.0), |
---|
50 | _Energy(0.0) |
---|
51 | { |
---|
52 | if (theA <= 0) throw G4HadronicException(__FILE__, __LINE__, |
---|
53 | "G4VStatMFMacroCluster::Constructor: Cluster's size must be >= 1"); |
---|
54 | _InvLevelDensity = CalcInvLevelDensity(); |
---|
55 | } |
---|
56 | |
---|
57 | |
---|
58 | // Destructor |
---|
59 | virtual ~G4VStatMFMacroCluster() {}; |
---|
60 | |
---|
61 | |
---|
62 | private: |
---|
63 | |
---|
64 | // Default constructor |
---|
65 | G4VStatMFMacroCluster() {}; |
---|
66 | |
---|
67 | // Copy constructor |
---|
68 | G4VStatMFMacroCluster(const G4VStatMFMacroCluster & right); |
---|
69 | |
---|
70 | // operators |
---|
71 | G4VStatMFMacroCluster & operator=(const G4VStatMFMacroCluster & right); |
---|
72 | |
---|
73 | public: |
---|
74 | G4bool operator==(const G4VStatMFMacroCluster & right) const; |
---|
75 | G4bool operator!=(const G4VStatMFMacroCluster & right) const; |
---|
76 | |
---|
77 | private: |
---|
78 | G4double CalcInvLevelDensity(void); |
---|
79 | |
---|
80 | public: |
---|
81 | |
---|
82 | virtual G4double CalcMeanMultiplicity(const G4double FreeVol, const G4double mu, |
---|
83 | const G4double nu, const G4double T) = 0; |
---|
84 | |
---|
85 | virtual G4double CalcZARatio(const G4double nu) = 0; |
---|
86 | |
---|
87 | G4double GetMeanMultiplicity(void) const { return _MeanMultiplicity; } |
---|
88 | |
---|
89 | virtual G4double CalcEnergy(const G4double T) = 0; |
---|
90 | |
---|
91 | virtual G4double CalcEntropy(const G4double T, const G4double FreeVol) = 0; |
---|
92 | |
---|
93 | protected: |
---|
94 | // Number of nucleons in the cluster |
---|
95 | G4int theA; |
---|
96 | |
---|
97 | // Inverse level density |
---|
98 | G4double _InvLevelDensity; |
---|
99 | |
---|
100 | // Entropy |
---|
101 | G4double _Entropy; |
---|
102 | |
---|
103 | // Z/A ratio |
---|
104 | G4double theZARatio; |
---|
105 | |
---|
106 | // Mean Multiplicity |
---|
107 | G4double _MeanMultiplicity; |
---|
108 | |
---|
109 | // Energy |
---|
110 | G4double _Energy; |
---|
111 | |
---|
112 | // ************************************************************************* |
---|
113 | public: |
---|
114 | |
---|
115 | G4double GetInvLevelDensity(void) const |
---|
116 | { return _InvLevelDensity; } |
---|
117 | |
---|
118 | void SetZARatio(const G4double value) |
---|
119 | { theZARatio = value; } |
---|
120 | |
---|
121 | G4double GetZARatio(void) const |
---|
122 | { return theZARatio; } |
---|
123 | |
---|
124 | |
---|
125 | void SetSize(const G4double value) |
---|
126 | { |
---|
127 | if (value <= 0.0) throw G4HadronicException(__FILE__, __LINE__, "G4VStatMFMacroCluster::SetSize: Cluster's size must be >= 1"); |
---|
128 | theA = G4int(value); |
---|
129 | _InvLevelDensity = CalcInvLevelDensity(); |
---|
130 | } |
---|
131 | |
---|
132 | G4double GetSize(void) const |
---|
133 | { return theA; } |
---|
134 | |
---|
135 | |
---|
136 | |
---|
137 | |
---|
138 | |
---|
139 | }; |
---|
140 | |
---|
141 | #endif |
---|