Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4Abla.hh
Go to the documentation of this file.
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 // ABLAXX statistical de-excitation model
27 // Pekka Kaitaniemi, HIP (translation)
28 // Christelle Schmidt, IPNL (fission code)
29 // Davide Mancusi, CEA (contact person INCL/ABLA)
30 // Aatos Heikkinen, HIP (project coordination)
31 //
32 #define ABLAXX_IN_GEANT4_MODE 1
33 
34 #include "globals.hh"
35 
36 #ifndef G4Abla_hh
37 #define G4Abla_hh 1
38 
39 #ifdef ABLAXX_IN_GEANT4_MODE
40 #include "globals.hh"
41 #else
42 #include "G4INCLGeant4Compat.hh"
43 #include "G4INCLConfig.hh"
44 #endif
45 
46 #include "G4AblaRandom.hh"
47 #include "G4AblaDataDefs.hh"
48 #include "G4AblaFissionBase.hh"
49 
50 /**
51  * Class containing ABLA de-excitation code.
52  */
53 
54 class G4Abla {
55 
56 public:
57  /**
58  * This constructor is used by standalone test driver and the Geant4 interface.
59  *
60  * @param aHazard random seeds
61  * @param aVolant data structure for ABLA output
62  * @param aVarNtp data structure for transfering ABLA output to Geant4 interface
63  */
64 #ifdef ABLAXX_IN_GEANT4_MODE
65  G4Abla(G4Volant *aVolant, G4VarNtp *aVarntp);
66 #else
67  G4Abla(G4INCL::Config *config, G4Volant *aVolant, G4VarNtp *aVarntp);
68 #endif
69 
70  /**
71  * Basic destructor.
72  */
73  ~G4Abla();
74 
75  /**
76  * Set verbosity level.
77  */
78  void setVerboseLevel(G4int level);
79 
80  /**
81  * Get the internal output data structure pointer.
82  */
84  return volant;
85  }
86 
87  /**
88  * Main interface to the de-excitation code.
89  *
90  * @param nucleusA mass number of the nucleus
91  * @param nucleusZ charge number of the nucleus
92  * @param nucleusMass mass of the nucleus
93  * @param excitationEnergy excitation energy of the nucleus
94  * @param angularMomentum angular momentum of the nucleus (produced as output by INCL4)
95  * @param recoilEnergy recoil energy of the nucleus
96  * @param momX momentum x-component
97  * @param momY momentum y-component
98  * @param momZ momentum z-component
99  * @param eventnumber number of the event
100  */
101  void breakItUp(G4int nucleusA, G4int nucleusZ, G4double nucleusMass, G4double excitationEnergy,
102  G4double angularMomentum, G4double recoilEnergy, G4double momX, G4double momY, G4double momZ,
103  G4int eventnumber);
104 
105  // Evaporation
106 public:
107  /**
108  * Initialize ABLA evaporation code.
109  *
110  */
111  void initEvapora();
112 
113  /**
114  * Coefficient of collective enhancement including damping
115  * Input: z,a,bet,sig,u
116  * Output: qr - collective enhancement factor
117  * See junghans et al., nucl. phys. a 629 (1998) 635
118  * @param z charge number
119  * @param a mass number
120  * @param bet beta deformation
121  * @param sig perpendicular spin cut-off factor
122  * @param u Energy
123  * @return Coefficient of collective enhancement
124  */
125  void qrot(G4double z, G4double a, G4double bet, G4double sig, G4double u, G4double *qr);
126 
127  /**
128  * Model de la goutte liquide de c. f. weizsacker.
129  * usually an obsolete option
130  */
131  void mglw(G4double a, G4double z, G4double *el);
132 
133  /**
134  * Mglms
135  */
136  void mglms(G4double a, G4double z, G4int refopt4, G4double *el);
137 
138  /**
139  *
140  */
141  G4double spdef(G4int a, G4int z, G4int optxfis);
142 
143  /**
144  * Calculation of fissility parameter
145  */
146  G4double fissility(int a,int z, int optxfis);
147 
148  /**
149  * Main evaporation routine.
150  */
151  void evapora(G4double zprf, G4double aprf, G4double *ee_par, G4double jprf,
152  G4double *zf_par, G4double *af_par, G4double *mtota_par,
153  G4double *pleva_par, G4double *pxeva_par, G4double *pyeva_par,
154  G4int *ff_par, G4int *inttype_par, G4int *inum_par);
155 
156  /**
157  * Calculation of particle emission probabilities.
158  */
159  void direct(G4double zprf,G4double a, G4double ee, G4double jprf,
160  G4double *probp_par, G4double *probn_par, G4double *proba_par,
161  G4double *probf_par, G4double *ptotl_par, G4double *sn_par, G4double *sbp_par, G4double *sba_par, G4double *ecn_par,
162  G4double *ecp_par,G4double *eca_par, G4double *bp_par, G4double *ba_par, G4int, G4int inum, G4int itest);
163 
164  /**
165  * Level density parameters.
166  */
167  void densniv(G4double a, G4double z, G4double ee, G4double esous, G4double *dens, G4double bshell, G4double bs, G4double bk,
168  G4double *temp, G4int optshp, G4int optcol, G4double defbet);
169 
170  /**
171  * This subroutine calculates the fission barriers
172  * of the liquid-drop model of Myers and Swiatecki (1967).
173  * Analytic parameterization of Dahlinger 1982
174  * replaces tables. Barrier heights from Myers and Swiatecki
175  */
176  G4double bfms67(G4double zms, G4double ams);
177 
178  /**
179  * This subroutine calculates the ordinary legendre polynomials of
180  * order 0 to n-1 of argument x and stores them in the vector pl.
181  * They are calculated by recursion relation from the first two
182  * polynomials.
183  * Written by A.J.Sierk LANL t-9 February, 1984
184  */
185  void lpoly(G4double x, G4int n, G4double pl[]);
186 
187  /**
188  * This function will calculate the liquid-drop nuclear mass for spheri
189  * configuration according to the preprint NUCLEAR GROUND-STATE
190  * MASSES and DEFORMATIONS by P. Mo"ller et al. from August 16, 1993 p.
191  * All constants are taken from this publication for consistency.
192  */
193  G4double eflmac(G4int ia, G4int iz, G4int flag, G4int optshp);
194 
195  /**
196  * Procedure for calculating the pairing correction to the binding
197  * energy of a specific nucleus.
198  */
199  void appariem(G4double a, G4double z, G4double *del);
200 
201  /**
202  * PROCEDURE FOR CALCULATING THE PARITY OF THE NUMBER N.
203  * RETURNS -1 IF N IS ODD AND +1 IF N IS EVEN
204  */
205  void parite(G4double n, G4double *par);
206 
207  /**
208  * RISE TIME IN WHICH THE FISSION WIDTH HAS REACHED
209  * 90 PERCENT OF ITS FINAL VALUE
210  */
211  G4double tau(G4double bet, G4double homega, G4double ef, G4double t);
212 
213  /**
214  * KRAMERS FAKTOR - REDUCTION OF THE FISSION PROBABILITY
215  * INDEPENDENT OF EXCITATION ENERGY
216  */
217  G4double cram(G4double bet, G4double homega);
218 
219  /**
220  * CALCULATION OF THE SURFACE BS OR CURVATURE BK OF A NUCLEUS
221  * RELATIVE TO THE SPHERICAL CONFIGURATION
222  * BASED ON MYERS, DROPLET MODEL FOR ARBITRARY SHAPES
223  */
224  G4double bipol(int iflag, G4double y);
225 
226  /**
227  * THIS SUBROUTINE RETURNS THE BARRIER HEIGHT BFIS, THE
228  * GROUND-STATE ENERGY SEGS, IN MEV, AND THE ANGULAR MOMENTUM
229  * AT WHICH THE FISSION BARRIER DISAPPEARS, LMAX, IN UNITS OF
230  * H-BAR, WHEN CALLED WITH INTEGER AGUMENTS IZ, THE ATOMIC
231  * NUMBER, IA, THE ATOMIC MASS NUMBER, AND IL, THE ANGULAR
232  * MOMENTUM IN UNITS OF H-BAR. (PLANCK'S CONSTANT DIVIDED BY
233  * 2*PI).
234  */
235  void barfit(G4int iz, G4int ia, G4int il, G4double *sbfis, G4double *segs, G4double *selmax);
236 
237  /**
238  * Random numbers.
239  */
240  G4double haz(G4int k);
241  void standardRandom(G4double *rndm, G4long *seed);
242 
243  /**
244  * TIRAGE ALEATOIRE DANS UNE EXPONENTIELLLE : Y=EXP(-X/T)
245  */
247 
248  /**
249  * DISTRIBUTION DE MAXWELL
250  */
251  G4double fd(G4double E);
252 
253  /**
254  *FONCTION INTEGRALE DE FD(E)
255  */
256  G4double f(G4double E);
257 
258  /**
259  * tirage aleatoire dans une maxwellienne
260  */
262 
263  /**
264  *
265  */
267 
268  /**
269  *
270  */
271  void guet(G4double *x_par, G4double *z_par, G4double *find_par);
272 
273 public:
274  // Coordinate system transformations:
275  void lorab(G4double gam, G4double eta, G4double ein, G4double pin[],
276  G4double *eout, G4double pout[]);
277 
278  void translab(G4double gamrem, G4double etrem, G4double csrem[4], G4int nopart, G4int ndec);
279  void translabpf(G4double masse1, G4double t1, G4double p1, G4double ctet1,
280  G4double phi1, G4double gamrem, G4double etrem, G4double R[][4],
281  G4double *plab1, G4double *gam1, G4double *eta1, G4double csdir[]);
282 
283  void rotab(G4double R[4][4], G4double pin[4], G4double pout[4]);
284 
285  // Utils
286  G4int min(G4int a, G4int b);
288  G4int max(G4int a, G4int b);
290 
291  G4int nint(G4double number);
292  G4int secnds(G4int x);
293  G4int mod(G4int a, G4int b);
301  return ec2sub;
302  }
303 
304 private:
305  G4int verboseLevel;
306  G4int ilast;
307 
308  G4AblaFissionBase *fissionModel;
309  G4Pace *pace;
310  G4Ald *ald;
311  G4Eenuc *eenuc;
312  G4Ec2sub *ec2sub;
313  G4Ecld *ecld;
314  G4Fb *fb;
315  G4Fiss *fiss;
316  G4Opt *opt;
317  G4Volant *volant;
318  G4VarNtp *varntp;
319 #ifndef ABLAXX_IN_GEANT4_MODE
320  G4INCL::Config *theConfig;
321 #endif
322 };
323 
324 #endif
Definition: G4Abla.hh:54
void parite(G4double n, G4double *par)
Definition: G4Abla.cc:2561
G4double eflmac(G4int ia, G4int iz, G4int flag, G4int optshp)
Definition: G4Abla.cc:2385
void setVerboseLevel(G4int level)
Definition: G4Abla.cc:76
G4Abla(G4Volant *aVolant, G4VarNtp *aVarntp)
Definition: G4Abla.cc:45
G4Volant * getVolant()
Definition: G4Abla.hh:83
void lorab(G4double gam, G4double eta, G4double ein, G4double pin[], G4double *eout, G4double pout[])
Definition: G4Abla.cc:3489
G4int nint(G4double number)
Definition: G4Abla.cc:3631
G4double utilabs(G4double a)
Definition: G4Abla.cc:3733
G4double z
Definition: TRTMaterials.hh:39
G4double haz(G4int k)
Definition: G4Abla.cc:3520
G4Ec2sub * getFrldmTable()
Definition: G4Abla.hh:300
void translabpf(G4double masse1, G4double t1, G4double p1, G4double ctet1, G4double phi1, G4double gamrem, G4double etrem, G4double R[][4], G4double *plab1, G4double *gam1, G4double *eta1, G4double csdir[])
Definition: G4Abla.cc:3428
void mglms(G4double a, G4double z, G4int refopt4, G4double *el)
Definition: G4Abla.cc:971
long G4long
Definition: G4Types.hh:80
G4double fmaxhaz(G4double T)
Definition: G4Abla.cc:3032
void lpoly(G4double x, G4int n, G4double pl[])
Definition: G4Abla.cc:2367
function bk(X)
Definition: hijing1.383.f:5001
G4double fissility(int a, int z, int optxfis)
Definition: G4Abla.cc:1064
G4double cram(G4double bet, G4double homega)
Definition: G4Abla.cc:2615
void direct(G4double zprf, G4double a, G4double ee, G4double jprf, G4double *probp_par, G4double *probn_par, G4double *proba_par, G4double *probf_par, G4double *ptotl_par, G4double *sn_par, G4double *sbp_par, G4double *sba_par, G4double *ecn_par, G4double *ecp_par, G4double *eca_par, G4double *bp_par, G4double *ba_par, G4int, G4int inum, G4int itest)
Definition: G4Abla.cc:1457
int G4int
Definition: G4Types.hh:78
void mglw(G4double a, G4double z, G4double *el)
Definition: G4Abla.cc:944
G4int mod(G4int a, G4int b)
Definition: G4Abla.cc:3675
void evapora(G4double zprf, G4double aprf, G4double *ee_par, G4double jprf, G4double *zf_par, G4double *af_par, G4double *mtota_par, G4double *pleva_par, G4double *pxeva_par, G4double *pyeva_par, G4int *ff_par, G4int *inttype_par, G4int *inum_par)
Definition: G4Abla.cc:1098
void densniv(G4double a, G4double z, G4double ee, G4double esous, G4double *dens, G4double bshell, G4double bs, G4double bk, G4double *temp, G4int optshp, G4int optcol, G4double defbet)
Definition: G4Abla.cc:2127
G4double spdef(G4int a, G4int z, G4int optxfis)
Definition: G4Abla.cc:1014
void breakItUp(G4int nucleusA, G4int nucleusZ, G4double nucleusMass, G4double excitationEnergy, G4double angularMomentum, G4double recoilEnergy, G4double momX, G4double momY, G4double momZ, G4int eventnumber)
Definition: G4Abla.cc:102
tuple pl
Definition: readPY.py:5
G4double iz
Definition: TRTMaterials.hh:39
G4int idnint(G4double value)
Definition: G4Abla.cc:3713
G4int idint(G4double a)
Definition: G4Abla.cc:3699
const G4int n
double precision function rndm(RDUMMY)
Definition: dpm25nulib.f:1460
~G4Abla()
Definition: G4Abla.cc:82
void standardRandom(G4double *rndm, G4long *seed)
G4double bipol(int iflag, G4double y)
Definition: G4Abla.cc:2632
void translab(G4double gamrem, G4double etrem, G4double csrem[4], G4int nopart, G4int ndec)
Definition: G4Abla.cc:3202
G4double dmin1(G4double a, G4double b, G4double c)
Definition: G4Abla.cc:3719
void initEvapora()
Definition: G4Abla.cc:682
G4double pace2(G4double a, G4double z)
Definition: G4Abla.cc:3093
tuple t1
Definition: plottest35.py:33
G4int max(G4int a, G4int b)
Definition: G4Abla.cc:3621
G4double tau(G4double bet, G4double homega, G4double ef, G4double t)
Definition: G4Abla.cc:2586
G4double bfms67(G4double zms, G4double ams)
Definition: G4Abla.cc:2350
const XML_Char int const XML_Char * value
G4double f(G4double E)
Definition: G4Abla.cc:3026
void guet(G4double *x_par, G4double *z_par, G4double *find_par)
Definition: G4Abla.cc:3131
double G4double
Definition: G4Types.hh:76
G4double expohaz(G4int k, G4double T)
Definition: G4Abla.cc:3012
void barfit(G4int iz, G4int ia, G4int il, G4double *sbfis, G4double *segs, G4double *selmax)
Definition: G4Abla.cc:2687
void appariem(G4double a, G4double z, G4double *del)
Definition: G4Abla.cc:2531
void qrot(G4double z, G4double a, G4double bet, G4double sig, G4double u, G4double *qr)
Definition: G4Abla.cc:898
G4int secnds(G4int x)
Definition: G4Abla.cc:3659
G4int min(G4int a, G4int b)
Definition: G4Abla.cc:3601
G4double dmod(G4double a, G4double b)
void rotab(G4double R[4][4], G4double pin[4], G4double pout[4])
Definition: G4Abla.cc:3505
G4double dint(G4double a)
Definition: G4Abla.cc:3685
G4double fd(G4double E)
Definition: G4Abla.cc:3019