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

Pauli blocking. More...

Functions

G4bool isBlocked (ParticleList const &p, Nucleus const *const n)
 Check Pauli blocking. More...
 
G4bool isCDPPBlocked (ParticleList const &p, Nucleus const *const n)
 Check CDPP blocking. More...
 
IPauligetBlocker ()
 Get the Pauli blocker algorithm. More...
 
IPauligetCDPP ()
 Get the CDPP blocker algorithm. More...
 
void setBlocker (IPauli *const)
 Set the Pauli blocker algorithm. More...
 
void setCDPP (IPauli *const)
 Set the CDPP blocker algorithm. More...
 
void deleteBlockers ()
 Delete blockers. More...
 
void initialize (Config const *const aConfig)
 Initialise blockers according to a Config object. More...
 

Detailed Description

Pauli blocking.

Function Documentation

void G4INCL::Pauli::deleteBlockers ( )

Delete blockers.

Definition at line 87 of file G4INCLPauliBlocking.cc.

87  {
88  delete thePauliBlocker;
89  thePauliBlocker=NULL;
90  delete theCDPP;
91  theCDPP=NULL;
92  }

Here is the caller graph for this function:

IPauli * G4INCL::Pauli::getBlocker ( )

Get the Pauli blocker algorithm.

Definition at line 57 of file G4INCLPauliBlocking.cc.

57 { return thePauliBlocker; }
IPauli * G4INCL::Pauli::getCDPP ( )

Get the CDPP blocker algorithm.

Definition at line 59 of file G4INCLPauliBlocking.cc.

59 { return theCDPP; }
void G4INCL::Pauli::initialize ( Config const *const  aConfig)

Initialise blockers according to a Config object.

Definition at line 94 of file G4INCLPauliBlocking.cc.

94  {
95  // Select the Pauli blocking algorithm:
96  PauliType pauli = aConfig->getPauliType();
97  if(pauli == StrictStatisticalPauli)
98  setBlocker(new PauliStrictStandard);
99  else if(pauli == StatisticalPauli)
100  setBlocker(new PauliStandard);
101  else if(pauli == StrictPauli)
102  setBlocker(new PauliStrict);
103  else if(pauli == GlobalPauli)
104  setBlocker(new PauliGlobal);
105  else if(pauli == NoPauli)
106  setBlocker(NULL);
107 
108  if(aConfig->getCDPP())
109  setCDPP(new CDPP);
110  else
111  setCDPP(NULL);
112 
113  }
void setCDPP(IPauli *const)
Set the CDPP blocker algorithm.
void setBlocker(IPauli *const)
Set the Pauli blocker algorithm.

Here is the call graph for this function:

Here is the caller graph for this function:

G4bool G4INCL::Pauli::isBlocked ( ParticleList const &  p,
Nucleus const *const  n 
)

Check Pauli blocking.

Note: This is a "pure" function: it doesn't retain or modify any state at all and thus only depends on its arguments.

Parameters
plist of modified and created particles
nthe nucleus

Definition at line 69 of file G4INCLPauliBlocking.cc.

69  {
70  G4bool isPauliBlocked = false;
71  if(thePauliBlocker != 0) {
72  isPauliBlocked = thePauliBlocker->isBlocked(modifiedAndCreated, nucleus);
73  }
74 
75  return isPauliBlocked;
76  }
bool G4bool
Definition: G4Types.hh:79

Here is the caller graph for this function:

G4bool G4INCL::Pauli::isCDPPBlocked ( ParticleList const &  p,
Nucleus const *const  n 
)

Check CDPP blocking.

Note: This is a "pure" function: it doesn't retain or modify any state at all and thus only depends on its arguments.

Parameters
plist of created particles
nthe nucleus

Definition at line 78 of file G4INCLPauliBlocking.cc.

78  {
79  G4bool isCDPPBlocked = false;
80  if(theCDPP != 0) {
81  isCDPPBlocked = theCDPP->isBlocked(created, nucleus);
82  }
83 
84  return isCDPPBlocked;
85  }
G4bool isCDPPBlocked(ParticleList const &p, Nucleus const *const n)
Check CDPP blocking.
bool G4bool
Definition: G4Types.hh:79

Here is the caller graph for this function:

void G4INCL::Pauli::setBlocker ( IPauli * const  pauliBlocker)

Set the Pauli blocker algorithm.

Definition at line 61 of file G4INCLPauliBlocking.cc.

61  {
62  thePauliBlocker = pauliBlocker;
63  }

Here is the caller graph for this function:

void G4INCL::Pauli::setCDPP ( IPauli * const  cdpp)

Set the CDPP blocker algorithm.

Definition at line 65 of file G4INCLPauliBlocking.cc.

65  {
66  theCDPP = cdpp;
67  }

Here is the caller graph for this function: