[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 | // |
---|
[962] | 26 | // $Id: G4AblaDataDefs.hh,v 1.9 2008/06/25 17:20:04 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 | */ |
---|
| 97 | G4Ald() {}; |
---|
| 98 | ~G4Ald() {}; |
---|
| 99 | |
---|
| 100 | G4double av,as,ak,optafan; |
---|
| 101 | }; |
---|
| 102 | |
---|
| 103 | #define ECLDROWS 154 |
---|
| 104 | #define ECLDCOLS 99 |
---|
| 105 | /** |
---|
| 106 | * Shell corrections and deformations. |
---|
| 107 | */ |
---|
| 108 | |
---|
| 109 | class G4Ecld { |
---|
| 110 | |
---|
| 111 | public: |
---|
| 112 | G4Ecld() {}; |
---|
| 113 | ~G4Ecld() {}; |
---|
| 114 | |
---|
| 115 | /** |
---|
| 116 | * Ground state shell correction frldm for a spherical ground state. |
---|
| 117 | */ |
---|
| 118 | G4double ecgnz[ECLDROWS][ECLDCOLS]; |
---|
| 119 | |
---|
| 120 | /** |
---|
| 121 | * Shell correction for the saddle point (now: == 0). |
---|
| 122 | */ |
---|
| 123 | G4double ecfnz[ECLDROWS][ECLDCOLS]; |
---|
| 124 | |
---|
| 125 | /** |
---|
| 126 | * Difference between deformed ground state and ldm value. |
---|
| 127 | */ |
---|
| 128 | G4double vgsld[ECLDROWS][ECLDCOLS]; |
---|
| 129 | |
---|
| 130 | /** |
---|
| 131 | * Alpha ground state deformation (this is not beta2!) |
---|
| 132 | * beta2 = std::sqrt(5/(4pi)) * alpha |
---|
| 133 | */ |
---|
| 134 | G4double alpha[ECLDROWS][ECLDCOLS]; |
---|
| 135 | }; |
---|
| 136 | |
---|
| 137 | class G4Fiss { |
---|
| 138 | /** |
---|
| 139 | * Options and parameters for fission channel. |
---|
| 140 | */ |
---|
| 141 | |
---|
| 142 | public: |
---|
| 143 | G4Fiss() {}; |
---|
| 144 | ~G4Fiss() {}; |
---|
| 145 | |
---|
| 146 | G4double akap,bet,homega,koeff,ifis; |
---|
| 147 | G4int optshp, optxfis,optles,optcol; |
---|
| 148 | }; |
---|
| 149 | |
---|
| 150 | #define FBROWS 101 |
---|
| 151 | #define FBCOLS 161 |
---|
| 152 | /** |
---|
| 153 | * Fission barriers. |
---|
| 154 | */ |
---|
| 155 | |
---|
| 156 | class G4Fb { |
---|
| 157 | |
---|
| 158 | public: |
---|
| 159 | G4Fb() {}; |
---|
| 160 | ~G4Fb() {;} |
---|
| 161 | |
---|
| 162 | // G4double efa[FBROWS][FBCOLS]; |
---|
| 163 | G4double efa[FBCOLS][FBROWS]; |
---|
| 164 | }; |
---|
| 165 | |
---|
| 166 | /** |
---|
| 167 | * Options |
---|
| 168 | */ |
---|
| 169 | |
---|
| 170 | class G4Opt { |
---|
| 171 | |
---|
| 172 | public: |
---|
| 173 | G4Opt() {}; |
---|
| 174 | ~G4Opt() {}; |
---|
| 175 | |
---|
| 176 | G4int optemd,optcha; |
---|
| 177 | G4double eefac; |
---|
| 178 | }; |
---|
| 179 | |
---|
| 180 | #define EENUCSIZE 2002 |
---|
| 181 | #define XHESIZE 50 |
---|
| 182 | class G4Eenuc { |
---|
| 183 | public: |
---|
| 184 | G4Eenuc() {}; |
---|
| 185 | ~G4Eenuc() {}; |
---|
| 186 | |
---|
| 187 | G4double she[EENUCSIZE],xhe[XHESIZE][EENUCSIZE]; |
---|
| 188 | }; |
---|
| 189 | |
---|
| 190 | //#define VOLANTSIZE 200 |
---|
| 191 | #define VOLANTSIZE 2000 |
---|
| 192 | /** |
---|
| 193 | * Evaporation and fission output data. |
---|
| 194 | */ |
---|
| 195 | |
---|
| 196 | class G4Volant { |
---|
| 197 | |
---|
| 198 | public: |
---|
[962] | 199 | G4Volant() |
---|
| 200 | { |
---|
| 201 | clear(); |
---|
| 202 | } |
---|
| 203 | |
---|
[819] | 204 | ~G4Volant() {}; |
---|
| 205 | |
---|
[962] | 206 | void clear() |
---|
| 207 | { |
---|
| 208 | for(G4int i = 0; i < VOLANTSIZE; i++) { |
---|
| 209 | copied[i] = false; |
---|
| 210 | acv[i] = 0; |
---|
| 211 | zpcv[i] = 0; |
---|
| 212 | pcv[i] = 0; |
---|
| 213 | xcv[i] = 0; |
---|
| 214 | ycv[i] = 0; |
---|
| 215 | zcv[i] = 0; |
---|
| 216 | iv = 0; |
---|
| 217 | } |
---|
| 218 | } |
---|
| 219 | |
---|
| 220 | G4double getTotalMass() |
---|
| 221 | { |
---|
| 222 | G4double total = 0.0; |
---|
| 223 | for(G4int i = 0; i <= iv; i++) { |
---|
| 224 | total += acv[i]; |
---|
| 225 | } |
---|
| 226 | return total; |
---|
| 227 | } |
---|
| 228 | |
---|
[819] | 229 | void dump() |
---|
| 230 | { |
---|
[962] | 231 | G4double totA = 0.0, totZ = 0.0, totP = 0.0; |
---|
[819] | 232 | G4cout <<"i \t ACV \t ZPCV \t PCV" << G4endl; |
---|
| 233 | for(G4int i = 0; i <= iv; i++) { |
---|
[962] | 234 | if(i == 0 && acv[i] != 0) { |
---|
| 235 | G4cout <<"G4Volant: Particle stored at index " << i << G4endl; |
---|
| 236 | } |
---|
| 237 | totA += acv[i]; |
---|
| 238 | totZ += zpcv[i]; |
---|
| 239 | totP += pcv[i]; |
---|
[819] | 240 | G4cout << "volant" << i << "\t" << acv[i] << " \t " << zpcv[i] << " \t " << pcv[i] << G4endl; |
---|
| 241 | } |
---|
[962] | 242 | G4cout <<"Particle count index (iv) = " << iv << G4endl; |
---|
| 243 | G4cout <<"ABLA Total: A = " << totA << " Z = " << totZ << " momentum = " << totP << G4endl; |
---|
[819] | 244 | } |
---|
| 245 | |
---|
| 246 | G4double acv[VOLANTSIZE],zpcv[VOLANTSIZE],pcv[VOLANTSIZE],xcv[VOLANTSIZE]; |
---|
| 247 | G4double ycv[VOLANTSIZE],zcv[VOLANTSIZE]; |
---|
[962] | 248 | G4bool copied[VOLANTSIZE]; |
---|
[819] | 249 | G4int iv; |
---|
| 250 | }; |
---|
| 251 | |
---|
| 252 | #endif |
---|