33 #define INCLXX_IN_GEANT4_MODE 1
47 :theNucleus(n), particle1(p1), particle2(p2)
86 apt = (800.0/
pl)*(800.0/pl);
87 G4double cpt = std::max(6.23 * std::exp(-1.79*x), 0.3);
89 G4double aaa = (1 + apt) * (1 - std::exp(-btmax))/b;
95 argu = std::exp(-4.0 * argu);
98 G4double aac = cpt * (1.0 - argu)/alphac;
101 z = std::exp(-4.0 * psq *alphac);
103 y = 1.0 - ranres*(1.0 -
z);
104 T = std::log(y)/alphac;
110 if(std::abs(ctet) > 1.0) ctet =
Math::sign(ctet);
111 G4double stet = std::sqrt(1.0 - ctet*ctet);
121 if(xx >= (zz * 1.0
e-8)) {
126 ez[0] = p.
getX() / pnorm;
127 ez[1] = p.
getY() / pnorm;
128 ez[2] = p.
getZ() / pnorm;
131 ex[0] = p.
getY() / yn;
132 ex[1] = -p.
getX() / yn;
139 G4double pX = (ex[0]*cfi*stet + ey[0]*sfi*stet + ez[0]*ctet) * pnorm;
140 G4double pY = (ex[1]*cfi*stet + ey[1]*sfi*stet + ez[1]*ctet) * pnorm;
141 G4double pZ = (ex[2]*cfi*stet + ey[2]*sfi*stet + ez[2]*ctet) * pnorm;
164 apt = std::pow(800.0/pl, 2);
166 if(iexpi == 1 || rndm > 1.0/(1.0 + apt)) {