source: trunk/source/processes/hadronic/models/incl/include/G4Abla.hh @ 1340

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

update ti head

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