Geant4 11.4.0
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 {
73 SetPhotonEvaporation(new G4PhotonEvaporation());
74 }
75
76 channelType = fCombined;
77
81 unstableBreakUp = new G4UnstableFragmentBreakUp();
82}
static G4NistManager * Instance()
static G4NuclearLevelData * GetInstance()
G4IonTable * GetIonTable() const
static G4ParticleTable * GetParticleTable()
virtual void SetPhotonEvaporation(G4VEvaporationChannel *ptr)

Referenced by G4Evaporation(), operator!=(), operator=(), and operator==().

◆ ~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 177 of file G4Evaporation.cc.

179{
180 if (!isInitialised) { InitialiseChannels(); }
181
182 G4double totprob, prob, oldprob = 0.0;
183 const G4double limFact = 1.e-6;
184 std::size_t maxchannel, i;
185
186 G4int Amax = theResidualNucleus->GetA_asInt();
187 if(fVerbose > 1) {
188 G4cout << "### G4Evaporation::BreakItUp loop" << G4endl;
189 }
190 CLHEP::HepRandomEngine* rndm = G4Random::getTheEngine();
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 deexcitation 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
206 G4double abun = nist->GetIsotopeAbundance(Z, A);
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 > 1 && 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) {
229 if (prob <= totprob*limFact && oldprob <= totprob*limFact) {
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
245 // release residual stable fragment
246 if(abun > 0.0) {
247 theResidualNucleus->SetLongLived(true);
248 break;
249 }
250 // release residual fragment known to FBU
251 Eex = theResidualNucleus->GetExcitationEnergy();
252 if(theFBU->IsApplicable(Z, A, Eex)) { break; }
253
254 // release residual fragment with non-zero life time
255 if(theResidualNucleus->IsLongLived()) { break; }
256 totprob = 0.0;
257 }
258
259 if(0.0 == totprob && A < 30) {
260 // if residual fragment is exotic, then it forced to decay
261 // if success, then decay product is added to results
262 if(fVerbose > 1) {
263 G4cout << "$$$ Decay exotic fragment" << G4endl;
264 }
265 if(unstableBreakUp->BreakUpChain(theResult, theResidualNucleus)) {
266 continue;
267 }
268 // release if it is not possible to decay
269 break;
270 }
271
272 // select channel
273 totprob *= rndm->flat();
274
275 // loop over evaporation channels
276 for (i=0; i<maxchannel; ++i) {
277 if (probabilities[i] >= totprob) { break; }
278 }
279
280 if (fVerbose > 1) {
281 G4cout << "$$$ Selected Channel# " << i << " MaxChannel="
282 << maxchannel << G4endl;
283 }
284 G4Fragment* frag = (*theChannels)[i]->EmittedFragment(theResidualNucleus);
285 if(fVerbose > 2 && frag) { G4cout << " " << *frag << G4endl; }
286
287 // normaly a fragment should be created
288 if(nullptr != frag) { theResult->push_back(frag); }
289 else { break; }
290 }
291}
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
G4VFermiBreakUp * theFBU

◆ 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()
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 165 of file G4Evaporation.cc.

166{
167 if (fCombined != channelType || nullptr == theChannelFactory) {
168 channelType = fCombined;
170 delete theChannelFactory;
172 new G4EvaporationDefaultGEMFactory(thePhotonEvaporation);
173 InitialiseChannelFactory();
174 }
175}
G4VEvaporationChannel * thePhotonEvaporation

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

◆ SetDefaultChannel()

void G4Evaporation::SetDefaultChannel ( )

Definition at line 132 of file G4Evaporation.cc.

133{
134 if (fEvaporation != channelType || nullptr == theChannelFactory) {
135 channelType = fEvaporation;
137 delete theChannelFactory;
138 theChannelFactory = new G4EvaporationFactory(thePhotonEvaporation);
139 InitialiseChannelFactory();
140 }
141}

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

◆ SetGEMChannel()

void G4Evaporation::SetGEMChannel ( )

Definition at line 143 of file G4Evaporation.cc.

144{
145 if (fGEM != channelType || nullptr == theChannelFactory) {
146 channelType = fGEM;
148 delete theChannelFactory;
149 theChannelFactory = new G4EvaporationGEMFactory(thePhotonEvaporation);
150 InitialiseChannelFactory();
151 }
152}

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

◆ SetGEMVIChannel()

void G4Evaporation::SetGEMVIChannel ( )

Definition at line 154 of file G4Evaporation.cc.

155{
156 if (fGEMVI != channelType || nullptr == theChannelFactory) {
157 channelType = fGEMVI;
159 delete theChannelFactory;
160 theChannelFactory = new G4EvaporationGEMFactoryVI(thePhotonEvaporation);
161 InitialiseChannelFactory();
162 }
163}

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


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