Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PreCompoundModel.cc
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26// by V. Lara
27//
28// Modified:
29// 01.04.2008 J.M.Quesada Several changes. Soft cut-off switched off.
30// 01.05.2008 J.M.Quesada Protection against non-physical preeq.
31// transitional regime has been set
32// 03.09.2008 J.M.Quesada for external choice of inverse cross section option
33// 06.09.2008 J.M.Quesada Also external choices have been added for:
34// - superimposed Coulomb barrier (useSICB=true)
35// - "never go back" hipothesis (useNGB=true)
36// - soft cutoff from preeq. to equlibrium (useSCO=true)
37// - CEM transition probabilities (useCEMtr=true)
38// 20.08.2010 V.Ivanchenko Cleanup of the code:
39// - integer Z and A;
40// - emission and transition classes created at
41// initialisation
42// - options are set at initialisation
43// - do not use copy-constructors for G4Fragment
44// 03.01.2012 V.Ivanchenko Added pointer to G4ExcitationHandler to the
45// constructor
46
47#include "G4PreCompoundModel.hh"
49#include "G4SystemOfUnits.hh"
53#include "G4GNASHTransitions.hh"
55#include "G4Proton.hh"
56#include "G4Neutron.hh"
57
58#include "G4NucleiProperties.hh"
59#include "G4NuclearLevelData.hh"
61#include "Randomize.hh"
62#include "G4DynamicParticle.hh"
63#include "G4ParticleTypes.hh"
64#include "G4ParticleTable.hh"
65#include "G4LorentzVector.hh"
66#include "G4Exp.hh"
68
70#include "G4StatMF.hh"
71
72////////////////////////////////////////////////////////////////////////////////
73
75 : G4VPreCompoundModel(ptr,"PRECO")
76{
77 //G4cout << "### NEW PrecompoundModel " << this << G4endl;
78 if(nullptr == ptr) { SetExcitationHandler(new G4ExcitationHandler()); }
79
81 proton = G4Proton::Proton();
82 neutron = G4Neutron::Neutron();
83 modelID = G4PhysicsModelCatalog::GetModelID("model_PRECO");
84}
85
86////////////////////////////////////////////////////////////////////////////////
87
89{
90 delete theEmission;
91 delete theTransition;
92 delete GetExcitationHandler();
93 delete theMultiFrag;
94 theResult.Clear();
95}
96
97////////////////////////////////////////////////////////////////////////////////
98
103
104////////////////////////////////////////////////////////////////////////////////
105
107{
108 if (isInitialised) { return; }
109 isInitialised = true;
110
111 G4DeexPrecoParameters* param = fNuclData->GetParameters();
112 fVerbose = param->GetVerbose();
113
114 if (param->PrecoDummy() || eDeexcitation == param->GetPreCompoundType()) {
115 isActive = false;
116 }
117 else if (ePrecoInterface == param->GetPreCompoundType()) {
118 usePrecoInterface = true;
119 fInterface = new G4PreCompoundInterface();
120 }
121 else {
122 theEmission = new G4PreCompoundEmission();
123 if (param->UseHETC()) { theEmission->SetHETCModel(); }
124 theEmission->SetOPTxs(param->GetPrecoModelType());
125
126 if (param->UseGNASH()) { theTransition = new G4GNASHTransitions; }
127 else { theTransition = new G4PreCompoundTransitions(); }
128 theTransition->UseNGB(param->NeverGoBack());
129 theTransition->UseCEMtr(param->UseCEM());
130 }
131 if (isActive) {
132 theMultiFrag = new G4StatMF();
133 fLowLimitExc = param->GetPrecoLowEnergy();
134 fHighLimitExc = param->GetPrecoHighEnergy();
135 fMinEForMultiFrag = param->GetMinExPerNucleounForMF();
136
137 useSCO = param->UseSoftCutoff();
138
139 minZ = param->GetMinZForPreco();
140 minA = param->GetMinAForPreco();
141 }
142
144}
145
146////////////////////////////////////////////////////////////////////////////////
147
150 G4Nucleus & theNucleus)
151{
152 const G4ParticleDefinition* primary = thePrimary.GetDefinition();
153 if(primary != neutron && primary != proton) {
155 ed << "G4PreCompoundModel is used for ";
156 if(primary) { ed << primary->GetParticleName(); }
157 G4Exception("G4PreCompoundModel::ApplyYourself()","had0033",FatalException,
158 ed,"");
159 return nullptr;
160 }
161
162 G4int Zp = 0;
163 G4int Ap = 1;
164 if(primary == proton) { Zp = 1; }
165
166 G4double timePrimary=thePrimary.GetGlobalTime();
167 G4int A = theNucleus.GetA_asInt();
168 G4int Z = theNucleus.GetZ_asInt();
169
170 //G4cout << "### G4PreCompoundModel::ApplyYourself: A= " << A << " Z= " << Z
171 // << " Ap= " << Ap << " Zp= " << Zp << G4endl;
172
173 // 4-Momentum
174 G4LorentzVector p = thePrimary.Get4Momentum();
176 p += G4LorentzVector(0.0,0.0,0.0,mass);
177 //G4cout << "Primary 4-mom " << p << " mass= " << mass << G4endl;
178
179 // prepare fragment
180 G4Fragment anInitialState(A + Ap, Z + Zp, p);
181 anInitialState.SetNumberOfExcitedParticle(2, 1);
182 anInitialState.SetNumberOfHoles(1,0);
183 anInitialState.SetCreationTime(thePrimary.GetGlobalTime());
184 anInitialState.SetCreatorModelID(modelID);
185
186 // call excitation handler
187 G4ReactionProductVector* result = DeExcite(anInitialState);
188
189 // fill particle change
190 theResult.Clear();
191 theResult.SetStatusChange(stopAndKill);
192 for(auto const & prod : *result) {
193 G4DynamicParticle * aNewDP = new G4DynamicParticle(prod->GetDefinition(),
194 prod->GetTotalEnergy(),
195 prod->GetMomentum());
196 G4HadSecondary aNew = G4HadSecondary(aNewDP);
197 G4double time = std::max(prod->GetFormationTime(), 0.0);
198 aNew.SetTime(timePrimary + time);
199 aNew.SetCreatorModelID(prod->GetCreatorModelID());
200 delete prod;
201 theResult.AddSecondary(aNew);
202 }
203 delete result;
204 return &theResult;
205}
206
207////////////////////////////////////////////////////////////////////////////////
208
210{
211 if (!isInitialised) { InitialiseModel(); }
212 if (usePrecoInterface) { return fInterface->DeExcite(aFragment); }
213
215
216 G4int Z = aFragment.GetZ_asInt();
217 G4int A = aFragment.GetA_asInt();
218 G4double U = aFragment.GetExcitationEnergy();
219
220 if (1 < fVerbose) {
221 G4cout << "### G4PreCompoundModel::DeExcite Z=" << Z << " A=" << A
222 << " U(MeV)=" << U << " Umin=" << fLowLimitExc*A << G4endl;
223 G4cout << aFragment << G4endl;
224 }
225
226 // Conditions to skip pre-compound and perform equilibrium emission
227 if (!isActive || (Z < minZ && A < minA) || U < fLowLimitExc*A ||
228 U > fHighLimitExc*A || 0 < aFragment.GetNumberOfLambdas() ||
229 0 == Z || Z >= A) {
230 PerformEquilibriumEmission(aFragment, result);
231 return result;
232 }
233
234 // apply multi-fragmentation above threshold
235 G4FragmentVector* theTempResult;
236 if (U > A*fMinEForMultiFrag) {
237 theTempResult = theMultiFrag->BreakItUp(aFragment);
238 }
239 else {
240 theTempResult = new G4FragmentVector();
241 theTempResult->push_back(new G4Fragment(aFragment));
242 }
243
244 // apply pre-compound on the list of fragments
245 for (auto & ptr : *theTempResult) {
246 DoIt(result, *ptr);
247 delete ptr;
248 }
249 delete theTempResult;
250 return result;
251}
252
253void G4PreCompoundModel::DoIt(G4ReactionProductVector* result, G4Fragment& aFragment)
254{
255 // main loop
256 G4int count = 0;
257 const G4double ldfact = 12.0/CLHEP::pi2;
258 const G4int countmax = 300;
259 for (;;) {
260 G4double U = aFragment.GetExcitationEnergy();
261 G4int Z = aFragment.GetZ_asInt();
262 G4int A = aFragment.GetA_asInt();
263 G4int nExcitons = aFragment.GetNumberOfExcitons();
264
265 // check conditions for pre-compound model for updated fragment
266 if (nExcitons <= 0 || (Z < minZ && A < minA) ||
267 U > fHighLimitExc*A || U <= fLowLimitExc*A) {
268 PerformEquilibriumEmission(aFragment, result);
269 return;
270 }
271 G4int eqExcitonNumber =
272 G4lrint(std::sqrt(ldfact*U*fNuclData->GetLevelDensity(Z, A, U)));
273 if (2 < fVerbose) {
274 G4cout << " 1st loop " << count << ". Z=" << Z << " A=" << A
275 << " U(MeV)=" << U << " eqExcitationNumber=" << eqExcitonNumber
276 << G4endl;
277 }
278 // J. M. Quesada (Jan. 08) equilibrium hole number could be used as preeq.
279 // evap. delimiter (IAEA report)
280
281 // Loop for transitions, it is performed while there are
282 // preequilibrium transitions.
283 G4bool isTransition = true;
284 do {
285 ++count;
286
287 // soft cutoff criterium as an "ad-hoc" solution to force
288 // increase in evaporation
289 nExcitons = aFragment.GetNumberOfExcitons();
290 if (nExcitons <= 0) {
291 PerformEquilibriumEmission(aFragment, result);
292 return;
293 }
294
295 //J. M. Quesada (Apr. 2008): soft-cutoff switched off by default
296 G4bool go_ahead = (nExcitons < eqExcitonNumber);
297 if (useSCO && go_ahead) {
298 G4double x = (G4double)(nExcitons - eqExcitonNumber)/(G4double)eqExcitonNumber;
299 if (G4UniformRand() < 1.0 - G4Exp(-x*x/0.32)) { go_ahead = false; }
300 }
301 if (!go_ahead) {
302 PerformEquilibriumEmission(aFragment, result);
303 return;
304 }
305 // compute transition probability
306 G4double transProbability = theTransition->CalculateProbability(aFragment);
307 G4double P1 = theTransition->GetTransitionProb1();
308 G4double P2 = theTransition->GetTransitionProb2();
309 G4double P3 = theTransition->GetTransitionProb3();
310 if (2 < fVerbose) {
311 G4cout << " 2nd loop " << count << ". Nex=" << nExcitons << " P1=" << P1
312 << " P2=" << P2 << " P3=" << P3 << G4endl;
313 G4cout << aFragment << G4endl;
314 }
315 //J.M. Quesada (May 2008) Physical criterium (lamdas) PREVAILS over
316 // approximation (critical exciton number)
317 if (P1 <= P2+P3) {
318 PerformEquilibriumEmission(aFragment, result);
319 return;
320 }
321 // compute emission probability
322 G4double emissionProbability = theEmission->GetTotalProbability(aFragment);
323 G4double totProbability = emissionProbability + transProbability;
324 if (2 < fVerbose) {
325 G4cout << " prob_em=" << emissionProbability
326 << " prob_tot=" << totProbability << G4endl;
327 }
328
329 // Select subprocess
330 if (totProbability*G4UniformRand() > emissionProbability) {
331 // It will be transition to state with a new number of excitons
332 theTransition->PerformTransition(aFragment);
333 } else {
334 // pre-compound fragment emission, primary fragment is changed
335 isTransition = false;
336 result->push_back(theEmission->PerformEmission(aFragment));
337 }
338 // Loop checking, 05-Aug-2015, Vladimir Ivanchenko
339 } while (isTransition); // end of do loop with emission
340
341 // stop if too many iterations
342 if (count >= countmax) {
344 ed << "G4PreCompoundModel loop over " << countmax << " iterations; "
345 << "current G4Fragment: \n" << aFragment;
346 G4Exception("G4PreCompoundModel::DeExcite()","had0034",JustWarning,
347 ed,"");
348 break;
349 }
350 } // end of for (;;) loop
351 PerformEquilibriumEmission(aFragment, result);
352}
353
354////////////////////////////////////////////////////////////////////////////////
355// Documentation
356////////////////////////////////////////////////////////////////////////////////
357
358void G4PreCompoundModel::ModelDescription(std::ostream& outFile) const
359{
360 outFile
361 << "The GEANT4 precompound model is considered as an extension of the\n"
362 << "hadron kinetic model. It gives a possibility to extend the low energy range\n"
363 << "of the hadron kinetic model for nucleon-nucleus inelastic collision and it \n"
364 << "provides a ”smooth” transition from kinetic stage of reaction described by the\n"
365 << "hadron kinetic model to the equilibrium stage of reaction described by the\n"
366 << "equilibrium deexcitation models.\n"
367 << "The initial information for calculation of pre-compound nuclear stage\n"
368 << "consists of the atomic mass number A, charge Z of residual nucleus, its\n"
369 << "four momentum P0, excitation energy U and number of excitons n, which equals\n"
370 << "the sum of the number of particles p (from them p_Z are charged) and the number of\n"
371 << "holes h.\n"
372 << "At the preequilibrium stage of reaction, we follow the exciton model approach in ref. [1],\n"
373 << "taking into account the competition among all possible nuclear transitions\n"
374 << "with ∆n = +2, −2, 0 (which are defined by their associated transition probabilities) and\n"
375 << "the emission of neutrons, protons, deuterons, thritium and helium nuclei (also defined by\n"
376 << "their associated emission probabilities according to exciton model)\n"
377 << "\n"
378 << "[1] K.K. Gudima, S.G. Mashnik, V.D. Toneev, Nucl. Phys. A401 329 (1983)\n"
379 << "\n";
380}
381
382////////////////////////////////////////////////////////////////////////////////
383
384void G4PreCompoundModel::DeExciteModelDescription(std::ostream& outFile) const
385{
386 outFile << "description of precompound model as used with DeExcite()" << "\n";
387}
388
389////////////////////////////////////////////////////////////////////////////////
@ ePrecoInterface
@ JustWarning
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
Definition G4Exp.hh:132
std::vector< G4Fragment * > G4FragmentVector
Definition G4Fragment.hh:65
@ stopAndKill
CLHEP::HepLorentzVector G4LorentzVector
std::vector< G4ReactionProduct * > G4ReactionProductVector
double G4double
Definition G4Types.hh:83
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
const G4double A[17]
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
#define G4UniformRand()
Definition Randomize.hh:52
G4double GetPrecoHighEnergy() const
G4double GetMinExPerNucleounForMF() const
G4PreCompoundType GetPreCompoundType() const
G4double GetExcitationEnergy() const
void SetCreatorModelID(G4int value)
G4int GetZ_asInt() const
void SetCreationTime(G4double time)
void SetNumberOfHoles(G4int valueTot, G4int valueP=0)
G4int GetNumberOfExcitons() const
G4int GetNumberOfLambdas() const
void SetNumberOfExcitedParticle(G4int valueTot, G4int valueP)
G4int GetA_asInt() const
const G4ParticleDefinition * GetDefinition() const
const G4LorentzVector & Get4Momentum() const
G4double GetGlobalTime() const
void SetTime(G4double aT)
void SetCreatorModelID(G4int id)
static G4Neutron * Neutron()
Definition G4Neutron.cc:101
static G4NuclearLevelData * GetInstance()
static G4double GetNuclearMass(const G4double A, const G4double Z)
G4int GetA_asInt() const
Definition G4Nucleus.hh:78
G4int GetZ_asInt() const
Definition G4Nucleus.hh:84
const G4String & GetParticleName() const
static G4int GetModelID(const G4int modelIndex)
void InitialiseModel() override
void ModelDescription(std::ostream &outFile) const override
G4HadFinalState * ApplyYourself(const G4HadProjectile &thePrimary, G4Nucleus &theNucleus) override
G4ReactionProductVector * DeExcite(G4Fragment &aFragment) override
void DeExciteModelDescription(std::ostream &outFile) const override
G4PreCompoundModel(G4ExcitationHandler *ptr=nullptr)
void BuildPhysicsTable(const G4ParticleDefinition &) override
static G4Proton * Proton()
Definition G4Proton.cc:90
G4ExcitationHandler * GetExcitationHandler() const
G4VPreCompoundModel(G4ExcitationHandler *ptr=nullptr, const G4String &modelName="PrecompoundModel")
void SetExcitationHandler(G4ExcitationHandler *ptr)
int G4lrint(double ad)
Definition templates.hh:134