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

#include <G4CascadeDeexcitation.hh>

+ Inheritance diagram for G4CascadeDeexcitation:

Public Member Functions

 G4CascadeDeexcitation ()
 
virtual ~G4CascadeDeexcitation ()
 
virtual void collide (G4InuclParticle *, G4InuclParticle *target, G4CollisionOutput &globalOutput)
 
virtual void deExcite (G4Fragment *fragment, G4CollisionOutput &globalOutput)
 
- Public Member Functions inherited from G4VCascadeDeexcitation
 G4VCascadeDeexcitation (const char *name)
 
virtual ~G4VCascadeDeexcitation ()
 
virtual void collide (G4InuclParticle *, G4InuclParticle *target, G4CollisionOutput &globalOutput)=0
 
virtual void deExcite (G4Fragment *fragment, G4CollisionOutput &globalOutput)=0
 
- Public Member Functions inherited from G4CascadeColliderBase
 G4CascadeColliderBase (const char *name, G4int verbose=0)
 
virtual ~G4CascadeColliderBase ()
 
virtual void rescatter (G4InuclParticle *, G4KineticTrackVector *, G4V3DNucleus *, G4CollisionOutput &)
 
virtual void setVerboseLevel (G4int verbose=0)
 
virtual void setConservationChecks (G4bool doBalance=true)
 
- Public Member Functions inherited from G4VCascadeCollider
 G4VCascadeCollider (const char *name, G4int verbose=0)
 
virtual ~G4VCascadeCollider ()
 
virtual void collide (G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)=0
 
virtual void setVerboseLevel (G4int verbose=0)
 

Additional Inherited Members

- Protected Member Functions inherited from G4CascadeColliderBase
virtual G4bool useEPCollider (G4InuclParticle *bullet, G4InuclParticle *target) const
 
virtual G4bool explosion (G4InuclNuclei *target) const
 
virtual G4bool explosion (G4Fragment *target) const
 
virtual G4bool explosion (G4int A, G4int Z, G4double excitation) const
 
virtual G4bool inelasticInteractionPossible (G4InuclParticle *bullet, G4InuclParticle *target, G4double ekin) const
 
virtual G4bool validateOutput (G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
 
virtual G4bool validateOutput (G4InuclParticle *bullet, G4InuclParticle *target, const std::vector< G4InuclElementaryParticle > &particles)
 
virtual G4bool validateOutput (G4InuclParticle *bullet, G4InuclParticle *target, const std::vector< G4InuclNuclei > &fragments)
 
- Protected Member Functions inherited from G4VCascadeCollider
virtual void setName (const char *name)
 
- Protected Attributes inherited from G4VCascadeDeexcitation
G4CollisionOutput output
 
- Protected Attributes inherited from G4CascadeColliderBase
G4InteractionCase interCase
 
G4bool doConservationChecks
 
G4CascadeCheckBalancebalance
 
- Protected Attributes inherited from G4VCascadeCollider
const char * theName
 
G4int verboseLevel
 

Detailed Description

Definition at line 44 of file G4CascadeDeexcitation.hh.

Constructor & Destructor Documentation

◆ G4CascadeDeexcitation()

G4CascadeDeexcitation::G4CascadeDeexcitation ( )

Definition at line 45 of file G4CascadeDeexcitation.cc.

46 : G4VCascadeDeexcitation("G4CascadeDeexcitation"),
47 theBigBanger(new G4BigBanger),
48 theNonEquilibriumEvaporator(new G4NonEquilibriumEvaporator),
49 theEquilibriumEvaporator(new G4EquilibriumEvaporator) {}

◆ ~G4CascadeDeexcitation()

G4CascadeDeexcitation::~G4CascadeDeexcitation ( )
virtual

Definition at line 51 of file G4CascadeDeexcitation.cc.

51 {
52 delete theBigBanger;
53 delete theNonEquilibriumEvaporator;
54 delete theEquilibriumEvaporator;
55}

Member Function Documentation

◆ collide()

void G4CascadeDeexcitation::collide ( G4InuclParticle ,
G4InuclParticle target,
G4CollisionOutput globalOutput 
)
virtual

Implements G4VCascadeDeexcitation.

Definition at line 80 of file G4CascadeDeexcitation.cc.

82 {
83 if (verboseLevel > 1) {
84 G4cout << " >>> G4CascadeDeexcitation::collide" << G4endl;
85 }
86
87 // Initialize colliders verbosity
88 theBigBanger->setVerboseLevel(verboseLevel);
89 theNonEquilibriumEvaporator->setVerboseLevel(verboseLevel);
90 theEquilibriumEvaporator->setVerboseLevel(verboseLevel);
91
92 // Ensure that input state is sensible
93 G4InuclNuclei* ntarget = dynamic_cast<G4InuclNuclei*>(target);
94 if (!ntarget) {
95 G4cerr << " G4CascadeDeexcitation ERROR: target must be G4InuclNuclei"
96 << G4endl;
97 return;
98 }
99
100 // Check if fragment should be broken up
101 if (explosion(ntarget)) {
102 if (verboseLevel > 1) G4cout << " big bang after cascade " << G4endl;
103
104 // Add result of explosion diretly to output and exit
105 theBigBanger->collide(0, target, globalOutput);
106 return;
107 }
108
109 // Fragment is unstable nucleus
110 output.reset();
111 theNonEquilibriumEvaporator->collide(0, target, output);
112
113 if (verboseLevel > 1) {
114 G4cout << " After NonEquilibriumEvaporator " << G4endl;
115 }
116
117 // Copy evaporated particles (not nuclear fragment) to output
119
120 // Use nuclear fragment left from non-equilibrium for next step
121 // NOT: Must make a copy before reset occurs below
123
124 output.reset();
125 theEquilibriumEvaporator->collide(0, &exciton, output);
126
127 if (verboseLevel > 1) {
128 G4cout << " After EquilibriumEvaporator " << G4endl;
129 }
130
131 globalOutput.add(output); // Evaporated particles and nucleus
132}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cerr
G4DLLIMPORT std::ostream G4cout
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
Definition: G4BigBanger.cc:65
virtual void setVerboseLevel(G4int verbose=0)
virtual G4bool explosion(G4InuclNuclei *target) const
const std::vector< G4InuclNuclei > & getOutgoingNuclei() const
const std::vector< G4InuclElementaryParticle > & getOutgoingParticles() const
void add(const G4CollisionOutput &right)
void addOutgoingParticles(const std::vector< G4InuclElementaryParticle > &particles)
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)

Referenced by deExcite().

◆ deExcite()

void G4CascadeDeexcitation::deExcite ( G4Fragment fragment,
G4CollisionOutput globalOutput 
)
virtual

Implements G4VCascadeDeexcitation.

Definition at line 60 of file G4CascadeDeexcitation.cc.

61 {
62 if (verboseLevel > 1) {
63 G4cout << " >>> G4CascadeDeexcitation::deExcite" << G4endl;
64 }
65
66 if (!fragment) {
67 if (verboseLevel > 1) G4cerr << " NULL pointer fragment" << G4endl;
68 return;
69 }
70
71 if (verboseLevel > 1) G4cout << *fragment << G4endl;
72
73 G4InuclNuclei target(*fragment);
74 collide(0, &target, globalOutput);
75}
virtual void collide(G4InuclParticle *, G4InuclParticle *target, G4CollisionOutput &globalOutput)

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