Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
@@ -30,8 +30,6 @@
// Sylvie Leray, CEA
// Joseph Cugnon, University of Liege
//
// INCL++ revision: v5.1.8
//
#define INCLXX_IN_GEANT4_MODE 1
#include "globals.hh"
@@ -42,6 +40,7 @@
#include "G4INCLParticle.hh"
#include "G4INCLNucleus.hh"
#include "G4INCLIPauli.hh"
#include "G4INCLINuclearPotential.hh"
namespace G4INCL {
class CDPP : public IPauli {
@@ -49,9 +48,30 @@ namespace G4INCL {
CDPP();
~CDPP();
G4bool isBlocked(ParticleList const, Nucleus const * const) const;
G4bool isBlocked(ParticleList const &, Nucleus const * const);
inline void processOneParticle(Particle const * const p) {
if(p->isNucleon()) {
const G4double Tf = thePotential->getFermiEnergy(p);
const G4double T = p->getKineticEnergy();
if(T > Tf) {
const G4double sep = thePotential->getSeparationEnergy(p);
Sk += sep;
} else {
TbelowTf += T - p->getPotentialEnergy();
}
} else if(p->isPion() || p->isResonance()) {
const G4double sep = thePotential->getSeparationEnergy(p);
Sk += sep;
}
}
protected:
G4double Sk;
G4double TbelowTf;
NuclearPotential::INuclearPotential const * thePotential;
};
}