Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4CascadeCoalescence Class Reference

#include <G4CascadeCoalescence.hh>

Public Member Functions

 G4CascadeCoalescence (G4int verbose=0)
 
virtual ~G4CascadeCoalescence ()
 
void FindClusters (G4CollisionOutput &finalState)
 
void setVerboseLevel (G4int verbose)
 

Detailed Description

Definition at line 48 of file G4CascadeCoalescence.hh.

Constructor & Destructor Documentation

◆ G4CascadeCoalescence()

G4CascadeCoalescence::G4CascadeCoalescence ( G4int  verbose = 0)

Definition at line 76 of file G4CascadeCoalescence.cc.

77 : verboseLevel(verbose), thisFinalState(0), thisHadrons(0) {}

◆ ~G4CascadeCoalescence()

G4CascadeCoalescence::~G4CascadeCoalescence ( )
virtual

Definition at line 79 of file G4CascadeCoalescence.cc.

79{}

Member Function Documentation

◆ FindClusters()

void G4CascadeCoalescence::FindClusters ( G4CollisionOutput finalState)

Definition at line 84 of file G4CascadeCoalescence.cc.

84 {
85 if (verboseLevel)
86 G4cout << " >>> G4CascadeCoalescence::FindClusters()" << G4endl;
87
88 thisFinalState = &finalState; // Save pointers for use in processing
89 thisHadrons = &finalState.getOutgoingParticles();
90
91 if (verboseLevel>1) thisFinalState->printCollisionOutput(); // Before
92
93 selectCandidates();
94 createNuclei();
95 removeNucleons();
96
97 if (verboseLevel>1) thisFinalState->printCollisionOutput(); // After
98}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
void printCollisionOutput(std::ostream &os=G4cout) const
const std::vector< G4InuclElementaryParticle > & getOutgoingParticles() const

Referenced by G4IntraNucleiCascader::finishCascade().

◆ setVerboseLevel()

void G4CascadeCoalescence::setVerboseLevel ( G4int  verbose)
inline

Definition at line 56 of file G4CascadeCoalescence.hh.

56{ verboseLevel = verbose; }

Referenced by G4IntraNucleiCascader::finishCascade().


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