Geant4 11.2.2
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)
 
 ~G4Evaporation () override
 
void InitialiseChannels () override
 
void BreakFragment (G4FragmentVector *, G4Fragment *theNucleus) override
 
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 SetPhotonEvaporation (G4VEvaporationChannel *ptr)
 
void SetFermiBreakUp (G4VFermiBreakUp *ptr)
 
G4VFermiBreakUpGetFermiBreakUp () const
 
G4VEvaporationChannelGetPhotonEvaporation () const
 
G4VEvaporationChannelGetFissionChannel () const
 
G4VEvaporationChannelGetChannel (std::size_t idx) const
 
void SetOPTxs (G4int opt)
 
void UseSICB (G4bool use)
 
std::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 {nullptr}
 
G4VFermiBreakUptheFBU {nullptr}
 
G4int OPTxs {3}
 
G4bool useSICB {true}
 
std::vector< G4VEvaporationChannel * > * theChannels {nullptr}
 
G4VEvaporationFactorytheChannelFactory {nullptr}
 

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 67 of file G4Evaporation.cc.

68 : fVerbose(0), minExcitation(0.1*CLHEP::keV)
69{
70 if (nullptr != photoEvaporation) {
71 SetPhotonEvaporation(photoEvaporation);
72 } else {
74 }
75
77
81 unstableBreakUp = new G4UnstableFragmentBreakUp();
82}
static G4NistManager * Instance()
static G4NuclearLevelData * GetInstance()
G4IonTable * GetIonTable() const
static G4ParticleTable * GetParticleTable()
virtual void SetPhotonEvaporation(G4VEvaporationChannel *ptr)

◆ ~G4Evaporation()

G4Evaporation::~G4Evaporation ( )
override

Definition at line 84 of file G4Evaporation.cc.

85{
86 delete unstableBreakUp;
87}

◆ G4Evaporation() [2/2]

G4Evaporation::G4Evaporation ( const G4Evaporation & right)
delete

Member Function Documentation

◆ BreakFragment()

void G4Evaporation::BreakFragment ( G4FragmentVector * theResult,
G4Fragment * theNucleus )
overridevirtual

Reimplemented from G4VEvaporation.

Definition at line 173 of file G4Evaporation.cc.

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

◆ InitialiseChannels()

void G4Evaporation::InitialiseChannels ( )
overridevirtual

Reimplemented from G4VEvaporation.

Definition at line 89 of file G4Evaporation.cc.

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

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 161 of file G4Evaporation.cc.

162{
163 if (fCombined != channelType || nullptr == theChannelFactory) {
166 delete theChannelFactory;
169 InitialiseChannelFactory();
170 }
171}
G4VEvaporationChannel * thePhotonEvaporation

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

◆ SetDefaultChannel()

void G4Evaporation::SetDefaultChannel ( )

Definition at line 128 of file G4Evaporation.cc.

129{
130 if (fEvaporation != channelType || nullptr == theChannelFactory) {
133 delete theChannelFactory;
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 || nullptr == theChannelFactory) {
144 delete theChannelFactory;
146 InitialiseChannelFactory();
147 }
148}

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

◆ SetGEMVIChannel()

void G4Evaporation::SetGEMVIChannel ( )

Definition at line 150 of file G4Evaporation.cc.

151{
152 if (fGEMVI != channelType || nullptr == theChannelFactory) {
155 delete theChannelFactory;
157 InitialiseChannelFactory();
158 }
159}

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


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