[819] | 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 | // |
---|
[1347] | 26 | // $Id: G4AblaDataDefs.hh,v 1.13 2010/11/13 00:08:36 kaitanie Exp $ |
---|
[819] | 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 | // Data structures needed by ABLA evaporation code. |
---|
| 34 | |
---|
| 35 | #ifndef G4AblaDataDefs_hh |
---|
| 36 | #define G4AblaDataDefs_hh 1 |
---|
| 37 | |
---|
| 38 | // ABLA |
---|
| 39 | |
---|
| 40 | class G4Nevent { |
---|
| 41 | public: |
---|
| 42 | G4Nevent() {}; |
---|
| 43 | ~G4Nevent() {}; |
---|
| 44 | |
---|
| 45 | G4int ii; |
---|
| 46 | }; |
---|
| 47 | |
---|
| 48 | // ABLA |
---|
| 49 | #define PACESIZEROWS 500 |
---|
| 50 | #define PACESIZECOLS 500 |
---|
| 51 | /** |
---|
| 52 | * Masses. |
---|
| 53 | */ |
---|
| 54 | |
---|
| 55 | class G4Pace { |
---|
| 56 | |
---|
| 57 | public: |
---|
| 58 | G4Pace() {}; |
---|
| 59 | |
---|
| 60 | ~G4Pace() {}; |
---|
| 61 | |
---|
| 62 | G4double dm[PACESIZEROWS][PACESIZECOLS]; |
---|
| 63 | }; |
---|
| 64 | |
---|
| 65 | #define EC2SUBROWS 154 |
---|
| 66 | #define EC2SUBCOLS 99 |
---|
| 67 | /** |
---|
| 68 | * |
---|
| 69 | */ |
---|
| 70 | |
---|
| 71 | class G4Ec2sub { |
---|
| 72 | public: |
---|
| 73 | G4Ec2sub() {}; |
---|
| 74 | |
---|
| 75 | ~G4Ec2sub() {}; |
---|
| 76 | |
---|
| 77 | G4double ecnz[EC2SUBROWS][EC2SUBCOLS]; |
---|
[962] | 78 | |
---|
| 79 | /** |
---|
| 80 | * Dump the contents of the ecnz data table. |
---|
| 81 | */ |
---|
| 82 | void dump() { |
---|
| 83 | for(G4int i = 0; i < EC2SUBROWS; i++) { |
---|
| 84 | for(G4int j = 0; j < EC2SUBCOLS; j++) { |
---|
| 85 | G4cout << ecnz[i][j] << " "; |
---|
| 86 | } |
---|
| 87 | G4cout << G4endl; |
---|
| 88 | } |
---|
| 89 | } |
---|
[819] | 90 | }; |
---|
| 91 | |
---|
| 92 | class G4Ald { |
---|
| 93 | public: |
---|
| 94 | /** |
---|
| 95 | * |
---|
| 96 | */ |
---|
[1347] | 97 | G4Ald() |
---|
| 98 | :av(0.0), as(0.0), ak(0.0), optafan(0.0) |
---|
| 99 | {}; |
---|
[819] | 100 | ~G4Ald() {}; |
---|
| 101 | |
---|
| 102 | G4double av,as,ak,optafan; |
---|
| 103 | }; |
---|
| 104 | |
---|
| 105 | #define ECLDROWS 154 |
---|
| 106 | #define ECLDCOLS 99 |
---|
| 107 | /** |
---|
| 108 | * Shell corrections and deformations. |
---|
| 109 | */ |
---|
| 110 | |
---|
| 111 | class G4Ecld { |
---|
| 112 | |
---|
| 113 | public: |
---|
| 114 | G4Ecld() {}; |
---|
| 115 | ~G4Ecld() {}; |
---|
| 116 | |
---|
| 117 | /** |
---|
| 118 | * Ground state shell correction frldm for a spherical ground state. |
---|
| 119 | */ |
---|
| 120 | G4double ecgnz[ECLDROWS][ECLDCOLS]; |
---|
| 121 | |
---|
| 122 | /** |
---|
| 123 | * Shell correction for the saddle point (now: == 0). |
---|
| 124 | */ |
---|
| 125 | G4double ecfnz[ECLDROWS][ECLDCOLS]; |
---|
| 126 | |
---|
| 127 | /** |
---|
| 128 | * Difference between deformed ground state and ldm value. |
---|
| 129 | */ |
---|
| 130 | G4double vgsld[ECLDROWS][ECLDCOLS]; |
---|
| 131 | |
---|
| 132 | /** |
---|
| 133 | * Alpha ground state deformation (this is not beta2!) |
---|
| 134 | * beta2 = std::sqrt(5/(4pi)) * alpha |
---|
| 135 | */ |
---|
| 136 | G4double alpha[ECLDROWS][ECLDCOLS]; |
---|
| 137 | }; |
---|
| 138 | |
---|
| 139 | class G4Fiss { |
---|
| 140 | /** |
---|
| 141 | * Options and parameters for fission channel. |
---|
| 142 | */ |
---|
| 143 | |
---|
| 144 | public: |
---|
[1347] | 145 | G4Fiss() |
---|
| 146 | :akap(0.0), bet(0.0), homega(0.0), koeff(0.0), ifis(0.0), |
---|
| 147 | optshp(0), optxfis(0), optles(0), optcol(0) |
---|
| 148 | {}; |
---|
[819] | 149 | ~G4Fiss() {}; |
---|
| 150 | |
---|
| 151 | G4double akap,bet,homega,koeff,ifis; |
---|
| 152 | G4int optshp, optxfis,optles,optcol; |
---|
| 153 | }; |
---|
| 154 | |
---|
| 155 | #define FBROWS 101 |
---|
| 156 | #define FBCOLS 161 |
---|
| 157 | /** |
---|
| 158 | * Fission barriers. |
---|
| 159 | */ |
---|
| 160 | |
---|
| 161 | class G4Fb { |
---|
| 162 | |
---|
| 163 | public: |
---|
| 164 | G4Fb() {}; |
---|
| 165 | ~G4Fb() {;} |
---|
| 166 | |
---|
| 167 | // G4double efa[FBROWS][FBCOLS]; |
---|
| 168 | G4double efa[FBCOLS][FBROWS]; |
---|
| 169 | }; |
---|
| 170 | |
---|
| 171 | /** |
---|
| 172 | * Options |
---|
| 173 | */ |
---|
| 174 | |
---|
| 175 | class G4Opt { |
---|
| 176 | |
---|
| 177 | public: |
---|
[1347] | 178 | G4Opt() |
---|
| 179 | :optemd(0), optcha(0), eefac(0.0) |
---|
| 180 | {}; |
---|
[819] | 181 | ~G4Opt() {}; |
---|
| 182 | |
---|
| 183 | G4int optemd,optcha; |
---|
| 184 | G4double eefac; |
---|
| 185 | }; |
---|
| 186 | |
---|
| 187 | #define EENUCSIZE 2002 |
---|
| 188 | #define XHESIZE 50 |
---|
| 189 | class G4Eenuc { |
---|
| 190 | public: |
---|
[1347] | 191 | G4Eenuc() { |
---|
| 192 | for(G4int i = 0; i < EENUCSIZE; ++i) { |
---|
| 193 | she[i] = 0.0; |
---|
| 194 | } |
---|
| 195 | for(G4int i = 0; i < XHESIZE; ++i) { |
---|
| 196 | for(G4int j = 0; j < EENUCSIZE; ++j) { |
---|
| 197 | xhe[i][j] = 0.0; |
---|
| 198 | } |
---|
| 199 | } |
---|
| 200 | }; |
---|
[819] | 201 | ~G4Eenuc() {}; |
---|
| 202 | |
---|
| 203 | G4double she[EENUCSIZE],xhe[XHESIZE][EENUCSIZE]; |
---|
| 204 | }; |
---|
| 205 | |
---|
| 206 | //#define VOLANTSIZE 200 |
---|
[1340] | 207 | #define VOLANTSIZE 301 |
---|
[819] | 208 | /** |
---|
| 209 | * Evaporation and fission output data. |
---|
| 210 | */ |
---|
| 211 | |
---|
| 212 | class G4Volant { |
---|
| 213 | |
---|
| 214 | public: |
---|
[962] | 215 | G4Volant() |
---|
| 216 | { |
---|
| 217 | clear(); |
---|
| 218 | } |
---|
| 219 | |
---|
[819] | 220 | ~G4Volant() {}; |
---|
| 221 | |
---|
[962] | 222 | void clear() |
---|
| 223 | { |
---|
| 224 | for(G4int i = 0; i < VOLANTSIZE; i++) { |
---|
| 225 | copied[i] = false; |
---|
| 226 | acv[i] = 0; |
---|
| 227 | zpcv[i] = 0; |
---|
| 228 | pcv[i] = 0; |
---|
| 229 | xcv[i] = 0; |
---|
| 230 | ycv[i] = 0; |
---|
| 231 | zcv[i] = 0; |
---|
| 232 | iv = 0; |
---|
| 233 | } |
---|
| 234 | } |
---|
| 235 | |
---|
| 236 | G4double getTotalMass() |
---|
| 237 | { |
---|
| 238 | G4double total = 0.0; |
---|
| 239 | for(G4int i = 0; i <= iv; i++) { |
---|
| 240 | total += acv[i]; |
---|
| 241 | } |
---|
| 242 | return total; |
---|
| 243 | } |
---|
| 244 | |
---|
[819] | 245 | void dump() |
---|
| 246 | { |
---|
[962] | 247 | G4double totA = 0.0, totZ = 0.0, totP = 0.0; |
---|
[819] | 248 | G4cout <<"i \t ACV \t ZPCV \t PCV" << G4endl; |
---|
| 249 | for(G4int i = 0; i <= iv; i++) { |
---|
[962] | 250 | if(i == 0 && acv[i] != 0) { |
---|
| 251 | G4cout <<"G4Volant: Particle stored at index " << i << G4endl; |
---|
| 252 | } |
---|
| 253 | totA += acv[i]; |
---|
| 254 | totZ += zpcv[i]; |
---|
| 255 | totP += pcv[i]; |
---|
[819] | 256 | G4cout << "volant" << i << "\t" << acv[i] << " \t " << zpcv[i] << " \t " << pcv[i] << G4endl; |
---|
| 257 | } |
---|
[962] | 258 | G4cout <<"Particle count index (iv) = " << iv << G4endl; |
---|
| 259 | G4cout <<"ABLA Total: A = " << totA << " Z = " << totZ << " momentum = " << totP << G4endl; |
---|
[819] | 260 | } |
---|
| 261 | |
---|
| 262 | G4double acv[VOLANTSIZE],zpcv[VOLANTSIZE],pcv[VOLANTSIZE],xcv[VOLANTSIZE]; |
---|
| 263 | G4double ycv[VOLANTSIZE],zcv[VOLANTSIZE]; |
---|
[962] | 264 | G4bool copied[VOLANTSIZE]; |
---|
[819] | 265 | G4int iv; |
---|
| 266 | }; |
---|
| 267 | |
---|
| 268 | #endif |
---|