Geant4-11
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
G4Evaporation Class Reference

#include <G4Evaporation.hh>

Inheritance diagram for G4Evaporation:
G4VEvaporation

Public Member Functions

virtual void BreakFragment (G4FragmentVector *, G4Fragment *theNucleus) final
 
 G4Evaporation (G4VEvaporationChannel *photoEvaporation=nullptr)
 
G4VFermiBreakUpGetFermiBreakUp () const
 
G4VEvaporationChannelGetFissionChannel ()
 
size_t GetNumberOfChannels () const
 
G4VEvaporationChannelGetPhotonEvaporation ()
 
virtual void InitialiseChannels () final
 
void SetCombinedChannel ()
 
void SetDefaultChannel ()
 
void SetFermiBreakUp (G4VFermiBreakUp *ptr)
 
void SetGEMChannel ()
 
void SetGEMVIChannel ()
 
void SetOPTxs (G4int opt)
 
virtual void SetPhotonEvaporation (G4VEvaporationChannel *ptr)
 
void UseSICB (G4bool use)
 
virtual ~G4Evaporation ()
 

Protected Member Functions

void CleanChannels ()
 

Protected Attributes

G4int OPTxs
 
G4VEvaporationFactorytheChannelFactory
 
std::vector< G4VEvaporationChannel * > * theChannels
 
G4VFermiBreakUptheFBU
 
G4VEvaporationChannelthePhotonEvaporation
 
G4bool useSICB
 

Private Member Functions

 G4Evaporation (const G4Evaporation &right)
 
void InitialiseChannelFactory ()
 
G4bool operator!= (const G4Evaporation &right) const
 
const G4Evaporationoperator= (const G4Evaporation &right)
 
G4bool operator== (const G4Evaporation &right) const
 

Private Attributes

G4DeexChannelType channelType
 
G4NuclearLevelDatafLevelData
 
G4int fVerbose
 
G4bool isInitialised
 
G4double minExcitation
 
size_t nChannels
 
G4NistManagernist
 
std::vector< G4doubleprobabilities
 
G4IonTabletheTableOfIons
 
G4UnstableFragmentBreakUpunstableBreakUp
 

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.

68 isInitialised(false)
69{
70 if(photoEvaporation) { SetPhotonEvaporation(photoEvaporation); }
72
74 theChannelFactory = nullptr;
75
80 /*
81 G4cout << "G4Evaporation() " << this << " thePhotonEvaporation: "
82 << photoEvaporation << " UnstableFragmentBreakUp: "
83 << unstableBreakUp << G4endl;
84 */
85}
static constexpr double keV
Definition: G4SIunits.hh:202
G4UnstableFragmentBreakUp * unstableBreakUp
G4NuclearLevelData * fLevelData
G4bool isInitialised
G4IonTable * theTableOfIons
G4double minExcitation
G4NistManager * nist
static G4NistManager * Instance()
static G4NuclearLevelData * GetInstance()
G4IonTable * GetIonTable() const
static G4ParticleTable * GetParticleTable()
virtual void SetPhotonEvaporation(G4VEvaporationChannel *ptr)
G4VEvaporationFactory * theChannelFactory

References fDummy, fLevelData, G4NuclearLevelData::GetInstance(), G4ParticleTable::GetIonTable(), G4ParticleTable::GetParticleTable(), G4NistManager::Instance(), nist, G4VEvaporation::SetPhotonEvaporation(), G4VEvaporation::theChannelFactory, theTableOfIons, and unstableBreakUp.

◆ ~G4Evaporation()

G4Evaporation::~G4Evaporation ( )
virtual

Definition at line 87 of file G4Evaporation.cc.

88{
89 delete unstableBreakUp;
90}

References unstableBreakUp.

◆ G4Evaporation() [2/2]

G4Evaporation::G4Evaporation ( const G4Evaporation right)
private

Member Function Documentation

◆ BreakFragment()

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

Reimplemented from G4VEvaporation.

Definition at line 179 of file G4Evaporation.cc.

181{
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
192 // Starts loop over evaporated particles, loop is limited by number
193 // of nucleons
194 for(G4int ia=0; ia<Amax; ++ia) {
195
196 // g,n,p and light fragments - evaporation is finished
197 G4int Z = theResidualNucleus->GetZ_asInt();
198 G4int A = theResidualNucleus->GetA_asInt();
199 if(A <= 1) { break; }
200 G4double Eex = theResidualNucleus->GetExcitationEnergy();
201
202 // stop deecitation loop if residual can be deexcited by FBU
203 if(theFBU->IsApplicable(Z, A, Eex)) { break; }
204
205 // check if it is stable, then finish evaporation
207 // stop deecitation loop in the case of a cold stable fragment
208 if(Eex <= minExcitation &&
209 (abun > 0.0 || (A == 3 && (Z == 1 || Z == 2)))) { break; }
210
211 totprob = 0.0;
212 maxchannel = nChannels;
213 if(fVerbose > 1) {
214 G4cout << "Evaporation# " << ia << " Z= " << Z << " A= " << A
215 << " Eex(MeV)= " << theResidualNucleus->GetExcitationEnergy()
216 << " aban= " << abun << G4endl;
217 }
218 // loop over evaporation channels
219 for(i=0; i<nChannels; ++i) {
220 prob = (*theChannels)[i]->GetEmissionProbability(theResidualNucleus);
221 if(fVerbose > 2 && prob > 0.0) {
222 G4cout << " Channel# " << i << " prob= " << prob << G4endl;
223 }
224 totprob += prob;
225 probabilities[i] = totprob;
226
227 // if two recent probabilities are near zero stop computations
228 if(i>=8 && prob > 0.0) {
229 if(prob <= totprob*1.e-8 && oldprob <= totprob*1.e-8) {
230 maxchannel = i+1;
231 break;
232 }
233 }
234 oldprob = prob;
235 }
236
237 // photon evaporation in the case of no other channels available
238 // do evaporation chain and return back ground state fragment
239 if(0.0 < totprob && probabilities[0] == totprob) {
240 if(fVerbose > 1) {
241 G4cout << "$$$ Start chain of gamma evaporation" << G4endl;
242 }
243 (*theChannels)[0]->BreakUpChain(theResult, theResidualNucleus);
244 totprob = 0.0;
245 }
246
247 // stable fragment - evaporation is finished
248 if(0.0 == totprob) {
249
250 // release fragment known to DB
251 if(fLevelData->GetLevelManager(Z, A)) { break; }
252
253 // if fragment is exotic, then it forced to decay
254 // if success, then decay product is added to results
255 if(fVerbose > 1) {
256 G4cout << "$$$ Decay exotic fragment" << G4endl;
257 }
258 if(unstableBreakUp->BreakUpChain(theResult, theResidualNucleus)) {
259 continue;
260 }
261 // release if it is not possible to decay
262 break;
263 }
264
265 // select channel
266 totprob *= G4UniformRand();
267 // loop over evaporation channels
268 for(i=0; i<maxchannel; ++i) { if(probabilities[i] >= totprob) { break; } }
269
270 if(fVerbose > 1) { G4cout << "$$$ Channel # " << i << G4endl; }
271 G4Fragment* frag = (*theChannels)[i]->EmittedFragment(theResidualNucleus);
272 if(fVerbose > 2 && frag) { G4cout << " " << *frag << G4endl; }
273
274 // normaly a fragment should be created
275 if(frag) { theResult->push_back(frag); }
276 else { break; }
277 }
278}
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
#define G4UniformRand()
Definition: Randomize.hh:52
virtual void InitialiseChannels() final
std::vector< G4double > probabilities
G4double GetIsotopeAbundance(G4int Z, G4int N) const
const G4LevelManager * GetLevelManager(G4int Z, G4int A)
virtual G4bool BreakUpChain(G4FragmentVector *, G4Fragment *) final
G4VFermiBreakUp * theFBU
virtual G4bool IsApplicable(G4int Z, G4int A, G4double mass) const =0

References A, G4UnstableFragmentBreakUp::BreakUpChain(), fLevelData, fVerbose, G4cout, G4endl, G4UniformRand, G4Fragment::GetA_asInt(), G4Fragment::GetExcitationEnergy(), G4NistManager::GetIsotopeAbundance(), G4NuclearLevelData::GetLevelManager(), G4Fragment::GetZ_asInt(), InitialiseChannels(), G4VFermiBreakUp::IsApplicable(), isInitialised, minExcitation, nChannels, nist, probabilities, G4VEvaporation::theFBU, unstableBreakUp, and Z.

◆ CleanChannels()

void G4VEvaporation::CleanChannels ( )
protectedinherited

Definition at line 49 of file G4VEvaporation.cc.

50{
51 // clean all except photon evaporation
52 if(theChannels) {
53 for (size_t i=1; i<theChannels->size(); ++i) {
54 delete (*theChannels)[i];
55 }
56 delete theChannels;
57 theChannels = nullptr;
58 }
59}
std::vector< G4VEvaporationChannel * > * theChannels

References G4VEvaporation::theChannels.

Referenced by SetCombinedChannel(), SetDefaultChannel(), SetGEMChannel(), SetGEMVIChannel(), and G4VEvaporation::~G4VEvaporation().

◆ GetFermiBreakUp()

G4VFermiBreakUp * G4VEvaporation::GetFermiBreakUp ( ) const
inlineinherited

Definition at line 108 of file G4VEvaporation.hh.

109{
110 return theFBU;
111}

References G4VEvaporation::theFBU.

◆ GetFissionChannel()

G4VEvaporationChannel * G4VEvaporation::GetFissionChannel ( )
inlineinherited

Definition at line 118 of file G4VEvaporation.hh.

119{
120 return (theChannels && theChannels->size() > 1) ? (*theChannels)[1] : nullptr;
121}

References G4VEvaporation::theChannels.

Referenced by G4INCLXXInterface::G4INCLXXInterface().

◆ GetNumberOfChannels()

size_t G4VEvaporation::GetNumberOfChannels ( ) const
inlineinherited

Definition at line 133 of file G4VEvaporation.hh.

134{
135 return theChannels ? theChannels->size() : 0;
136}

References G4VEvaporation::theChannels.

Referenced by G4ExcitationHandler::SetDeexChannelsType().

◆ GetPhotonEvaporation()

G4VEvaporationChannel * G4VEvaporation::GetPhotonEvaporation ( )
inlineinherited

Definition at line 113 of file G4VEvaporation.hh.

114{
116}
G4VEvaporationChannel * thePhotonEvaporation

References G4VEvaporation::thePhotonEvaporation.

Referenced by G4ExcitationHandler::SetEvaporation().

◆ InitialiseChannelFactory()

void G4Evaporation::InitialiseChannelFactory ( )
private

Definition at line 110 of file G4Evaporation.cc.

111{
113 nChannels = theChannels->size();
114 probabilities.resize(nChannels, 0.0);
115
116 if(fVerbose > 1) {
117 G4cout << "### G4Evaporation::InitialiseChannelFactory for "
118 << nChannels << " channels " << this << G4endl;
119 }
120 for(size_t i=0; i<nChannels; ++i) {
121 (*theChannels)[i]->SetOPTxs(OPTxs);
122 (*theChannels)[i]->Initialise();
123 }
124}
virtual std::vector< G4VEvaporationChannel * > * GetChannel()=0

References fVerbose, G4cout, G4endl, G4VEvaporationFactory::GetChannel(), nChannels, G4VEvaporation::OPTxs, probabilities, G4VEvaporation::theChannelFactory, and G4VEvaporation::theChannels.

Referenced by SetCombinedChannel(), SetDefaultChannel(), SetGEMChannel(), and SetGEMVIChannel().

◆ InitialiseChannels()

void G4Evaporation::InitialiseChannels ( )
finalvirtual

Reimplemented from G4VEvaporation.

Definition at line 92 of file G4Evaporation.cc.

93{
94 if(isInitialised) { return; }
95
98 fVerbose = param->GetVerbose();
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()

References fCombined, fEvaporation, fGEM, fGEMVI, fLevelData, fVerbose, G4DeexPrecoParameters::GetDeexChannelsType(), G4DeexPrecoParameters::GetMinExcitation(), G4NuclearLevelData::GetParameters(), G4DeexPrecoParameters::GetVerbose(), isInitialised, minExcitation, SetCombinedChannel(), SetDefaultChannel(), SetGEMChannel(), SetGEMVIChannel(), G4UnstableFragmentBreakUp::SetVerbose(), and unstableBreakUp.

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

◆ operator!=()

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

◆ operator=()

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

◆ operator==()

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

◆ SetCombinedChannel()

void G4Evaporation::SetCombinedChannel ( )

◆ SetDefaultChannel()

void G4Evaporation::SetDefaultChannel ( )

◆ SetFermiBreakUp()

void G4VEvaporation::SetFermiBreakUp ( G4VFermiBreakUp ptr)
inlineinherited

Definition at line 103 of file G4VEvaporation.hh.

104{
105 theFBU = ptr;
106}

References G4VEvaporation::theFBU.

Referenced by G4ExcitationHandler::SetEvaporation(), and G4ExcitationHandler::SetFermiModel().

◆ SetGEMChannel()

void G4Evaporation::SetGEMChannel ( )

◆ SetGEMVIChannel()

void G4Evaporation::SetGEMVIChannel ( )

◆ SetOPTxs()

void G4VEvaporation::SetOPTxs ( G4int  opt)
inlineinherited

Definition at line 123 of file G4VEvaporation.hh.

124{
125 OPTxs = opt;
126}

References G4VEvaporation::OPTxs.

◆ SetPhotonEvaporation()

void G4VEvaporation::SetPhotonEvaporation ( G4VEvaporationChannel ptr)
virtualinherited

Definition at line 64 of file G4VEvaporation.cc.

65{
66 // photon evaporation channel is the first
67 // G4VEvaporation is responsible for its deletion
68 if(thePhotonEvaporation != ptr) {
71 if(theChannels && 0 < theChannels->size()) { (*theChannels)[0] = ptr; }
72 }
73}

References G4VEvaporation::theChannels, and G4VEvaporation::thePhotonEvaporation.

Referenced by G4Evaporation(), and G4ExcitationHandler::SetPhotonEvaporation().

◆ UseSICB()

void G4VEvaporation::UseSICB ( G4bool  use)
inlineinherited

Definition at line 128 of file G4VEvaporation.hh.

129{
130 useSICB = use;
131}

References G4VEvaporation::useSICB.

Field Documentation

◆ channelType

G4DeexChannelType G4Evaporation::channelType
private

Definition at line 99 of file G4Evaporation.hh.

◆ fLevelData

G4NuclearLevelData* G4Evaporation::fLevelData
private

Definition at line 95 of file G4Evaporation.hh.

Referenced by BreakFragment(), G4Evaporation(), and InitialiseChannels().

◆ fVerbose

G4int G4Evaporation::fVerbose
private

Definition at line 90 of file G4Evaporation.hh.

Referenced by BreakFragment(), InitialiseChannelFactory(), and InitialiseChannels().

◆ isInitialised

G4bool G4Evaporation::isInitialised
private

Definition at line 97 of file G4Evaporation.hh.

Referenced by BreakFragment(), and InitialiseChannels().

◆ minExcitation

G4double G4Evaporation::minExcitation
private

Definition at line 92 of file G4Evaporation.hh.

Referenced by BreakFragment(), and InitialiseChannels().

◆ nChannels

size_t G4Evaporation::nChannels
private

Definition at line 91 of file G4Evaporation.hh.

Referenced by BreakFragment(), and InitialiseChannelFactory().

◆ nist

G4NistManager* G4Evaporation::nist
private

Definition at line 93 of file G4Evaporation.hh.

Referenced by BreakFragment(), and G4Evaporation().

◆ OPTxs

G4int G4VEvaporation::OPTxs
protectedinherited

◆ probabilities

std::vector<G4double> G4Evaporation::probabilities
private

Definition at line 101 of file G4Evaporation.hh.

Referenced by BreakFragment(), and InitialiseChannelFactory().

◆ theChannelFactory

G4VEvaporationFactory* G4VEvaporation::theChannelFactory
protectedinherited

◆ theChannels

std::vector<G4VEvaporationChannel*>* G4VEvaporation::theChannels
protectedinherited

◆ theFBU

G4VFermiBreakUp* G4VEvaporation::theFBU
protectedinherited

◆ thePhotonEvaporation

G4VEvaporationChannel* G4VEvaporation::thePhotonEvaporation
protectedinherited

◆ theTableOfIons

G4IonTable* G4Evaporation::theTableOfIons
private

Definition at line 94 of file G4Evaporation.hh.

Referenced by G4Evaporation().

◆ unstableBreakUp

G4UnstableFragmentBreakUp* G4Evaporation::unstableBreakUp
private

Definition at line 96 of file G4Evaporation.hh.

Referenced by BreakFragment(), G4Evaporation(), InitialiseChannels(), and ~G4Evaporation().

◆ useSICB

G4bool G4VEvaporation::useSICB
protectedinherited

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