source: trunk/source/processes/hadronic/models/de_excitation/gem_evaporation/include/G4GEMProbability.hh @ 1348

Last change on this file since 1348 was 1347, checked in by garnier, 14 years ago

geant4 tag 9.4

File size: 5.8 KB
Line 
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// $Id: G4GEMProbability.hh,v 1.6 2010/11/05 14:42:52 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-04-ref-00 $
28//
29//---------------------------------------------------------------------
30//
31// Geant4 header G4GEMProbability
32//
33//
34// Hadronic Process: Nuclear De-excitations
35// by V. Lara (Sept 2001)
36//
37// 18.05.2010 V.Ivanchenko trying to speedup the most slow method
38//            by usage of G4Pow, integer Z and A; moved constructor,
39//            destructor and virtual functions to source
40//
41
42#ifndef G4GEMProbability_h
43#define G4GEMProbability_h 1
44
45#include "G4VEmissionProbability.hh"
46#include "G4VLevelDensityParameter.hh"
47#include "G4EvaporationLevelDensityParameter.hh"
48#include "G4VCoulombBarrier.hh"
49#include "G4PairingCorrection.hh"
50
51class G4Pow;
52
53class G4GEMProbability : public G4VEmissionProbability
54{
55public:
56
57  // Default constructor - should not be used
58  G4GEMProbability();
59
60  // Only available constructor
61  G4GEMProbability(G4int anA, G4int aZ, G4double aSpin);
62   
63  virtual ~G4GEMProbability();
64
65  inline G4int GetZ_asInt(void) const { return theZ; }
66       
67  inline G4int GetA_asInt(void) const { return theA;}
68       
69  inline G4double GetZ(void) const { return theZ; }
70       
71  inline G4double GetA(void) const { return theA;}
72
73  inline G4double GetSpin(void) const { return Spin; }
74
75  inline G4double GetNormalization(void) const { return Normalization; }
76   
77  inline void SetCoulomBarrier(const G4VCoulombBarrier * aCoulombBarrierStrategy)
78  {
79    theCoulombBarrierPtr = aCoulombBarrierStrategy;
80  }
81
82  inline G4double GetCoulombBarrier(const G4Fragment& fragment) const 
83  {
84    G4double res = 0.0;
85    if (theCoulombBarrierPtr) 
86      {
87        G4int Acomp = fragment.GetA_asInt();
88        G4int Zcomp = fragment.GetZ_asInt();
89        res = theCoulombBarrierPtr->GetCoulombBarrier(Acomp-theA, Zcomp-theZ,
90          fragment.GetExcitationEnergy()-fPairCorr->GetPairingCorrection(Acomp,Zcomp));
91      }
92    return res;
93  }
94   
95  virtual G4double CalcAlphaParam(const G4Fragment & ) const;
96  virtual G4double CalcBetaParam(const G4Fragment & ) const;
97   
98protected:
99 
100  inline void SetExcitationEnergiesPtr(std::vector<G4double> * anExcitationEnergiesPtr) 
101  {
102    ExcitationEnergies = anExcitationEnergiesPtr;
103  }
104 
105  inline void SetExcitationSpinsPtr(std::vector<G4double> * anExcitationSpinsPtr)
106  {
107    ExcitationSpins = anExcitationSpinsPtr;
108  }
109
110  inline void SetExcitationLifetimesPtr(std::vector<G4double> * anExcitationLifetimesPtr)
111  {
112    ExcitationLifetimes = anExcitationLifetimesPtr;
113  }
114
115private:
116
117  // Copy constructor
118  G4GEMProbability(const G4GEMProbability &right);
119   
120  const G4GEMProbability & operator=(const G4GEMProbability &right);
121  G4bool operator==(const G4GEMProbability &right) const;
122  G4bool operator!=(const G4GEMProbability &right) const;
123   
124public:
125
126  G4double EmissionProbability(const G4Fragment & fragment, G4double anEnergy);
127 
128private:
129
130  G4double CalcProbability(const G4Fragment & fragment, G4double MaximalKineticEnergy,
131                           G4double V);
132
133  virtual G4double CCoeficient(G4double ) const;
134
135  inline G4double I0(G4double t);
136  inline G4double I1(G4double t, G4double tx);
137  inline G4double I2(G4double s, G4double sx);
138  G4double I3(G4double s, G4double sx);
139   
140  // Data Members
141
142  G4Pow*   fG4pow;
143  G4PairingCorrection* fPairCorr;
144   
145  G4VLevelDensityParameter * theEvapLDPptr;
146       
147  G4int theA;
148  G4int theZ;
149   
150  // Spin is fragment spin
151  G4double Spin;
152
153  // Coulomb Barrier
154  const G4VCoulombBarrier * theCoulombBarrierPtr;
155 
156  // Resonances Energy
157  std::vector<G4double> * ExcitationEnergies;
158   
159  // Resonances Spin
160  std::vector<G4double> * ExcitationSpins;
161
162  // Resonances half lifetime
163  std::vector<G4double> * ExcitationLifetimes;
164
165  // Normalization
166  G4double Normalization;
167   
168};
169
170inline G4double G4GEMProbability::I0(G4double t)
171{
172  return std::exp(t) - 1.0;
173}
174
175inline G4double G4GEMProbability::I1(G4double t, G4double tx)
176{
177  return (t - tx + 1.0)*std::exp(tx) - t - 1.0;
178}
179
180
181inline G4double G4GEMProbability::I2(G4double s, G4double sx)
182{
183  G4double S = 1.0/std::sqrt(s);
184  G4double Sx = 1.0/std::sqrt(sx);
185 
186  G4double p1 = S*S*S*( 1.0 + S*S*( 1.5 + 3.75*S*S) );
187  G4double p2 = Sx*Sx*Sx*( 1.0 + Sx*Sx*( 1.5 + 3.75*Sx*Sx) )*std::exp(sx-s);
188 
189  return p1-p2;
190}
191
192
193#endif
Note: See TracBrowser for help on using the repository browser.