IAP GITLAB

DBLPRC 25.9 KB
Newer Older
Tanguy Pierog's avatar
Tanguy Pierog committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429
*$ CREATE DBLPRC.ADD
*COPY DBLPRC
*                                                                      *
*=== dblprc ===========================================================*
*                                                                      *
*----------------------------------------------------------------------*
*                                                                      *
*     Copyright (C) 1989-2011      by  Alberto Fasso`, Alfredo Ferrari *
*     All Rights Reserved.                   & Paola Sala              *
*                                                                      *
*                                                                      *
*      Dblprc: included in any routine, machine, mathematical and      *
*              physical constants plus global declarations             *
*                                                                      *
*                                                                      *
*     Last change on  21-Sep-11    by      Alfredo Ferrari             *
*                                                                      *
*                                                                      *
*  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!   *
*  !!!! O N   M A C H I N E S   W H E R E   T H E   D O U B L E !!!!   *
*  !!!! P R E C I S I O N   I S   N O T   R E Q U I R E D  R E -!!!!   *
*  !!!! M O V E   T H E   D O U B L E   P R E C I S I O N       !!!!   *
*  !!!! S T A T E M E N T,  S E T   K A L G N M = 1   A N D     !!!!   *
*  !!!! C H A N G E   A L L   N U M E R I C A L   C O N S -     !!!!   *
*  !!!! T A N T S   T O   S I N G L E   P R E C I S I O N       !!!!   *
*  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!   *
*                                                                      *
*         Kalgnm = real address alignment, 2 for double precision,     *
*                  1 for single precision                              *
*         Kalch8 = character*8 address alignment wrt the precision     *
*                  defined by Kalgnm (mostly 1 in all situations)      *
*         I2algn = integer*2 address alignment wrt the normal integer  *
*                  precision (mostly 2, 4 for 64 bit integers)         *
*         Anglgb = this parameter should be set equal to the machine   *
*                  "zero" with respect to unit                         *
*         Anglsq = this parameter should be set equal to the square    *
*                  of Anglgb                                           *
*         Axcssv = this parameter should be set equal to the number    *
*                  for which unity is negligible for the machine       *
*                  accuracy                                            *
*         Andrfl = "underflow" of the machine for floating point       *
*                  operation                                           *
*         Avrflw = "overflow"  of the machine for floating point       *
*                  operation                                           *
*         Ainfnt = code "infinite"                                     *
*         Azrzrz = code "zero"                                         *
*         Einfnt = natural logarithm of the code "infinite"            *
*         Ezrzrz = natural logarithm of the code "zero"                *
*         Excssv = natural logarithm of the code number for which      *
*                  unit is negligible                                  *
*         Englgb = natural logarithm of the code "zero" with respect   *
*                  to unit                                             *
*         Onemns = 1- of the machine, it is 1 - 2 x Anglgb             *
*         Onepls = 1+ of the machine, it is 1 + 2 x Anglgb             *
*         Csnnrm = maximum tolerable error on cosine normalization,    *
*                  u**2+v**2+w**2: assuming a typical anglgb relative  *
*                  error on each component we would get 2xanglgb: use  *
*                  4xanglgb to avoid too many normalizations           *
*         Dmxtrn = "infinite" distance for transport (cm)              *
*         Rhflmn = minimal density for Fluka (g/cm^3)                  *
*                                                                      *
*   "Global" declarations:                                             *
*         Lfluka = set to true for a real (full) Fluka run             *
*         Lgbias = set to true for a fully biased run                  *
*         Lgbana = set to true for a fully analogue run                *
*         Lflgeo = set to true when using the standard Fluka geometry  *
*         Loflts = set to true for special off-line testing of speci-  *
*                  fic routines                                        *
*         Lusrin = set to true if the user dependent initialization    *
*                  routine Usrini has been called at least onec        *
*         Lnmgeo = set to true for a name-based geometry input         *
*         Lnminp = set to true for a name-based Fluka input            *
*         Lfrfmt = set to true for a free-format based Fluka input     *
*         Ldpmcr = set to true for allowing dump cores inside Flabrt   *
* Start_VMC_seq
**        Lfdrtr = set to true for going in/out feeder/flukam at each  *
**                 event                                               *
**                                                                     *
* End_VMC_seq
*----------------------------------------------------------------------*
*                                                                      *
      IMPLICIT DOUBLE PRECISION (A-H,O-Z)
      PARAMETER ( KALGNM = 2 )
      PARAMETER ( KALCH8 = 1 )
      PARAMETER ( I2ALGN = 2 )
      PARAMETER ( ANGLGB = 5.0D-16 )
      PARAMETER ( ANGLSQ = 2.5D-31 )
      PARAMETER ( AXCSSV = 0.2D+16 )
      PARAMETER ( ANDRFL = 1.0D-38 )
      PARAMETER ( AVRFLW = 1.0D+38 )
      PARAMETER ( AINFNT = 1.0D+30 )
      PARAMETER ( AZRZRZ = 1.0D-30 )
      PARAMETER ( EINFNT = +69.07755278982137 D+00 )
      PARAMETER ( EZRZRZ = -69.07755278982137 D+00 )
      PARAMETER ( EXCSSV = +35.23192357547063 D+00 )
      PARAMETER ( ENGLGB = -35.23192357547063 D+00 )
      PARAMETER ( ONEMNS = 0.999999999999999  D+00 )
      PARAMETER ( ONEPLS = 1.000000000000001  D+00 )
      PARAMETER ( CSNNRM = 2.0D-15 )
      PARAMETER ( DMXTRN = 1.0D+08 )
      PARAMETER ( RHFLMN = 1.0D-10 )
*
*======================================================================*
*======================================================================*
*=========                                                   ==========*
*=========    M A T H E M A T I C A L   C O N S T A N T S    ==========*
*=========                                                   ==========*
*======================================================================*
*======================================================================*
*                                                                      *
*   Numerical constants (single precision):                            *
*                                                                      *
*         Zersng = 0                                                   *
*                                                                      *
*   Numerical constants (double precision):                            *
*                                                                      *
*         Zerzer = 0                                                   *
*         Oneone = 1                                                   *
*         Twotwo = 2                                                   *
*         Thrthr = 3                                                   *
*         Foufou = 4                                                   *
*         Fivfiv = 5                                                   *
*         Sixsix = 6                                                   *
*         Sevsev = 7                                                   *
*         Eigeig = 8                                                   *
*         Aninen = 9                                                   *
*         Tenten = 10                                                  *
*         Eleven = 11                                                  *
*         Twelve = 12                                                  *
*         Fiften = 15                                                  *
*         Sixten = 16                                                  *
*         Hlfhlf = 1/2                                                 *
*         Onethi = 1/3                                                 *
*         Onefou = 1/4                                                 *
*         Onefiv = 1/5                                                 *
*         Onesix = 1/6                                                 *
*         Onesev = 1/7                                                 *
*         Oneeig = 1/8                                                 *
*         Twothi = 2/3                                                 *
*         Thrfou = 3/4                                                 *
*         Thrtwo = 3/2                                                 *
*         Fouthr = 4/3                                                 *
*         Pipipi = Circumference / diameter                            *
*         Twopip = 2 x Pipipi                                          *
*         Pip5o2 = 5/2 x Pipipi                                        *
*         Pipisq = Pipipi x Pipipi                                     *
*         Pihalf = 1/2 x Pipipi                                        *
*         R3tovl = 4/3 x Pipipi                                        *
*         Erfa00 = Erf (oo) = 1/2 x square root of pi                  *
*         Sqrtpi = square root of pi                                   *
*         Sqtwpi = square root of 2xpi                                 *
*         Eulero = Eulero's constant                                   *
*         Eulexp = exp ( Eulero )                                      *
*         E1m2eu = exp ( 1 - 2 eulero )                                *
*         Eneper = "e", base of natural logarithm                      *
*         Sqrent = square root of "e"                                  *
*         Sqrtwo = square root of  2                                   *
*         Sqrthr = square root of  3                                   *
*         Sqrfiv = square root of  5                                   *
*         Sqrsix = square root of  6                                   *
*         Sqrsev = square root of  7                                   *
*         Sqrt12 = square root of 12                                   *
*         S2fwhm = 2 x square root of 2 x logarithm of 2               *
*         Twolog = logarithm of 2                                      *
*         Two2o3 = 2^2/3                                               *
*         Tenlog = logarithm of 10                                     *
*         Atnfou = Atan[4]                                             *
*         Atnsix = Atan[6]                                             *
*                                                                      *
*----------------------------------------------------------------------*
*
      REAL ZERSNG
      PARAMETER ( ZERSNG = 0.E+00 )
      PARAMETER ( ZERZER = 0.D+00 )
      PARAMETER ( ONEONE = 1.D+00 )
      PARAMETER ( TWOTWO = 2.D+00 )
      PARAMETER ( THRTHR = 3.D+00 )
      PARAMETER ( FOUFOU = 4.D+00 )
      PARAMETER ( FIVFIV = 5.D+00 )
      PARAMETER ( SIXSIX = 6.D+00 )
      PARAMETER ( SEVSEV = 7.D+00 )
      PARAMETER ( EIGEIG = 8.D+00 )
      PARAMETER ( ANINEN = 9.D+00 )
      PARAMETER ( TENTEN = 10.D+00 )
      PARAMETER ( ELEVEN = 11.D+00 )
      PARAMETER ( TWELVE = 12.D+00 )
      PARAMETER ( FIFTEN = 15.D+00 )
      PARAMETER ( SIXTEN = 16.D+00 )
      PARAMETER ( HLFHLF = 0.5D+00 )
      PARAMETER ( ONETHI = ONEONE / THRTHR )
      PARAMETER ( ONEFOU = ONEONE / FOUFOU )
      PARAMETER ( ONEFIV = ONEONE / FIVFIV )
      PARAMETER ( ONESIX = ONEONE / SIXSIX )
      PARAMETER ( ONESEV = ONEONE / SEVSEV )
      PARAMETER ( ONEEIG = ONEONE / EIGEIG )
      PARAMETER ( TWOTHI = TWOTWO / THRTHR )
      PARAMETER ( THRFOU = THRTHR / FOUFOU )
      PARAMETER ( THRTWO = THRTHR / TWOTWO )
      PARAMETER ( FOUTHR = FOUFOU / THRTHR )
      PARAMETER ( PIPIPI = 3.141592653589793238462643383279D+00 )
      PARAMETER ( TWOPIP = 6.283185307179586476925286766559D+00 )
      PARAMETER ( PIP5O2 = 7.853981633974483096156608458199D+00 )
      PARAMETER ( PIPISQ = 9.869604401089358618834490999876D+00 )
      PARAMETER ( PIHALF = 1.570796326794896619231321691640D+00 )
      PARAMETER ( R3TOVL = FOUFOU * PIPIPI / THRTHR )
      PARAMETER ( ERFA00 = 0.886226925452758013649083741671D+00 )
      PARAMETER ( SQRTPI = 1.772453850905516027298167483341D+00 )
      PARAMETER ( SQTWPI = 2.506628274631000502415765284811D+00 )
      PARAMETER ( EULERO = 0.577215664901532860606512      D+00 )
      PARAMETER ( EULEXP = 1.781072417990197985236504      D+00 )
      PARAMETER ( EULLOG =-0.5495393129816448223376619     D+00 )
      PARAMETER ( E1M2EU = 0.8569023337737540831433017     D+00 )
      PARAMETER ( ENEPER = 2.718281828459045235360287471353D+00 )
      PARAMETER ( SQRENT = 1.648721270700128146848650787814D+00 )
      PARAMETER ( SQRTWO = 1.414213562373095048801688724210D+00 )
      PARAMETER ( SQRTHR = 1.732050807568877293527446341506D+00 )
      PARAMETER ( SQRFIV = 2.236067977499789696409173668731D+00 )
      PARAMETER ( SQRSIX = 2.449489742783178098197284074706D+00 )
      PARAMETER ( SQRSEV = 2.645751311064590590501615753639D+00 )
      PARAMETER ( SQRT12 = 3.464101615137754587054892683012D+00 )
      PARAMETER ( S2FWHM = 2.354820045030949382023138652919D+00 )
      PARAMETER ( TWOLOG = 0.693147180559945309417232121458D+00 )
      PARAMETER ( TWO2O3 = 1.587401051968199474751705639272D+00 )
      PARAMETER ( TENLOG = 2.302585092994045684017991454684D+00 )
      PARAMETER ( ATNFOU = 1.3258176636680326D+00 )
      PARAMETER ( ATNSIX = 1.4056476493802699D+00 )
*
*======================================================================*
*======================================================================*
*=========                                                   ==========*
*=========       P H Y S I C A L   C O N S T A N T S         ==========*
*=========                                                   ==========*
*======================================================================*
*======================================================================*
*                                                                      *
*   Primary constants:                                                 *
*                                                                      *
*         Clight = speed of light in cm s-1                            *
*         Avogad = Avogadro number                                     *
*         Boltzm = k Boltzmann constant (J K-1)                        *
*         Amelgr = electron mass (g)                                   *
*         Plckbr = reduced Planck constant (erg s)                     *
*         Elccgs = elementary charge (CGS unit)                        *
*         Elcmks = elementary charge (MKS unit)                        *
*         Epsil0 = vacuum dielectric constant (MKS unit)               *
*         Amugrm = Atomic mass unit (g)                                *
*         Ammumu = Muon    mass (amu)                                  *
*         Amprmu = Proton  mass (amu)                                  *
*         Amnemu = Neutron mass (amu)                                  *
*                                                                      *
*   Derived constants:                                                 *
*                                                                      *
*         Alamb0 = Compton wavelength = 2 pi r0 / fsc                  *
*         Alpfsc = Fine structure constant  = e^2/(hbar c) (CGS units) *
*         Note:                                                        *
*          e[MKS]^2/ (4 pi epsilon0 hbar[MKS] c[MKS]) = alpha = 1/137  *
*          e[CGS]^2/ (hbar[CGS] c[CGS]) = alpha = 1/137                *
*          with c[MKs] = 10^-2 c[CGS], hbar[MKS] = 10^-7 hbar[CGS]     *
*         Amelct = Electron mass (GeV) = 10^-16Amelgr Clight^2 / Elcmks*
*         Amugev = Atomic mass unit (GeV) = 10^-16Amugrm Clight^2      *
*                                           / Elcmks                   *
*         Ammuon = Muon    mass (GeV) = Ammumu * Amugev                *
*         Amprtn = Proton  mass (GeV) = Amprmu * Amugev                *
*         Amntrn = Neutron mass (GeV) = Amnemu * Amugev                *
*         Amdeut = Deuteron mass (GeV)                                 *
*         Amalph = Alpha    mass (GeV) (derived from the excess mass   *
*                  and an (approximate) atomic binding not a really    *
*                  measured constant)                                  *
*         Cougfm = e^2 (GeV fm) = Elccgs^2 / Elcmks * 10^-7 * 10^-9    *
*                * 10^13 (10^..=erg cm->joule cm->GeV cm->GeV fm       *
*                it is equal to 0.00144 GeV fm                         *
*         Fscto2 = (Fine structure constant)^2                         *
*         Fscto3 = (Fine structure constant)^3                         *
*         Fscto4 = (Fine structure constant)^4                         *
*         Plabrc = Reduced Planck constant times the light velocity    *
*                  expressed in GeV fm                                 *
*         Rclsel = Classical electron radius (cm) = e^2 / (m_e c^2)    *
*         Bltzmn = k Boltzmann constant in GeV K-1                     *
*         A0bohr = Bohr radius, hbar^2 / ( m_e e^2) (fm) = Plabrc**2   *
*                / Amelct / Cougfm, or equivalently,                   *
*                Plabrc / Alpfsc / Amelct                              *
*         Gfohb3 = Fermi constant, G_f/(hbar c)^3, in GeV^-2           *
*         Gfermi = Fermi constant in GeV fm^3                          *
*         Sin2tw = sin^2 theta_Weinberg                                *
*         Prmgnm = proton  magnetic moment (magneton)                  *
*         Anmgnm = neutron magnetic moment (magneton)                  *
*         S0Thms = sigma_0 Thomson, 8/3 pi r_e^2 (mb)                  *
*                                                                      *
*   Astronomical constants:                                            *
*                                                                      *
*         Rearth = Earth equatorial radius (cm)                        *
*         Auastu = Astronomical Unit       (cm)                        *
*                                                                      *
*   Conversion constants:                                              *
*                                                                      *
*         GeVMeV = from GeV to MeV                                     *
*         eMVGeV = from MeV to GeV                                     *
*         GeV2eV = from GeV to  eV                                     *
*         eV2GeV = from eV  to GeV                                     *
*         alGVMV = from GeV to MeV, log                                *
*         Raddeg = from radians to degrees                             *
*         Degrad = from degrees to radians                             *
*         GeVOmg = from (photon) energy [GeV] in 2pi x frequency [s^-1]*
*         Cmq2mb = from square centimetres to millibarns               *
*         Fmb2ba = from millibarns to barns                            *
*         Bar2mb = from barns to millibarns                            *
*         Fmb2fs = from millibarns to fermi^2                          *
*         Fms2mb = from fermi^2 to millibarns                          *
*         Ba2cmq = from barns to square centimetres                    *
*         Cmq2ba = from square centimetres to barns                    *
*                                                                      *
*   Useful constants:                                                  *
*                                                                      *
*         Fertho = constant to be used in the Fermi-Thomas approxima-  *
*                  ted expression for atomic binding energies          *
*         Expebn = exponent to be used in the Fermi-Thomas approxima-  *
*                  ted expression for atomic binding energies          *
*                    B_atomic (Z) = Fertho x Z^Expebn (GeV)            *
*         Bexc12 = Fermi-Thomas approximated expression for 12-C ato-  *
*                  mic binding energies (GeV)                          *
*         Amunmu = difference between the atomic and nuclear mass units*
*         Amuc12 = "Nuclear" mass unit = 1/12 M_nucl (12-C),           *
*                  M_nucl (12-C) = M_atom (12-C) - 6 m_e + B_atom(12-C)*
*                                                                      *
*----------------------------------------------------------------------*
*
      PARAMETER ( CLIGHT = 2.99792458         D+10 )
      PARAMETER ( AVOGAD = 6.0221367          D+23 )
      PARAMETER ( BOLTZM = 1.380658           D-23 )
      PARAMETER ( AMELGR = 9.1093897          D-28 )
      PARAMETER ( PLCKBR = 1.05457266         D-27 )
      PARAMETER ( ELCCGS = 4.8032068          D-10 )
      PARAMETER ( ELCMKS = 1.60217733         D-19 )
      PARAMETER ( AMUGRM = 1.6605402          D-24 )
      PARAMETER ( AMMUMU = 0.113428913        D+00 )
      PARAMETER ( AMPRMU = 1.007276470        D+00 )
      PARAMETER ( AMNEMU = 1.008664904        D+00 )
      PARAMETER ( EPSIL0 = 8.854187817        D-12 )
*     PARAMETER ( ALPFSC = 1.D+00 / 137.035989561D+00 )
*     PARAMETER ( FSCTO2 = ALPFSC * ALPFSC )
*     PARAMETER ( FSCTO3 = FSCTO2 * ALPFSC )
*     PARAMETER ( FSCTO4 = FSCTO3 * ALPFSC )
*    It is important to set the electron mass exactly with the same
*    rounding as in the mass tables, so use the explicit expression
*     PARAMETER ( AMELCT = 1.D-16 * AMELGR * CLIGHT * CLIGHT / ELCMKS )
*    It is important to set the amu mass exactly with the same
*    rounding as in the mass tables, so use the explicit expression
*     PARAMETER ( AMUGEV = 1.D-16 * AMUGRM * CLIGHT * CLIGHT / ELCMKS )
*    It is important to set the muon,proton,neutron masses exactly with
*    the same rounding as in the mass tables, so use the explicit
*    expression
*     PARAMETER ( AMMUON = AMMUMU * AMUGEV )
*     PARAMETER ( AMPRTN = AMPRMU * AMUGEV )
*     PARAMETER ( AMNTRN = AMNEMU * AMUGEV )
*     PARAMETER ( RCLSEL = ELCCGS * ELCCGS / CLIGHT / CLIGHT / AMELGR )
*     PARAMETER ( BLTZMN = BOLTZM / ELCMKS * 1.D-09 )
      PARAMETER ( ALPFSC = 7.2973530791728595 D-03 )
      PARAMETER ( FSCTO2 = 5.3251361962113614 D-05 )
      PARAMETER ( FSCTO3 = 3.8859399018437826 D-07 )
      PARAMETER ( FSCTO4 = 2.8357075508200407 D-09 )
      PARAMETER ( PLABRC = 0.197327053        D+00 )
      PARAMETER ( AMELCT = 0.51099906         D-03 )
      PARAMETER ( AMUGEV = 0.93149432         D+00 )
      PARAMETER ( AMMUON = 0.105658389        D+00 )
      PARAMETER ( AMPRTN = 0.93827231         D+00 )
      PARAMETER ( AMNTRN = 0.93956563         D+00 )
      PARAMETER ( AMDEUT = 1.87561339         D+00 )
      PARAMETER ( AMALPH = 3.72738025692891   D+00 )
      PARAMETER ( COUGFM = ELCCGS * ELCCGS / ELCMKS * 1.D-07 * 1.D+13
     &                   * 1.D-09 )
      PARAMETER ( RCLSEL = 2.8179409183694872 D-13 )
      PARAMETER ( ALAMB0 = TWOTWO * PIPIPI * RCLSEL / ALPFSC )
      PARAMETER ( BLTZMN = 8.617385           D-14 )
      PARAMETER ( A0BOHR = PLABRC / ALPFSC / AMELCT )
      PARAMETER ( GFOHB3 = 1.16639            D-05 )
      PARAMETER ( GFERMI = GFOHB3 * PLABRC * PLABRC * PLABRC )
      PARAMETER ( SIN2TW = 0.2319             D+00 )
      PARAMETER ( PRMGNM = 2.792847386        D+00 )
      PARAMETER ( ANMGNM =-1.91304275         D+00 )
      PARAMETER ( REARTH = 6.378140           D+08 )
      PARAMETER ( AUASTU = 1.4959787066       D+13 )
      PARAMETER ( GEVMEV = 1.0                D+03 )
      PARAMETER ( EV2GEV = 1.0                D-09 )
      PARAMETER ( GEV2EV = 1.0                D+09 )
      PARAMETER ( EMVGEV = 1.0                D-03 )
      PARAMETER ( CMQ2MB = 1.0                D+27 )
      PARAMETER ( FMB2BA = 1.0                D-03 )
      PARAMETER ( BAR2MB = 1.0                D+03 )
      PARAMETER ( FMB2FS = 1.0                D-01 )
      PARAMETER ( FMS2MB = 1.0                D+01 )
      PARAMETER ( BA2CMQ = 1.0                D-24 )
      PARAMETER ( CMQ2BA = 1.0                D+24 )
      PARAMETER ( ALGVMV = 6.90775527898214   D+00 )
      PARAMETER ( RADDEG = 180.D+00 / PIPIPI )
      PARAMETER ( DEGRAD = PIPIPI / 180.D+00 )
      PARAMETER ( GEVOMG = CLIGHT * 1.D+13 / PLABRC )
      PARAMETER ( S0THMS = EIGEIG / THRTHR * PIPIPI * RCLSEL * RCLSEL
     &                   * CMQ2MB )
*  Old Fermi-Thomas parametrization of atomic binding energies:
*     PARAMETER ( FERTHO = 15.73       D-09 )
*     PARAMETER ( EXPEBN = 7.D+00 / 3.D+00  )
*     PARAMETER ( BEXC12 = FERTHO * 65.41634134195703D+00 )
*  New Fermi-Thomas parametrization of atomic binding energies:
      PARAMETER ( FERTHO = 14.33       D-09 )
      PARAMETER ( EXPEBN = 2.39        D+00 )
      PARAMETER ( BEXC12 = FERTHO * 72.40715579499394D+00 )
      PARAMETER ( AMUNMU = HLFHLF * AMELCT - BEXC12 / 12.D+00 )
      PARAMETER ( AMUC12 = AMUGEV - AMUNMU )
*  Old MeV units:
      PARAMETER ( AMEMEV = GEVMEV * AMELCT )
*  Infinite and "zero" T1/2:
      PARAMETER ( T12INF = 1.D+30 )
      PARAMETER ( T12ZER = 1.D-15 )
*
      LOGICAL LFLUKA, LGBIAS, LGBANA, LFLGEO, LOFLTS, LUSRIN,
     &        LUSRGL, LNMGEO, LNMINP, LFRFMT, LDMPCR
* Start_VMC_seq
      LOGICAL LFDRTR
* End_VMC_seq
      COMMON / GLOBAL / LFLUKA, LGBIAS, LGBANA, LFLGEO, LOFLTS, LUSRIN,
     &                  LUSRGL, LNMGEO, LNMINP, LFRFMT, LDMPCR,
* Start_VMC_seq
     &                  LFDRTR,
* End_VMC_seq
     &                  KFLGEO, KFLDNR
      COMMON / GLOBCH / CRVRFL
      CHARACTER*8 CRVRFL
      SAVE / GLOBAL /, / GLOBCH /