Geant4-11
Public Member Functions | Private Attributes
G4INCL::PauliStandard Class Reference

#include <G4INCLPauliStandard.hh>

Inheritance diagram for G4INCL::PauliStandard:
G4INCL::IPauli

Public Member Functions

G4double getBlockingProbability (Particle const *const, Nucleus const *const) const
 
G4bool isBlocked (ParticleList const &, Nucleus const *const)
 
 PauliStandard ()
 
 ~PauliStandard ()
 

Private Attributes

const G4double cellSize
 Phase-space blocking cell. More...
 

Detailed Description

Definition at line 44 of file G4INCLPauliStandard.hh.

Constructor & Destructor Documentation

◆ PauliStandard()

G4INCL::PauliStandard::PauliStandard ( )

Definition at line 46 of file G4INCLPauliStandard.cc.

46 :
47 cellSize(std::pow(2.38*4.5*Math::pi,1./6.)*std::sqrt(PhysicalConstants::hc))
48 {
49 INCL_DEBUG("Initialising PauliStandard. cellSize=" << cellSize << '\n');
50 }
#define INCL_DEBUG(x)
const G4double cellSize
Phase-space blocking cell.
const G4double pi
const G4double hc
[MeV*fm]

References cellSize, and INCL_DEBUG.

◆ ~PauliStandard()

G4INCL::PauliStandard::~PauliStandard ( )

Definition at line 52 of file G4INCLPauliStandard.cc.

52{}

Member Function Documentation

◆ getBlockingProbability()

G4double G4INCL::PauliStandard::getBlockingProbability ( Particle const * const  particle,
Nucleus const * const  nucleus 
) const

Definition at line 62 of file G4INCLPauliStandard.cc.

62 {
63 const G4double r0 = ParticleTable::getNuclearRadius(particle->getType(), nucleus->getA(), nucleus->getZ());
64 const G4double pFermi = nucleus->getPotential()->getFermiMomentum(particle);
65
66 const G4double pbl = cellSize * std::sqrt(pFermi/r0);
67 const G4double rbl = pbl * r0/pFermi;
68 const G4double maxVolR = rbl;
69 const G4double maxVolP = pbl;
70 G4double vol = std::pow(4.*Math::pi/3.0, 2)
71 * std::pow(maxVolR*maxVolP/(Math::twoPi*PhysicalConstants::hc), 3);
72
73 const G4double rdeq = nucleus->getUniverseRadius();
74 const G4double rs = particle->getPosition().mag();
75
76 if(rs - maxVolR > rdeq) {
77 return 0.0;
78 }
79
80 if(rs + maxVolR > rdeq) {
81 vol = vol * 0.5 * (rdeq - rs + maxVolR) / maxVolR;
82 }
83
84 // Get the list of particles that are currently inside the
85 // nucleus.
86 ParticleList const &particles = nucleus->getStore()->getParticles();
87
88 G4int nl = 0;
89 for(ParticleIter it=particles.begin(), e=particles.end(); it!=e; ++it) {
90 // Skip comparing with the same particle
91 if( (*it)->getID() == particle->getID() ) continue;
92
93 if((*it)->getType() == particle->getType()) {
94 const ThreeVector dx2v = particle->getPosition() - (*it)->getPosition();
95 const G4double dx2 = dx2v.mag2();
96 if(dx2 > maxVolR * maxVolR) continue;
97
98 const ThreeVector dp2v = particle->getMomentum() - (*it)->getMomentum();
99 const G4double dp2 = dp2v.mag2();
100 if(dp2 > maxVolP * maxVolP) continue;
101
102 nl++;
103 }
104 }
105 const G4double blockingProbability = ((G4double) nl) / vol / 2.0;
106
107 if(blockingProbability > 1.0) return 1.0;
108 else if(blockingProbability < 0.0) return 0.0;
109 else return blockingProbability;
110 }
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
const G4double twoPi
G4double getNuclearRadius(const ParticleType t, const G4int A, const G4int Z)
ParticleList::const_iterator ParticleIter

References cellSize, G4INCL::Particle::getA(), G4INCL::NuclearPotential::INuclearPotential::getFermiMomentum(), G4INCL::Particle::getID(), G4INCL::Particle::getMomentum(), G4INCL::ParticleTable::getNuclearRadius(), G4INCL::Store::getParticles(), G4INCL::Particle::getPosition(), G4INCL::Nucleus::getPotential(), G4INCL::Nucleus::getStore(), G4INCL::Particle::getType(), G4INCL::Nucleus::getUniverseRadius(), G4INCL::Particle::getZ(), G4INCL::PhysicalConstants::hc, G4INCL::ThreeVector::mag(), G4INCL::ThreeVector::mag2(), G4INCL::Math::pi, and G4INCL::Math::twoPi.

Referenced by isBlocked().

◆ isBlocked()

G4bool G4INCL::PauliStandard::isBlocked ( ParticleList const &  pL,
Nucleus const * const  n 
)
virtual

Implements G4INCL::IPauli.

Definition at line 54 of file G4INCLPauliStandard.cc.

54 {
55 for(ParticleIter p=pL.begin(), e=pL.end(); p!=e; ++p) {
56 if( !(*p)->isNucleon() ) continue;
57 if(getBlockingProbability(*p, n) > Random::shoot()) return true;
58 }
59 return false;
60 }
G4double getBlockingProbability(Particle const *const, Nucleus const *const) const
G4double shoot()
Definition: G4INCLRandom.cc:93

References getBlockingProbability(), CLHEP::detail::n, and G4INCL::Random::shoot().

Field Documentation

◆ cellSize

const G4double G4INCL::PauliStandard::cellSize
private

Phase-space blocking cell.

This variable is the third root of volume of the blocking phase-space cell. Its value is

\[ {\left(2.38\cdot\frac{9\pi}{2}\right)}^{1/6}\sqrt\hbar \]

which yields a phase-space test volume of $2.38h$.

Definition at line 60 of file G4INCLPauliStandard.hh.

Referenced by getBlockingProbability(), and PauliStandard().


The documentation for this class was generated from the following files: