Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4INCL::Clustering Namespace Reference

Cluster formation. More...

Functions

ClustergetCluster (Nucleus *n, Particle *p)
 Call the clustering algorithm.
 
G4bool clusterCanEscape (Nucleus const *const n, Cluster const *const c)
 Determine whether the cluster can escape or not.
 
IClusteringModelgetClusteringModel ()
 Get the clustering model.
 
void setClusteringModel (IClusteringModel *const model)
 Set the clustering model.
 
void deleteClusteringModel ()
 Delete the clustering model.
 
void initialize (Config const *const theConfig)
 Initialize the clustering model based on the Config object.
 

Detailed Description

Cluster formation.

Function Documentation

◆ clusterCanEscape()

G4bool G4INCL::Clustering::clusterCanEscape ( Nucleus const *const  n,
Cluster const *const  c 
)

Determine whether the cluster can escape or not.

Definition at line 68 of file G4INCLClustering.cc.

68 {
69 return theClusteringModel->clusterCanEscape(n, c);
70 }

Referenced by G4INCL::SurfaceAvatar::getChannel().

◆ deleteClusteringModel()

void G4INCL::Clustering::deleteClusteringModel ( )

Delete the clustering model.

Definition at line 78 of file G4INCLClustering.cc.

78 {
79 delete theClusteringModel;
80 theClusteringModel = NULL;
81 }

Referenced by G4INCL::INCL::~INCL().

◆ getCluster()

Cluster * G4INCL::Clustering::getCluster ( Nucleus n,
Particle p 
)

Call the clustering algorithm.

Choose a cluster candidate to be produced. At this point we don't yet decide if it can pass through the Coulomb barrier or not.

Definition at line 58 of file G4INCLClustering.cc.

58 {
59#if !defined(NDEBUG) && !defined(INCLXX_IN_GEANT4_MODE)
60 Cluster * const c=theClusteringModel->getCluster(n,p);
61// assert(!c || c->getA()<=n->getA()/2);
62 return c;
63#else
64 return theClusteringModel->getCluster(n,p);
65#endif
66 }

Referenced by G4INCL::SurfaceAvatar::getChannel().

◆ getClusteringModel()

IClusteringModel * G4INCL::Clustering::getClusteringModel ( )

Get the clustering model.

Definition at line 72 of file G4INCLClustering.cc.

72{ return theClusteringModel; }

◆ initialize()

void G4INCL::Clustering::initialize ( Config const *const  theConfig)

Initialize the clustering model based on the Config object.

Definition at line 83 of file G4INCLClustering.cc.

83 {
84 ClusterAlgorithmType clusterAlgorithm = theConfig->getClusterAlgorithm();
85 if(clusterAlgorithm == IntercomparisonClusterAlgorithm)
87 else // if(clusterAlgorithm == NoClusterAlgorithm)
89 }
Cluster coalescence algorithm used in the IAEA intercomparison.
void setClusteringModel(IClusteringModel *const model)
Set the clustering model.

Referenced by G4INCL::INCL::INCL().

◆ setClusteringModel()

void G4INCL::Clustering::setClusteringModel ( IClusteringModel *const  model)

Set the clustering model.

Definition at line 74 of file G4INCLClustering.cc.

74 {
75 theClusteringModel = model;
76 }

Referenced by initialize().