33#define ABLAXX_IN_GEANT4_MODE 1
39#ifndef G4AblaDataDefs_hh
40#define G4AblaDataDefs_hh 1
42#ifdef ABLAXX_IN_GEANT4_MODE
61#define PACESIZEROWS 500
62#define PACESIZECOLS 500
77#define MASSIZEROWS 154
135#define ECLDROWSbeta 251
136#define ECLDCOLSbeta 137
231#define EENUCSIZE 2002
251#define VOLANTSIZE 301
283 for(
G4int i = 0; i <=
iv; i++) {
291 G4double totA = 0.0, totZ = 0.0, totP = 0.0;
293 for(
G4int i = 0; i <=
iv; i++) {
294 if(i == 0 &&
acv[i] != 0) {
312#define VARNTPSIZE 301
377 if(
full[particleIndex]) {
380 avv[particleIndex] = (int)
A;
381 zvv[particleIndex] = (int) Z;
382 enerj[particleIndex] = E;
383 plab[particleIndex] = P;
384 tetlab[particleIndex] = theta;
385 philab[particleIndex] = phi;
386 full[particleIndex] =
true;
387 ntrack = particleIndex + 1;
396 G4int baryonNumber = 0;
399 baryonNumber +=
avv[i];
411 energy += std::sqrt(std::pow(
plab[i], 2) + std::pow(
getMass(i), 2));
437 const G4double protonMass = 938.272;
438 const G4double neutronMass = 939.565;
442 if(
avv[particle] == 1 &&
zvv[particle] == 1) mass = protonMass;
443 if(
avv[particle] == 1 &&
zvv[particle] == 0) mass = neutronMass;
444 if(
avv[particle] == -1) mass = pionMass;
445 if(
avv[particle] > 1)
446 mass =
avv[particle] * protonMass +
zvv[particle] * neutronMass;
454 G4int nProton = 0, nNeutron = 0;
455 G4int nPiPlus = 0, nPiZero = 0, nPiMinus = 0;
456 G4int nH2 = 0, nHe3 = 0, nAlpha = 0;
458 G4int nFragments = 0;
459 G4int nParticles = 0;
462 if(
avv[i] == 1 &&
zvv[i] == 1) nProton++;
463 if(
avv[i] == 1 &&
zvv[i] == 0) nNeutron++;
464 if(
avv[i] == 0 &&
zvv[i] == 0) nGamma++;
465 if(
avv[i] == -1 &&
zvv[i] == 1) nPiPlus++;
466 if(
avv[i] == -1 &&
zvv[i] == 0) nPiZero++;
467 if(
avv[i] == -1 &&
zvv[i] == -1) nPiMinus++;
468 if(
avv[i] == 2 &&
zvv[i] == 1) nH2++;
469 if(
avv[i] == 3 &&
zvv[i] == 2) nHe3++;
470 if(
avv[i] == 4 &&
zvv[i] == 2) nAlpha++;
471 if(
zvv[i] > 2) nFragments++;
double A(double temperature)
G4double ecnz[EC2SUBROWS][EC2SUBCOLS]
G4double vgsld[ECLDROWS][ECLDCOLS]
G4double ecfnz[ECLDROWS][ECLDCOLS]
G4double alpha[ECLDROWS][ECLDCOLS]
G4double ecgnz[ECLDROWS][ECLDCOLS]
G4double rms[ECLDROWS][ECLDCOLS]
G4double beta2[ECLDROWSbeta][ECLDCOLSbeta]
G4double beta4[ECLDROWSbeta][ECLDCOLSbeta]
G4double xhe[XHESIZE][EENUCSIZE]
G4double efa[FBCOLS][FBROWS]
G4double bind[MASSIZEROWS][MASSIZECOLS]
G4double massexp[MASSIZEROWS][MASSIZECOLS]
G4int mexpiop[MASSIZEROWS][MASSIZECOLS]
G4double dm[PACESIZEROWS][PACESIZECOLS]
G4double enerj[VARNTPSIZE]
G4double getMass(G4int particle)
G4double pylab[VARNTPSIZE]
void addParticle(G4double A, G4double Z, G4double E, G4double P, G4double theta, G4double phi)
G4int getTotalBaryonNumber()
G4double pzlab[VARNTPSIZE]
G4double getTotalEnergy()
G4double plab[VARNTPSIZE]
G4double getMomentumSum()
G4double tetlab[VARNTPSIZE]
G4double philab[VARNTPSIZE]
G4double getTotalThreeMomentum()
G4int itypcasc[VARNTPSIZE]
G4double pxlab[VARNTPSIZE]
G4double zpcv[VOLANTSIZE]
G4bool copied[VOLANTSIZE]