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

Cluster formation. More...

Functions

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

Detailed Description

Cluster formation.

Function Documentation

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  }

Here is the caller graph for this function:

void G4INCL::Clustering::deleteClusteringModel ( )

Delete the clustering model.

Definition at line 78 of file G4INCLClustering.cc.

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

Here is the caller graph for this function:

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  }
const char * p
Definition: xmltok.h:285

Here is the caller graph for this function:

IClusteringModel * G4INCL::Clustering::getClusteringModel ( )

Get the clustering model.

Definition at line 72 of file G4INCLClustering.cc.

72 { return theClusteringModel; }
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)
86  setClusteringModel(new ClusteringModelIntercomparison(theConfig));
87  else // if(clusterAlgorithm == NoClusterAlgorithm)
88  setClusteringModel(new ClusteringModelNone);
89  }
void setClusteringModel(IClusteringModel *const model)
Set the clustering model.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Set the clustering model.

Definition at line 74 of file G4INCLClustering.cc.

74  {
75  theClusteringModel = model;
76  }
const XML_Char XML_Content * model
Definition: expat.h:151

Here is the caller graph for this function: