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

#include <G4Evaporation.hh>

+ Inheritance diagram for G4Evaporation:

Public Member Functions

 G4Evaporation (G4VEvaporationChannel *photoEvaporation=nullptr)
 
virtual ~G4Evaporation ()
 
virtual void InitialiseChannels () final
 
virtual void BreakFragment (G4FragmentVector *, G4Fragment *theNucleus) final
 
void SetDefaultChannel ()
 
void SetGEMChannel ()
 
void SetGEMVIChannel ()
 
void SetCombinedChannel ()
 
 G4Evaporation (const G4Evaporation &right)=delete
 
const G4Evaporationoperator= (const G4Evaporation &right)=delete
 
G4bool operator== (const G4Evaporation &right) const =delete
 
G4bool operator!= (const G4Evaporation &right) const =delete
 
- Public Member Functions inherited from G4VEvaporation
 G4VEvaporation ()
 
virtual ~G4VEvaporation ()
 
virtual void BreakFragment (G4FragmentVector *, G4Fragment *theNucleus)
 
virtual void InitialiseChannels ()
 
virtual void SetPhotonEvaporation (G4VEvaporationChannel *ptr)
 
void SetFermiBreakUp (G4VFermiBreakUp *ptr)
 
G4VFermiBreakUpGetFermiBreakUp () const
 
G4VEvaporationChannelGetPhotonEvaporation ()
 
G4VEvaporationChannelGetFissionChannel ()
 
G4VEvaporationChannelGetChannel (size_t idx)
 
void SetOPTxs (G4int opt)
 
void UseSICB (G4bool use)
 
size_t GetNumberOfChannels () const
 
 G4VEvaporation (const G4VEvaporation &right)=delete
 
const G4VEvaporationoperator= (const G4VEvaporation &right)=delete
 
G4bool operator== (const G4VEvaporation &right) const =delete
 
G4bool operator!= (const G4VEvaporation &right) const =delete
 

Additional Inherited Members

- Protected Member Functions inherited from G4VEvaporation
void CleanChannels ()
 
- Protected Attributes inherited from G4VEvaporation
G4VEvaporationChannelthePhotonEvaporation
 
G4VFermiBreakUptheFBU
 
G4int OPTxs
 
G4bool useSICB
 
std::vector< G4VEvaporationChannel * > * theChannels
 
G4VEvaporationFactorytheChannelFactory
 

Detailed Description

Definition at line 61 of file G4Evaporation.hh.

Constructor & Destructor Documentation

◆ G4Evaporation() [1/2]

G4Evaporation::G4Evaporation ( G4VEvaporationChannel photoEvaporation = nullptr)
explicit

Definition at line 66 of file G4Evaporation.cc.

67 : G4VEvaporation(),fVerbose(0),nChannels(0),minExcitation(0.1*keV),
68 isInitialised(false)
69{
70 if(photoEvaporation) { SetPhotonEvaporation(photoEvaporation); }
72
74 theChannelFactory = nullptr;
75
79 unstableBreakUp = new G4UnstableFragmentBreakUp();
80 /*
81 G4cout << "G4Evaporation() " << this << " thePhotonEvaporation: "
82 << photoEvaporation << " UnstableFragmentBreakUp: "
83 << unstableBreakUp << G4endl;
84 */
85}
static G4NistManager * Instance()
static G4NuclearLevelData * GetInstance()
G4IonTable * GetIonTable() const
static G4ParticleTable * GetParticleTable()
virtual void SetPhotonEvaporation(G4VEvaporationChannel *ptr)
G4VEvaporationFactory * theChannelFactory

◆ ~G4Evaporation()

G4Evaporation::~G4Evaporation ( )
virtual

Definition at line 87 of file G4Evaporation.cc.

88{
89 delete unstableBreakUp;
90}

◆ G4Evaporation() [2/2]

G4Evaporation::G4Evaporation ( const G4Evaporation right)
delete

Member Function Documentation

◆ BreakFragment()

void G4Evaporation::BreakFragment ( G4FragmentVector theResult,
G4Fragment theNucleus 
)
finalvirtual

Reimplemented from G4VEvaporation.

Definition at line 179 of file G4Evaporation.cc.

181{
182 if(!isInitialised) { InitialiseChannels(); }
183
184 G4double totprob, prob, oldprob = 0.0;
185 size_t maxchannel, i;
186
187 G4int Amax = theResidualNucleus->GetA_asInt();
188 if(fVerbose > 1) {
189 G4cout << "### G4Evaporation::BreakItUp loop" << G4endl;
190 }
191 CLHEP::HepRandomEngine* rndm = G4Random::getTheEngine();
192
193 // Starts loop over evaporated particles, loop is limited by number
194 // of nucleons
195 for(G4int ia=0; ia<Amax; ++ia) {
196
197 // g,n,p and light fragments - evaporation is finished
198 G4int Z = theResidualNucleus->GetZ_asInt();
199 G4int A = theResidualNucleus->GetA_asInt();
200 if(A <= 1) { break; }
201 G4double Eex = theResidualNucleus->GetExcitationEnergy();
202
203 // stop deecitation loop if residual can be deexcited by FBU
204 if(theFBU->IsApplicable(Z, A, Eex)) { break; }
205
206 // check if it is stable, then finish evaporation
207 G4double abun = nist->GetIsotopeAbundance(Z, A);
208 // stop deecitation loop in the case of a cold stable fragment
209 if(Eex <= minExcitation &&
210 (abun > 0.0 || (A == 3 && (Z == 1 || Z == 2)))) { break; }
211
212 totprob = 0.0;
213 maxchannel = nChannels;
214 if(fVerbose > 1) {
215 G4cout << "Evaporation# " << ia << " Z= " << Z << " A= " << A
216 << " Eex(MeV)= " << theResidualNucleus->GetExcitationEnergy()
217 << " aban= " << abun << G4endl;
218 }
219 // loop over evaporation channels
220 for(i=0; i<nChannels; ++i) {
221 prob = (*theChannels)[i]->GetEmissionProbability(theResidualNucleus);
222 if(fVerbose > 1 && prob > 0.0) {
223 G4cout << " Channel# " << i << " prob= " << prob << G4endl;
224 }
225 totprob += prob;
226 probabilities[i] = totprob;
227
228 // if two recent probabilities are near zero stop computations
229 if(i>=8 && prob > 0.0) {
230 if(prob <= totprob*1.e-8 && oldprob <= totprob*1.e-8) {
231 maxchannel = i+1;
232 break;
233 }
234 }
235 oldprob = prob;
236 }
237
238 // photon evaporation in the case of no other channels available
239 // do evaporation chain and return back ground state fragment
240 if(0.0 < totprob && probabilities[0] == totprob) {
241 if(fVerbose > 1) {
242 G4cout << "$$$ Start chain of gamma evaporation" << G4endl;
243 }
244 (*theChannels)[0]->BreakUpChain(theResult, theResidualNucleus);
245
246 // release residual stable fragment
247 if(abun > 0.0) {
248 theResidualNucleus->SetLongLived(true);
249 break;
250 }
251 // release residual fragment known to FBU
252 Eex = theResidualNucleus->GetExcitationEnergy();
253 if(theFBU->IsApplicable(Z, A, Eex)) { break; }
254
255 // release residual fragment with non-zero life time
256 if(theResidualNucleus->IsLongLived()) { break; }
257 totprob = 0.0;
258 }
259
260 if(0.0 == totprob && A < 30) {
261 // if residual fragment is exotic, then it forced to decay
262 // if success, then decay product is added to results
263 if(fVerbose > 1) {
264 G4cout << "$$$ Decay exotic fragment" << G4endl;
265 }
266 if(unstableBreakUp->BreakUpChain(theResult, theResidualNucleus)) {
267 continue;
268 }
269 // release if it is not possible to decay
270 break;
271 }
272
273 // select channel
274 totprob *= rndm->flat();
275
276 // loop over evaporation channels
277 for(i=0; i<maxchannel; ++i) { if(probabilities[i] >= totprob) { break; } }
278
279 if(fVerbose > 1) { G4cout << "$$$ Channel # " << i << G4endl; }
280 G4Fragment* frag = (*theChannels)[i]->EmittedFragment(theResidualNucleus);
281 if(fVerbose > 2 && frag) { G4cout << " " << *frag << G4endl; }
282
283 // normaly a fragment should be created
284 if(nullptr != frag) { theResult->push_back(frag); }
285 else { break; }
286 }
287}
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
const G4int Z[17]
const G4double A[17]
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
virtual double flat()=0
virtual void InitialiseChannels() final
G4double GetIsotopeAbundance(G4int Z, G4int N) const
virtual G4bool BreakUpChain(G4FragmentVector *, G4Fragment *) final
G4VFermiBreakUp * theFBU
virtual G4bool IsApplicable(G4int Z, G4int A, G4double mass) const =0

◆ InitialiseChannels()

void G4Evaporation::InitialiseChannels ( )
finalvirtual

Reimplemented from G4VEvaporation.

Definition at line 92 of file G4Evaporation.cc.

93{
94 if(isInitialised) { return; }
95
96 G4DeexPrecoParameters* param = fLevelData->GetParameters();
97 minExcitation = param->GetMinExcitation();
98 fVerbose = param->GetVerbose();
99 unstableBreakUp->SetVerbose(fVerbose);
100
102 if(type == fCombined) { SetCombinedChannel(); }
103 else if(type == fGEM) { SetGEMChannel(); }
104 else if(type == fEvaporation) { SetDefaultChannel(); }
105 else if(type == fGEMVI) { SetGEMVIChannel(); }
106
107 isInitialised = true;
108}
@ fEvaporation
G4DeexChannelType GetDeexChannelsType() const
G4double GetMinExcitation() const
void SetGEMChannel()
void SetDefaultChannel()
void SetCombinedChannel()
void SetGEMVIChannel()
G4DeexPrecoParameters * GetParameters()

Referenced by BreakFragment(), and G4ExcitationHandler::SetDeexChannelsType().

◆ operator!=()

G4bool G4Evaporation::operator!= ( const G4Evaporation right) const
delete

◆ operator=()

const G4Evaporation & G4Evaporation::operator= ( const G4Evaporation right)
delete

◆ operator==()

G4bool G4Evaporation::operator== ( const G4Evaporation right) const
delete

◆ SetCombinedChannel()

void G4Evaporation::SetCombinedChannel ( )

Definition at line 165 of file G4Evaporation.cc.

166{
167 if(fCombined != channelType) {
171 delete theChannelFactory;
172 }
175 InitialiseChannelFactory();
176 }
177}
G4VEvaporationChannel * thePhotonEvaporation

Referenced by InitialiseChannels(), and G4ExcitationHandler::SetDeexChannelsType().

◆ SetDefaultChannel()

void G4Evaporation::SetDefaultChannel ( )

Definition at line 126 of file G4Evaporation.cc.

127{
132 delete theChannelFactory;
133 }
135 InitialiseChannelFactory();
136 }
137}

Referenced by InitialiseChannels(), and G4ExcitationHandler::SetDeexChannelsType().

◆ SetGEMChannel()

void G4Evaporation::SetGEMChannel ( )

Definition at line 139 of file G4Evaporation.cc.

140{
141 if(fGEM != channelType) {
145 delete theChannelFactory;
146 }
148 InitialiseChannelFactory();
149 }
150}

Referenced by InitialiseChannels(), and G4ExcitationHandler::SetDeexChannelsType().

◆ SetGEMVIChannel()

void G4Evaporation::SetGEMVIChannel ( )

Definition at line 152 of file G4Evaporation.cc.

153{
154 if(fGEMVI != channelType) {
158 delete theChannelFactory;
159 }
161 InitialiseChannelFactory();
162 }
163}

Referenced by InitialiseChannels(), and G4ExcitationHandler::SetDeexChannelsType().


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