Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4INCL::PauliStandard Class Reference

#include <G4INCLPauliStandard.hh>

Inheritance diagram for G4INCL::PauliStandard:
Collaboration diagram for G4INCL::PauliStandard:

Public Member Functions

 PauliStandard ()
 
 ~PauliStandard ()
 
G4bool isBlocked (ParticleList const &, Nucleus const *const)
 
G4double getBlockingProbability (Particle const *const, Nucleus const *const) const
 
- Public Member Functions inherited from G4INCL::IPauli
 IPauli ()
 
virtual ~IPauli ()
 

Detailed Description

Definition at line 44 of file G4INCLPauliStandard.hh.

Constructor & Destructor Documentation

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  }
const G4double pi
const G4double hc
[MeV*fm]
#define INCL_DEBUG(x)
G4INCL::PauliStandard::~PauliStandard ( )

Definition at line 52 of file G4INCLPauliStandard.cc.

52 {}

Member Function Documentation

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  }
const G4double pi
const G4double hc
[MeV*fm]
int G4int
Definition: G4Types.hh:78
G4double getNuclearRadius(const ParticleType t, const G4int A, const G4int Z)
const G4double twoPi
double G4double
Definition: G4Types.hh:76
ParticleList::const_iterator ParticleIter

Here is the call graph for this function:

Here is the caller graph for this function:

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  }
const char * p
Definition: xmltok.h:285
G4double getBlockingProbability(Particle const *const, Nucleus const *const) const
G4double shoot()
Definition: G4INCLRandom.cc:93
ParticleList::const_iterator ParticleIter

Here is the call graph for this function:


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