Geant4 Cross Reference

Cross-Referencing   Geant4
Geant4/processes/hadronic/models/de_excitation/multifragmentation/src/G4StatMFMicroCanonical.cc

Version: [ ReleaseNotes ] [ 1.0 ] [ 1.1 ] [ 2.0 ] [ 3.0 ] [ 3.1 ] [ 3.2 ] [ 4.0 ] [ 4.0.p1 ] [ 4.0.p2 ] [ 4.1 ] [ 4.1.p1 ] [ 5.0 ] [ 5.0.p1 ] [ 5.1 ] [ 5.1.p1 ] [ 5.2 ] [ 5.2.p1 ] [ 5.2.p2 ] [ 6.0 ] [ 6.0.p1 ] [ 6.1 ] [ 6.2 ] [ 6.2.p1 ] [ 6.2.p2 ] [ 7.0 ] [ 7.0.p1 ] [ 7.1 ] [ 7.1.p1 ] [ 8.0 ] [ 8.0.p1 ] [ 8.1 ] [ 8.1.p1 ] [ 8.1.p2 ] [ 8.2 ] [ 8.2.p1 ] [ 8.3 ] [ 8.3.p1 ] [ 8.3.p2 ] [ 9.0 ] [ 9.0.p1 ] [ 9.0.p2 ] [ 9.1 ] [ 9.1.p1 ] [ 9.1.p2 ] [ 9.1.p3 ] [ 9.2 ] [ 9.2.p1 ] [ 9.2.p2 ] [ 9.2.p3 ] [ 9.2.p4 ] [ 9.3 ] [ 9.3.p1 ] [ 9.3.p2 ] [ 9.4 ] [ 9.4.p1 ] [ 9.4.p2 ] [ 9.4.p3 ] [ 9.4.p4 ] [ 9.5 ] [ 9.5.p1 ] [ 9.5.p2 ] [ 9.6 ] [ 9.6.p1 ] [ 9.6.p2 ] [ 9.6.p3 ] [ 9.6.p4 ] [ 10.0 ] [ 10.0.p1 ] [ 10.0.p2 ] [ 10.0.p3 ] [ 10.0.p4 ] [ 10.1 ] [ 10.1.p1 ] [ 10.1.p2 ] [ 10.1.p3 ] [ 10.2 ] [ 10.2.p1 ] [ 10.2.p2 ] [ 10.2.p3 ] [ 10.3 ] [ 10.3.p1 ] [ 10.3.p2 ] [ 10.3.p3 ] [ 10.4 ] [ 10.4.p1 ] [ 10.4.p2 ] [ 10.4.p3 ] [ 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /processes/hadronic/models/de_excitation/multifragmentation/src/G4StatMFMicroCanonical.cc (Version 11.3.0) and /processes/hadronic/models/de_excitation/multifragmentation/src/G4StatMFMicroCanonical.cc (Version 9.5.p2)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                         3 // * License and Disclaimer                                           *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th      5 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
  6 // * the Geant4 Collaboration.  It is provided      6 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
  7 // * conditions of the Geant4 Software License      7 // * conditions of the Geant4 Software License,  included in the file *
  8 // * LICENSE and available at  http://cern.ch/      8 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
  9 // * include a list of copyright holders.           9 // * include a list of copyright holders.                             *
 10 // *                                               10 // *                                                                  *
 11 // * Neither the authors of this software syst     11 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     12 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     13 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     14 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file      15 // * use.  Please see the license in the file  LICENSE  and URL above *
 16 // * for the full disclaimer and the limitatio     16 // * for the full disclaimer and the limitation of liability.         *
 17 // *                                               17 // *                                                                  *
 18 // * This  code  implementation is the result      18 // * This  code  implementation is the result of  the  scientific and *
 19 // * technical work of the GEANT4 collaboratio     19 // * technical work of the GEANT4 collaboration.                      *
 20 // * By using,  copying,  modifying or  distri     20 // * By using,  copying,  modifying or  distributing the software (or *
 21 // * any work based  on the software)  you  ag     21 // * any work based  on the software)  you  agree  to acknowledge its *
 22 // * use  in  resulting  scientific  publicati     22 // * use  in  resulting  scientific  publications,  and indicate your *
 23 // * acceptance of all terms of the Geant4 Sof     23 // * acceptance of all terms of the Geant4 Software license.          *
 24 // *******************************************     24 // ********************************************************************
 25 //                                                 25 //
 26 //                                                 26 //
                                                   >>  27 // $Id: G4StatMFMicroCanonical.cc,v 1.7 2008-07-25 11:20:47 vnivanch Exp $
                                                   >>  28 // GEANT4 tag $Name: not supported by cvs2svn $
 27 //                                                 29 //
 28 // Hadronic Process: Nuclear De-excitations        30 // Hadronic Process: Nuclear De-excitations
 29 // by V. Lara                                      31 // by V. Lara
 30                                                    32 
 31 #include <numeric>                             << 
 32                                                    33 
 33 #include "G4StatMFMicroCanonical.hh"               34 #include "G4StatMFMicroCanonical.hh"
 34 #include "G4PhysicalConstants.hh"              << 
 35 #include "G4SystemOfUnits.hh"                  << 
 36 #include "G4HadronicException.hh"                  35 #include "G4HadronicException.hh"
 37 #include "G4Pow.hh"                                36 #include "G4Pow.hh"
                                                   >>  37 #include <numeric>
 38                                                    38 
 39 // constructor                                     39 // constructor
 40 G4StatMFMicroCanonical::G4StatMFMicroCanonical     40 G4StatMFMicroCanonical::G4StatMFMicroCanonical(G4Fragment const & theFragment) 
 41 {                                                  41 {
 42   // Perform class initialization              <<  42     // Perform class initialization
 43   Initialize(theFragment);                     <<  43     Initialize(theFragment);
                                                   >>  44 
 44 }                                                  45 }
 45                                                    46 
                                                   >>  47 
 46 // destructor                                      48 // destructor
 47 G4StatMFMicroCanonical::~G4StatMFMicroCanonica     49 G4StatMFMicroCanonical::~G4StatMFMicroCanonical() 
 48 {                                                  50 {
 49   // garbage collection                            51   // garbage collection
 50   if (!_ThePartitionManagerVector.empty()) {       52   if (!_ThePartitionManagerVector.empty()) {
 51     std::for_each(_ThePartitionManagerVector.b     53     std::for_each(_ThePartitionManagerVector.begin(),
 52         _ThePartitionManagerVector.end(),          54         _ThePartitionManagerVector.end(),
 53         DeleteFragment());                         55         DeleteFragment());
 54   }                                                56   }
 55 }                                                  57 }
 56                                                    58 
                                                   >>  59 
                                                   >>  60 
                                                   >>  61 // Initialization method
                                                   >>  62 
 57 void G4StatMFMicroCanonical::Initialize(const      63 void G4StatMFMicroCanonical::Initialize(const G4Fragment & theFragment) 
 58 {                                                  64 {
 59                                                    65   
 60   std::vector<G4StatMFMicroManager*>::iterator     66   std::vector<G4StatMFMicroManager*>::iterator it;
 61                                                    67 
 62   // Excitation Energy                             68   // Excitation Energy 
 63   G4double U = theFragment.GetExcitationEnergy     69   G4double U = theFragment.GetExcitationEnergy();
 64                                                    70 
 65   G4int A = theFragment.GetA_asInt();              71   G4int A = theFragment.GetA_asInt();
 66   G4int Z = theFragment.GetZ_asInt();              72   G4int Z = theFragment.GetZ_asInt();
 67   G4double x = 1.0 - 2.0*Z/G4double(A);            73   G4double x = 1.0 - 2.0*Z/G4double(A);
 68   G4Pow* g4calc = G4Pow::GetInstance();        <<  74   G4Pow* g4pow = G4Pow::GetInstance();
 69                                                    75     
 70   // Configuration temperature                     76   // Configuration temperature
 71   G4double TConfiguration = std::sqrt(8.0*U/G4     77   G4double TConfiguration = std::sqrt(8.0*U/G4double(A));
 72                                                    78   
 73   // Free internal energy at Temperature T = 0     79   // Free internal energy at Temperature T = 0
 74   __FreeInternalE0 = A*(                           80   __FreeInternalE0 = A*( 
 75       // Volume term (for T = 0)                   81       // Volume term (for T = 0)
 76       -G4StatMFParameters::GetE0() +               82       -G4StatMFParameters::GetE0() +  
 77       // Symmetry term                             83       // Symmetry term
 78       G4StatMFParameters::GetGamma0()*x*x          84       G4StatMFParameters::GetGamma0()*x*x 
 79       ) +                                          85       ) + 
 80     // Surface term (for T = 0)                    86     // Surface term (for T = 0)
 81     G4StatMFParameters::GetBeta0()*g4calc->Z23 <<  87     G4StatMFParameters::GetBeta0()*g4pow->Z23(A) + 
 82     // Coulomb term                                88     // Coulomb term 
 83     elm_coupling*0.6*Z*Z/(G4StatMFParameters:: <<  89     elm_coupling*(3.0/5.0)*Z*Z/(G4StatMFParameters::Getr0()*g4pow->Z13(A));
 84                                                    90   
 85   // Statistical weight                            91   // Statistical weight
 86   G4double W = 0.0;                                92   G4double W = 0.0;
 87                                                    93   
                                                   >>  94   
 88   // Mean breakup multiplicity                     95   // Mean breakup multiplicity
 89   __MeanMultiplicity = 0.0;                        96   __MeanMultiplicity = 0.0;
 90                                                    97   
 91   // Mean channel temperature                      98   // Mean channel temperature
 92   __MeanTemperature = 0.0;                         99   __MeanTemperature = 0.0;
 93                                                   100   
 94   // Mean channel entropy                         101   // Mean channel entropy
 95   __MeanEntropy = 0.0;                            102   __MeanEntropy = 0.0;
 96                                                   103   
 97   // Calculate entropy of compound nucleus        104   // Calculate entropy of compound nucleus
 98   G4double SCompoundNucleus = CalcEntropyOfCom    105   G4double SCompoundNucleus = CalcEntropyOfCompoundNucleus(theFragment,TConfiguration);
 99                                                   106   
100   // Statistical weight of compound nucleus       107   // Statistical weight of compound nucleus
101   _WCompoundNucleus = 1.0;                     << 108   _WCompoundNucleus = 1.0; // std::exp(SCompoundNucleus - SCompoundNucleus);
102                                                   109   
103   W += _WCompoundNucleus;                         110   W += _WCompoundNucleus;
104                                                << 111   
                                                   >> 112   
                                                   >> 113   
105   // Maximal fragment multiplicity allowed in     114   // Maximal fragment multiplicity allowed in direct simulation
106   G4int MaxMult = G4StatMFMicroCanonical::MaxA    115   G4int MaxMult = G4StatMFMicroCanonical::MaxAllowedMultiplicity;
107   if (A > 110) MaxMult -= 1;                      116   if (A > 110) MaxMult -= 1;
108                                                   117   
109   for (G4int im = 2; im <= MaxMult; im++) {    << 118   
                                                   >> 119   
                                                   >> 120   for (G4int m = 2; m <= MaxMult; m++) {
110     G4StatMFMicroManager * aMicroManager =        121     G4StatMFMicroManager * aMicroManager = 
111       new G4StatMFMicroManager(theFragment,im, << 122       new G4StatMFMicroManager(theFragment,m,__FreeInternalE0,SCompoundNucleus);
112     _ThePartitionManagerVector.push_back(aMicr    123     _ThePartitionManagerVector.push_back(aMicroManager);
113   }                                               124   }
114                                                   125   
115   // W is the total probability                   126   // W is the total probability
116   W = std::accumulate(_ThePartitionManagerVect    127   W = std::accumulate(_ThePartitionManagerVector.begin(),
117           _ThePartitionManagerVector.end(),    << 128       _ThePartitionManagerVector.end(),
118           W, [](const G4double& running_total, << 129       W,SumProbabilities());
119                             G4StatMFMicroManag << 
120                          {                     << 
121                return running_total + manager- << 
122              } );                              << 
123                                                   130   
124   // Normalization of statistical weights         131   // Normalization of statistical weights
125   for (it =  _ThePartitionManagerVector.begin(    132   for (it =  _ThePartitionManagerVector.begin(); it !=  _ThePartitionManagerVector.end(); ++it) 
126     {                                             133     {
127       (*it)->Normalize(W);                        134       (*it)->Normalize(W);
128     }                                             135     }
129                                                   136 
130   _WCompoundNucleus /= W;                         137   _WCompoundNucleus /= W;
131                                                   138   
132   __MeanMultiplicity += 1.0 * _WCompoundNucleu    139   __MeanMultiplicity += 1.0 * _WCompoundNucleus;
133   __MeanTemperature += TConfiguration * _WComp    140   __MeanTemperature += TConfiguration * _WCompoundNucleus;
134   __MeanEntropy += SCompoundNucleus * _WCompou    141   __MeanEntropy += SCompoundNucleus * _WCompoundNucleus;
135                                                   142   
                                                   >> 143 
136   for (it =  _ThePartitionManagerVector.begin(    144   for (it =  _ThePartitionManagerVector.begin(); it !=  _ThePartitionManagerVector.end(); ++it) 
137     {                                             145     {
138       __MeanMultiplicity += (*it)->GetMeanMult    146       __MeanMultiplicity += (*it)->GetMeanMultiplicity();
139       __MeanTemperature += (*it)->GetMeanTempe    147       __MeanTemperature += (*it)->GetMeanTemperature();
140       __MeanEntropy += (*it)->GetMeanEntropy()    148       __MeanEntropy += (*it)->GetMeanEntropy();
141     }                                             149     }
142                                                   150   
143   return;                                         151   return;
144 }                                                 152 }
145                                                   153 
                                                   >> 154 
146 G4double G4StatMFMicroCanonical::CalcFreeInter    155 G4double G4StatMFMicroCanonical::CalcFreeInternalEnergy(const G4Fragment & theFragment, 
147               G4double T)                         156               G4double T)
148 {                                                 157 {
149   G4int A = theFragment.GetA_asInt();             158   G4int A = theFragment.GetA_asInt();
150   G4int Z = theFragment.GetZ_asInt();             159   G4int Z = theFragment.GetZ_asInt();
151   G4double A13 = G4Pow::GetInstance()->Z13(A);    160   G4double A13 = G4Pow::GetInstance()->Z13(A);
152                                                   161   
153   G4double InvLevelDensityPar = G4StatMFParame << 162   G4double InvLevelDensityPar = G4StatMFParameters::GetEpsilon0()*(1.0 + 3.0/G4double(A-1));
154     *(1.0 + 3.0/G4double(A-1));                << 
155                                                   163   
156   G4double VolumeTerm = (-G4StatMFParameters::    164   G4double VolumeTerm = (-G4StatMFParameters::GetE0()+T*T/InvLevelDensityPar)*A;
157                                                   165   
158   G4double SymmetryTerm = G4StatMFParameters:: << 166   G4double SymmetryTerm = G4StatMFParameters::GetGamma0()*(A - 2*Z)*(A - 2*Z)/G4double(A);
159     *(A - 2*Z)*(A - 2*Z)/G4double(A);          << 
160                                                   167   
161   G4double SurfaceTerm = (G4StatMFParameters:: << 168   G4double SurfaceTerm = (G4StatMFParameters::Beta(T)-T*G4StatMFParameters::DBetaDT(T))*A13*A13;
162         - T*G4StatMFParameters::DBetaDT(T))*A1 << 
163                                                   169   
164   G4double CoulombTerm = elm_coupling*0.6*Z*Z/ << 170   G4double CoulombTerm = elm_coupling*(3.0/5.0)*Z*Z/(G4StatMFParameters::Getr0()*A13);
165                                                   171   
166   return VolumeTerm + SymmetryTerm + SurfaceTe    172   return VolumeTerm + SymmetryTerm + SurfaceTerm + CoulombTerm;
167 }                                                 173 }
168                                                   174 
169 G4double                                          175 G4double 
170 G4StatMFMicroCanonical::CalcEntropyOfCompoundN    176 G4StatMFMicroCanonical::CalcEntropyOfCompoundNucleus(const G4Fragment & theFragment,
171                  G4double & TConf)                177                  G4double & TConf)
172   // Calculates Temperature and Entropy of com    178   // Calculates Temperature and Entropy of compound nucleus
173 {                                                 179 {
174   G4int A = theFragment.GetA_asInt();             180   G4int A = theFragment.GetA_asInt();
                                                   >> 181   //    const G4double Z = theFragment.GetZ();
175   G4double U = theFragment.GetExcitationEnergy    182   G4double U = theFragment.GetExcitationEnergy();
176   G4double A13 = G4Pow::GetInstance()->Z13(A);    183   G4double A13 = G4Pow::GetInstance()->Z13(A);
177                                                   184   
178   G4double Ta = std::max(std::sqrt(U/(0.125*A)    185   G4double Ta = std::max(std::sqrt(U/(0.125*A)),0.0012*MeV); 
179   G4double Tb = Ta;                               186   G4double Tb = Ta;
180                                                   187   
181   G4double ECompoundNucleus = CalcFreeInternal    188   G4double ECompoundNucleus = CalcFreeInternalEnergy(theFragment,Ta);
182   G4double Da = (U+__FreeInternalE0-ECompoundN    189   G4double Da = (U+__FreeInternalE0-ECompoundNucleus)/U;
183   G4double Db = 0.0;                              190   G4double Db = 0.0;
184                                                   191     
185   G4double InvLevelDensity = CalcInvLevelDensi << 192   G4double InvLevelDensity = CalcInvLevelDensity(static_cast<G4int>(A));
186                                                   193   
187   // bracketing the solution                      194   // bracketing the solution
188   if (Da == 0.0) {                                195   if (Da == 0.0) {
189     TConf = Ta;                                   196     TConf = Ta;
190     return 2*Ta*A/InvLevelDensity - G4StatMFPa    197     return 2*Ta*A/InvLevelDensity - G4StatMFParameters::DBetaDT(Ta)*A13*A13;
191   } else if (Da < 0.0) {                          198   } else if (Da < 0.0) {
192     do {                                          199     do {
193       Tb -= 0.5*Tb;                               200       Tb -= 0.5*Tb;
194       ECompoundNucleus = CalcFreeInternalEnerg    201       ECompoundNucleus = CalcFreeInternalEnergy(theFragment,Tb);
195       Db = (U+__FreeInternalE0-ECompoundNucleu    202       Db = (U+__FreeInternalE0-ECompoundNucleus)/U;
196     } while (Db < 0.0);                           203     } while (Db < 0.0);
197   } else {                                        204   } else {
198     do {                                          205     do {
199       Tb += 0.5*Tb;                               206       Tb += 0.5*Tb;
200       ECompoundNucleus = CalcFreeInternalEnerg    207       ECompoundNucleus = CalcFreeInternalEnergy(theFragment,Tb);
201       Db = (U+__FreeInternalE0-ECompoundNucleu    208       Db = (U+__FreeInternalE0-ECompoundNucleus)/U;
202     } while (Db > 0.0);                           209     } while (Db > 0.0);
203   }                                               210   }
204                                                   211   
205   G4double eps = 1.0e-14 * std::abs(Tb-Ta);    << 212   G4double eps = 1.0e-14 * std::fabs(Tb-Ta);
206                                                   213   
207   for (G4int i = 0; i < 1000; i++) {              214   for (G4int i = 0; i < 1000; i++) {
208     G4double Tc = (Ta+Tb)*0.5;                 << 215     G4double Tc = (Ta+Tb)/2.0;
209     if (std::abs(Ta-Tb) <= eps) {                 216     if (std::abs(Ta-Tb) <= eps) {
210       TConf = Tc;                                 217       TConf = Tc;
211       return 2*Tc*A/InvLevelDensity - G4StatMF    218       return 2*Tc*A/InvLevelDensity - G4StatMFParameters::DBetaDT(Tc)*A13*A13;
212     }                                             219     }
213     ECompoundNucleus = CalcFreeInternalEnergy(    220     ECompoundNucleus = CalcFreeInternalEnergy(theFragment,Tc);
214     G4double Dc = (U+__FreeInternalE0-ECompoun    221     G4double Dc = (U+__FreeInternalE0-ECompoundNucleus)/U;
215                                                   222     
216     if (Dc == 0.0) {                              223     if (Dc == 0.0) {
217       TConf = Tc;                                 224       TConf = Tc;
218       return 2*Tc*A/InvLevelDensity - G4StatMF    225       return 2*Tc*A/InvLevelDensity - G4StatMFParameters::DBetaDT(Tc)*A13*A13;
219     }                                             226     }
220                                                   227     
221     if (Da*Dc < 0.0) {                            228     if (Da*Dc < 0.0) {
222       Tb = Tc;                                    229       Tb = Tc;
223       Db = Dc;                                    230       Db = Dc;
224     } else {                                      231     } else {
225       Ta = Tc;                                    232       Ta = Tc;
226       Da = Dc;                                    233       Da = Dc;
227     }                                             234     } 
228   }                                               235   }
229                                                   236   
230   G4cout <<                                    << 237   G4cerr << 
231     "G4StatMFMicrocanoncal::CalcEntropyOfCompo    238     "G4StatMFMicrocanoncal::CalcEntropyOfCompoundNucleus: I can't calculate the temperature" 
232    << G4endl;                                     239    << G4endl;
233                                                   240   
234   return 0.0;                                     241   return 0.0;
235 }                                                 242 }
236                                                   243 
237 G4StatMFChannel *  G4StatMFMicroCanonical::Cho    244 G4StatMFChannel *  G4StatMFMicroCanonical::ChooseAandZ(const G4Fragment & theFragment)
238   // Choice of fragment atomic numbers and cha    245   // Choice of fragment atomic numbers and charges 
239 {                                                 246 {
240   // We choose a multiplicity (1,2,3,...) and  << 247     // We choose a multiplicity (1,2,3,...) and then a channel
241   G4double RandNumber = G4UniformRand();       << 248     G4double RandNumber = G4UniformRand();
242                                                   249 
243   if (RandNumber < _WCompoundNucleus) {        << 250     if (RandNumber < _WCompoundNucleus) { 
244                                                   251   
245     G4StatMFChannel * aChannel = new G4StatMFC << 252   G4StatMFChannel * aChannel = new G4StatMFChannel;
246     aChannel->CreateFragment(theFragment.GetA_ << 253   aChannel->CreateFragment(theFragment.GetA_asInt(),theFragment.GetZ_asInt());
247     return aChannel;                           << 254   return aChannel;
248                                                   255   
249   } else {                                     << 256     } else {
250                                                   257   
251     G4double AccumWeight = _WCompoundNucleus;  << 258   G4double AccumWeight = _WCompoundNucleus;
252     std::vector<G4StatMFMicroManager*>::iterat << 259   std::vector<G4StatMFMicroManager*>::iterator it;
253     for (it = _ThePartitionManagerVector.begin << 260   for (it = _ThePartitionManagerVector.begin(); it != _ThePartitionManagerVector.end(); ++it) {
254       AccumWeight += (*it)->GetProbability();  << 261       AccumWeight += (*it)->GetProbability();
255       if (RandNumber < AccumWeight) {          << 262       if (RandNumber < AccumWeight) {
256   return (*it)->ChooseChannel(theFragment.GetA << 263     return (*it)->ChooseChannel(theFragment.GetA(),theFragment.GetZ(),__MeanTemperature);
257       }                                        << 264       }
                                                   >> 265   }
                                                   >> 266   throw G4HadronicException(__FILE__, __LINE__, "G4StatMFMicroCanonical::ChooseAandZ: wrong normalization!");
258     }                                             267     }
259     throw G4HadronicException(__FILE__, __LINE << 
260   }                                            << 
261                                                   268 
262   return 0;                                    << 269     return 0; 
263 }                                                 270 }
264                                                   271 
265 G4double G4StatMFMicroCanonical::CalcInvLevelD    272 G4double G4StatMFMicroCanonical::CalcInvLevelDensity(G4int anA)
266 {                                                 273 {
267   G4double res = 0.0;                          << 274     // Calculate Inverse Density Level
268   if (anA > 1) {                               << 275     // Epsilon0*(1 + 3 /(Af - 1))
269     res = G4StatMFParameters::GetEpsilon0()*(1 << 276     if (anA == 1) return 0.0;
270   }                                            << 277     else return
271   return res;                                  << 278        G4StatMFParameters::GetEpsilon0()*(1.0+3.0/(anA - 1.0));
272 }                                                 279 }
273                                                   280