34#define INCLXX_IN_GEANT4_MODE 1
56 namespace CrossSections {
58 return theCrossSections->elastic(p1,p2);
62 return theCrossSections->total(p1,p2);
66 return theCrossSections->NDeltaToNN(p1,p2);
70 return theCrossSections->NNToNDelta(p1,p2);
74 return theCrossSections->NNToxPiNN(xpi,p1,p2);
78 return theCrossSections->piNToDelta(p1,p2);
82 return theCrossSections->piNToxPiN(xpi,p1,p2);
86 return theCrossSections->piNToEtaN(p1,p2);
90 return theCrossSections->piNToOmegaN(p1,p2);
94 return theCrossSections->piNToEtaPrimeN(p1,p2);
98 return theCrossSections->etaNToPiN(p1,p2);
102 return theCrossSections->etaNToPiPiN(p1,p2);
106 return theCrossSections->omegaNToPiN(p1,p2);
110 return theCrossSections->omegaNToPiPiN(p1,p2);
114 return theCrossSections->etaPrimeNToPiN(p1,p2);
118 return theCrossSections->NNToNNEta(p1,p2);
122 return theCrossSections->NNToNNEtaExclu(p1,p2);
126 return theCrossSections->NNToNNEtaxPi(xpi,p1,p2);
130 return theCrossSections->NNToNDeltaEta(p1,p2);
135 return theCrossSections->NNToNNOmega(p1,p2);
139 return theCrossSections->NNToNNOmegaExclu(p1,p2);
143 return theCrossSections->NNToNNOmegaxPi(xpi,p1,p2);
147 return theCrossSections->NNToNDeltaOmega(p1,p2);
152 return theCrossSections->NYelastic(p1,p2);
156 return theCrossSections->NKbelastic(p1,p2);
160 return theCrossSections->NKelastic(p1,p2);
164 return theCrossSections->NNToNLK(p1,p2);
168 return theCrossSections->NNToNSK(p1,p2);
172 return theCrossSections->NNToNLKpi(p1,p2);
176 return theCrossSections->NNToNSKpi(p1,p2);
180 return theCrossSections->NNToNLK2pi(p1,p2);
184 return theCrossSections->NNToNSK2pi(p1,p2);
188 return theCrossSections->NNToNNKKb(p1,p2);
192 return theCrossSections->NNToMissingStrangeness(p1,p2);
196 return theCrossSections->NDeltaToNLK(p1,p2);
199 return theCrossSections->NDeltaToNSK(p1,p2);
202 return theCrossSections->NDeltaToDeltaLK(p1,p2);
205 return theCrossSections->NDeltaToDeltaSK(p1,p2);
209 return theCrossSections->NDeltaToNNKKb(p1,p2);
213 return theCrossSections->NpiToLK(p1,p2);
217 return theCrossSections->NpiToSK(p1,p2);
221 return theCrossSections->p_pimToSmKp(p1,p2);
225 return theCrossSections->p_pimToSzKz(p1,p2);
229 return theCrossSections->p_pizToSzKp(p1,p2);
233 return theCrossSections->NpiToLKpi(p1,p2);
237 return theCrossSections->NpiToSKpi(p1,p2);
241 return theCrossSections->NpiToLK2pi(p1,p2);
245 return theCrossSections->NpiToSK2pi(p1,p2);
249 return theCrossSections->NpiToNKKb(p1,p2);
253 return theCrossSections->NpiToMissingStrangeness(p1,p2);
257 return theCrossSections->NLToNS(p1,p2);
261 return theCrossSections->NSToNL(p1,p2);
265 return theCrossSections->NSToNS(p1,p2);
269 return theCrossSections->NKToNK(p1,p2);
273 return theCrossSections->NKToNKpi(p1,p2);
277 return theCrossSections->NKToNK2pi(p1,p2);
281 return theCrossSections->NKbToNKb(p1,p2);
285 return theCrossSections->NKbToSpi(p1,p2);
289 return theCrossSections->NKbToLpi(p1,p2);
293 return theCrossSections->NNbarElastic(p1,p2);
296 return theCrossSections->NNbarCEX(p1,p2);
299 return theCrossSections->NNbarToLLbar(p1,p2);
303 return theCrossSections->NNbarToNNbarpi(p1,p2);
306 return theCrossSections->NNbarToNNbar2pi(p1,p2);
309 return theCrossSections->NNbarToNNbar3pi(p1,p2);
313 return theCrossSections->NNbarToAnnihilation(p1,p2);
317 return theCrossSections->NKbToS2pi(p1,p2);
321 return theCrossSections->NKbToL2pi(p1,p2);
325 return theCrossSections->NKbToNKbpi(p1,p2);
329 return theCrossSections->NKbToNKb2pi(p1,p2);
334 return theCrossSections->calculateNNAngularSlope(energyCM, iso);
342 piPlusProjectile.
setEnergy(piPlusProjectile.
getMass()+projectileKineticEnergy);
345 piZeroProjectile.
setEnergy(piZeroProjectile.
getMass()+projectileKineticEnergy);
348 piMinusProjectile.
setEnergy(piMinusProjectile.
getMass()+projectileKineticEnergy);
353 const G4double sigmapipp =
total(&piPlusProjectile, &protonTarget);
354 const G4double sigmapipn =
total(&piPlusProjectile, &neutronTarget);
355 const G4double sigmapi0p =
total(&piZeroProjectile, &protonTarget);
356 const G4double sigmapi0n =
total(&piZeroProjectile, &neutronTarget);
357 const G4double sigmapimp =
total(&piMinusProjectile, &protonTarget);
358 const G4double sigmapimn =
total(&piMinusProjectile, &neutronTarget);
364 const G4double largestSigma = std::max(sigmapipp, std::max(sigmapipn, std::max(sigmapi0p, std::max(sigmapi0n, std::max(sigmapimp,sigmapimn)))));
367 return interactionDistance;
376 const G4double kineticEnergyPerNucleon = kineticEnergy / aSpecies.
theA;
379 protonProjectile.
setEnergy(protonProjectile.
getMass()+kineticEnergyPerNucleon);
382 neutronProjectile.
setEnergy(neutronProjectile.
getMass()+kineticEnergyPerNucleon);
387 const G4double sigmapp =
total(&protonProjectile, &protonTarget);
388 const G4double sigmapn =
total(&protonProjectile, &neutronTarget);
389 const G4double sigmann =
total(&neutronProjectile, &neutronTarget);
395 const G4double largestSigma = std::max(sigmapp, std::max(sigmapn, sigmann));
398 return interactionDistance;
414 const G4double sigmakpp =
total(&kpProjectile, &protonTarget);
415 const G4double sigmakpn =
total(&kpProjectile, &neutronTarget);
416 const G4double sigmakzp =
total(&kzProjectile, &protonTarget);
417 const G4double sigmakzn =
total(&kzProjectile, &neutronTarget);
419 const G4double largestSigma = std::max(sigmakpp, std::max(sigmakpn, std::max(sigmakzp, sigmakzn)));
422 return interactionDistance;
438 const G4double sigmakmp =
total(&kmProjectile, &protonTarget);
439 const G4double sigmakmn =
total(&kmProjectile, &neutronTarget);
440 const G4double sigmakzp =
total(&kzProjectile, &protonTarget);
441 const G4double sigmakzn =
total(&kzProjectile, &neutronTarget);
443 const G4double largestSigma = std::max(sigmakmp, std::max(sigmakmn, std::max(sigmakzp, sigmakzn)));
446 return interactionDistance;
469 const G4double sigmaln =
total(&lProjectile, &neutronTarget);
470 const G4double sigmaspp =
total(&spProjectile, &protonTarget);
471 const G4double sigmaspn =
total(&spProjectile, &neutronTarget);
472 const G4double sigmaszp =
total(&szProjectile, &protonTarget);
473 const G4double sigmaszn =
total(&szProjectile, &neutronTarget);
474 const G4double sigmasmp =
total(&smProjectile, &protonTarget);
475 const G4double sigmasmn =
total(&smProjectile, &neutronTarget);
477 const G4double largestSigma = std::max(sigmalp, std::max(sigmaln, std::max(sigmaspp, std::max(sigmaspn, std::max(sigmaszp, std::max(sigmaszn, std::max(sigmasmp, sigmasmn)))))));
480 return interactionDistance;
484 theCrossSections = c;
488 delete theCrossSections;
489 theCrossSections = NULL;
503 INCL_WARN(
"Truncated multipion cross sections were requested, but the specified maximum\n"
504 <<
"number of pions is <=0. Falling back to standard multipion cross-sections.\n");
Multipion, mesonic Resonances, strange cross sections and antinucleon as projectile.
Cross sections used in INCL4.6.
Multipion and mesonic Resonances cross sections.
Cross sections used in INCL Multipions.
Multipion, mesonic Resonances and strange cross sections.
Truncated multipion cross sections.
G4int getMaxNumberMultipions() const
Get the maximum number of pions for multipion collisions.
CrossSectionsType getCrossSectionsType() const
Get the Cross Section type.
Multipion, mesonic Resonances and strange cross sections.
Cross sections used in INCL4.6.
Multipion and mesonic Resonances cross sections.
Cross sections used in INCL Multipions.
Multipion, mesonic Resonances and strange cross sections.
Truncated multipion cross sections.
Abstract interface for the cross-section classes.
const ThreeVector & adjustMomentumFromEnergy()
Rescale the momentum to match the total energy.
void setEnergy(G4double energy)
G4double getMass() const
Get the cached particle mass.
G4double NSToNL(Particle const *const p1, Particle const *const p2)
G4double NNToNNKKb(Particle const *const p1, Particle const *const p2)
G4double elastic(Particle const *const p1, Particle const *const p2)
G4double NpiToSK(Particle const *const p1, Particle const *const p2)
G4double NNToNNOmega(Particle const *const p1, Particle const *const p2)
G4double NNToNNEta(Particle const *const p1, Particle const *const p2)
G4double piNToOmegaN(Particle const *const p1, Particle const *const p2)
G4double NNbarCEX(Particle const *const p1, Particle const *const p2)
G4double NKbToNKb2pi(Particle const *const p1, Particle const *const p2)
G4double interactionDistanceKbarN(const G4double projectileKineticEnergy)
Compute the "interaction distance".
G4double interactionDistancePiN(const G4double projectileKineticEnergy)
Compute the "interaction distance".
G4double NNToNDeltaOmega(Particle const *const p1, Particle const *const p2)
G4double NDeltaToDeltaLK(Particle const *const p1, Particle const *const p2)
G4double NNToNSKpi(Particle const *const p1, Particle const *const p2)
G4double etaNToPiN(Particle const *const p1, Particle const *const p2)
G4double NDeltaToNNKKb(Particle const *const p1, Particle const *const p2)
G4double NKbToLpi(Particle const *const p1, Particle const *const p2)
G4double NNToNLK2pi(Particle const *const p1, Particle const *const p2)
G4double etaNToPiPiN(Particle const *const p1, Particle const *const p2)
G4double NYelastic(Particle const *const p1, Particle const *const p2)
G4double NKbToS2pi(Particle const *const p1, Particle const *const p2)
G4double piNToEtaN(Particle const *const p1, Particle const *const p2)
G4double NNbarToAnnihilation(Particle const *const p1, Particle const *const p2)
Nucleon-AntiNucleon total annihilation cross sections.
G4double omegaNToPiN(Particle const *const p1, Particle const *const p2)
G4double NDeltaToNSK(Particle const *const p1, Particle const *const p2)
G4double NKbToSpi(Particle const *const p1, Particle const *const p2)
G4double NNToNDelta(Particle const *const p1, Particle const *const p2)
G4double p_pimToSzKz(Particle const *const p1, Particle const *const p2)
G4double NNToNSK(Particle const *const p1, Particle const *const p2)
G4double NDeltaToNLK(Particle const *const p1, Particle const *const p2)
G4double NLToNS(Particle const *const p1, Particle const *const p2)
G4double piNToDelta(Particle const *const p1, Particle const *const p2)
G4double NKbToNKb(Particle const *const p1, Particle const *const p2)
G4double NNToNSK2pi(Particle const *const p1, Particle const *const p2)
G4double NNbarToNNbar3pi(Particle const *const p1, Particle const *const p2)
G4double NNToNLK(Particle const *const p1, Particle const *const p2)
Strange cross sections.
G4double NNToNNEtaExclu(Particle const *const p1, Particle const *const p2)
G4double interactionDistanceKN(const G4double projectileKineticEnergy)
Compute the "interaction distance".
G4double NNToNDeltaEta(Particle const *const p1, Particle const *const p2)
G4double NNToNNOmegaxPi(const G4int xpi, Particle const *const p1, Particle const *const p2)
G4double NNToNNEtaxPi(const G4int xpi, Particle const *const p1, Particle const *const p2)
G4double NNbarToNNbarpi(Particle const *const p1, Particle const *const p2)
Nucleon-AntiNucleon to Nucleon-AntiNucleon + pions cross sections.
G4double NKelastic(Particle const *const p1, Particle const *const p2)
G4double interactionDistanceYN(const G4double projectileKineticEnergy)
Compute the "interaction distance".
G4double NSToNS(Particle const *const p1, Particle const *const p2)
G4double NpiToNKKb(Particle const *const p1, Particle const *const p2)
G4double NpiToLK2pi(Particle const *const p1, Particle const *const p2)
G4double omegaNToPiPiN(Particle const *const p1, Particle const *const p2)
G4double NDeltaToDeltaSK(Particle const *const p1, Particle const *const p2)
G4double NpiToMissingStrangeness(Particle const *const p1, Particle const *const p2)
G4double NNbarToNNbar2pi(Particle const *const p1, Particle const *const p2)
G4double total(Particle const *const p1, Particle const *const p2)
void setCrossSections(ICrossSections *c)
G4double NDeltaToNN(Particle const *const p1, Particle const *const p2)
G4double NpiToLKpi(Particle const *const p1, Particle const *const p2)
G4double piNToEtaPrimeN(Particle const *const p1, Particle const *const p2)
G4double NKbelastic(Particle const *const p1, Particle const *const p2)
void deleteCrossSections()
G4double NKbToNKbpi(Particle const *const p1, Particle const *const p2)
G4double NNToNLKpi(Particle const *const p1, Particle const *const p2)
G4double p_pizToSzKp(Particle const *const p1, Particle const *const p2)
G4double NKbToL2pi(Particle const *const p1, Particle const *const p2)
void initialize(Config const *const theConfig)
G4double etaPrimeNToPiN(Particle const *const p1, Particle const *const p2)
G4double NNToxPiNN(const G4int xpi, Particle const *const p1, Particle const *const p2)
G4double NKToNK2pi(Particle const *const p1, Particle const *const p2)
G4double NKToNKpi(Particle const *const p1, Particle const *const p2)
G4double calculateNNAngularSlope(G4double energyCM, G4int iso)
Calculate the slope of the NN DDXS.
G4double NNToNNOmegaExclu(Particle const *const p1, Particle const *const p2)
G4double interactionDistanceNN(const ParticleSpecies &aSpecies, const G4double kineticEnergy)
Compute the "interaction distance".
G4double NpiToSK2pi(Particle const *const p1, Particle const *const p2)
G4double NKToNK(Particle const *const p1, Particle const *const p2)
G4double NNToMissingStrangeness(Particle const *const p1, Particle const *const p2)
G4double piNToxPiN(const G4int xpi, Particle const *const p1, Particle const *const p2)
G4double NNbarToLLbar(Particle const *const p1, Particle const *const p2)
G4double NpiToLK(Particle const *const p1, Particle const *const p2)
G4double NNbarElastic(Particle const *const p1, Particle const *const p2)
antiparticle cross sections
G4double p_pimToSmKp(Particle const *const p1, Particle const *const p2)
G4double NpiToSKpi(Particle const *const p1, Particle const *const p2)
@ MultiPionsAndResonancesCrossSections
@ AntiparticlesCrossSections
@ MultiPionsCrossSections
@ TruncatedMultiPionsCrossSections
@ StrangenessCrossSections