Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -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;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user