- Timestamp:
- Apr 6, 2009, 12:30:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/incl/include/G4AblaDataDefs.hh
r819 r962 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4AblaDataDefs.hh,v 1. 6 2007/12/03 19:36:06 miheikkiExp $26 // $Id: G4AblaDataDefs.hh,v 1.9 2008/06/25 17:20:04 kaitanie Exp $ 27 27 // Translation of INCL4.2/ABLA V3 28 28 // Pekka Kaitaniemi, HIP (translation) … … 76 76 77 77 G4double ecnz[EC2SUBROWS][EC2SUBCOLS]; 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 } 78 90 }; 79 91 … … 87 99 88 100 G4double av,as,ak,optafan; 89 };90 91 class G4Ablamain {92 public:93 G4Ablamain() {};94 ~G4Ablamain() {};95 96 G4double ap,zp,at,zt,eap,beta,bmaxnuc,crtot,crnuc,r_0, r_p,r_t,pi,bfpro,snpro,sppro,shell;97 G4int imax, inum;98 101 }; 99 102 … … 185 188 }; 186 189 187 #define EMDPARSIZE 1000188 /**189 * Energies widths and cross sections for em excitation.190 */191 192 class G4Emdpar {193 194 public:195 G4Emdpar() {};196 ~G4Emdpar() {};197 198 G4double egdr,egqr,fwhmgdr,fwhmgqr,cremde1,cremde2;199 G4double ae1[EMDPARSIZE],be1[EMDPARSIZE],ce1[EMDPARSIZE],ae2[EMDPARSIZE];200 G4double be2[EMDPARSIZE],ce2[EMDPARSIZE],sre1[EMDPARSIZE],sre2[EMDPARSIZE];201 G4double xre1[EMDPARSIZE],xre2[EMDPARSIZE],ds1,ds2;202 };203 204 190 //#define VOLANTSIZE 200 205 191 #define VOLANTSIZE 2000 … … 211 197 212 198 public: 213 G4Volant() {}; 199 G4Volant() 200 { 201 clear(); 202 } 203 214 204 ~G4Volant() {}; 215 205 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 216 229 void dump() 217 230 { 231 G4double totA = 0.0, totZ = 0.0, totP = 0.0; 218 232 G4cout <<"i \t ACV \t ZPCV \t PCV" << G4endl; 219 233 for(G4int i = 0; i <= iv; i++) { 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]; 220 240 G4cout << "volant" << i << "\t" << acv[i] << " \t " << zpcv[i] << " \t " << pcv[i] << G4endl; 221 241 } 242 G4cout <<"Particle count index (iv) = " << iv << G4endl; 243 G4cout <<"ABLA Total: A = " << totA << " Z = " << totZ << " momentum = " << totP << G4endl; 222 244 } 223 245 224 246 G4double acv[VOLANTSIZE],zpcv[VOLANTSIZE],pcv[VOLANTSIZE],xcv[VOLANTSIZE]; 225 247 G4double ycv[VOLANTSIZE],zcv[VOLANTSIZE]; 248 G4bool copied[VOLANTSIZE]; 226 249 G4int iv; 227 250 };
Note: See TracChangeset
for help on using the changeset viewer.