Geant4-11
Namespaces | Functions
G4INCL::Clustering Namespace Reference

Cluster formation. More...

Namespaces

namespace  anonymous_namespace{G4INCLClustering.cc}
 

Functions

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

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 {
70 }
virtual G4bool clusterCanEscape(Nucleus const *const, Cluster const *const)=0

References G4INCL::IClusteringModel::clusterCanEscape(), CLHEP::detail::n, and G4INCL::Clustering::anonymous_namespace{G4INCLClustering.cc}::theClusteringModel.

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 }

References G4INCL::Clustering::anonymous_namespace{G4INCLClustering.cc}::theClusteringModel.

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)
61// assert(!c || c->getA()<=n->getA()/2);
62 return c;
63#else
65#endif
66 }
virtual Cluster * getCluster(Nucleus *, Particle *)=0

References G4INCL::IClusteringModel::getCluster(), CLHEP::detail::n, and G4INCL::Clustering::anonymous_namespace{G4INCLClustering.cc}::theClusteringModel.

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; }

References G4INCL::Clustering::anonymous_namespace{G4INCLClustering.cc}::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.
@ IntercomparisonClusterAlgorithm

References G4INCL::Config::getClusterAlgorithm(), G4INCL::IntercomparisonClusterAlgorithm, and setClusteringModel().

Referenced by G4INCL::INCL::INCL(), and G4INCL::ParticleTable::initialize().

◆ 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 }

References G4INCL::Clustering::anonymous_namespace{G4INCLClustering.cc}::theClusteringModel.

Referenced by initialize().