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

#include <G4PreCompoundModel.hh>

+ Inheritance diagram for G4PreCompoundModel:

Public Member Functions

 G4PreCompoundModel (G4ExcitationHandler *ptr=nullptr)
 
virtual ~G4PreCompoundModel ()
 
virtual G4HadFinalStateApplyYourself (const G4HadProjectile &thePrimary, G4Nucleus &theNucleus) final
 
virtual G4ReactionProductVectorDeExcite (G4Fragment &aFragment) final
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &) final
 
virtual void InitialiseModel () final
 
virtual void ModelDescription (std::ostream &outFile) const final
 
virtual void DeExciteModelDescription (std::ostream &outFile) const final
 
- Public Member Functions inherited from G4VPreCompoundModel
 G4VPreCompoundModel (G4ExcitationHandler *ptr=nullptr, const G4String &modelName="PrecompoundModel")
 
virtual ~G4VPreCompoundModel ()
 
virtual G4ReactionProductVectorDeExcite (G4Fragment &aFragment)=0
 
virtual void DeExciteModelDescription (std::ostream &outFile) const =0
 
void SetExcitationHandler (G4ExcitationHandler *ptr)
 
G4ExcitationHandlerGetExcitationHandler () const
 
 G4VPreCompoundModel (const G4VPreCompoundModel &)=delete
 
const G4VPreCompoundModeloperator= (const G4VPreCompoundModel &right)=delete
 
G4bool operator== (const G4VPreCompoundModel &right) const =delete
 
G4bool operator!= (const G4VPreCompoundModel &right) const =delete
 
- Public Member Functions inherited from G4HadronicInteraction
 G4HadronicInteraction (const G4String &modelName="HadronicModel")
 
virtual ~G4HadronicInteraction ()
 
virtual G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
 
virtual G4double SampleInvariantT (const G4ParticleDefinition *p, G4double plab, G4int Z, G4int A)
 
virtual G4bool IsApplicable (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
 
G4double GetMinEnergy () const
 
G4double GetMinEnergy (const G4Material *aMaterial, const G4Element *anElement) const
 
void SetMinEnergy (G4double anEnergy)
 
void SetMinEnergy (G4double anEnergy, const G4Element *anElement)
 
void SetMinEnergy (G4double anEnergy, const G4Material *aMaterial)
 
G4double GetMaxEnergy () const
 
G4double GetMaxEnergy (const G4Material *aMaterial, const G4Element *anElement) const
 
void SetMaxEnergy (const G4double anEnergy)
 
void SetMaxEnergy (G4double anEnergy, const G4Element *anElement)
 
void SetMaxEnergy (G4double anEnergy, const G4Material *aMaterial)
 
G4int GetVerboseLevel () const
 
void SetVerboseLevel (G4int value)
 
const G4StringGetModelName () const
 
void DeActivateFor (const G4Material *aMaterial)
 
void ActivateFor (const G4Material *aMaterial)
 
void DeActivateFor (const G4Element *anElement)
 
void ActivateFor (const G4Element *anElement)
 
G4bool IsBlocked (const G4Material *aMaterial) const
 
G4bool IsBlocked (const G4Element *anElement) const
 
void SetRecoilEnergyThreshold (G4double val)
 
G4double GetRecoilEnergyThreshold () const
 
virtual const std::pair< G4double, G4doubleGetFatalEnergyCheckLevels () const
 
virtual std::pair< G4double, G4doubleGetEnergyMomentumCheckLevels () const
 
void SetEnergyMomentumCheckLevels (G4double relativeLevel, G4double absoluteLevel)
 
virtual void ModelDescription (std::ostream &outFile) const
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &)
 
virtual void InitialiseModel ()
 
 G4HadronicInteraction (const G4HadronicInteraction &right)=delete
 
const G4HadronicInteractionoperator= (const G4HadronicInteraction &right)=delete
 
G4bool operator== (const G4HadronicInteraction &right) const =delete
 
G4bool operator!= (const G4HadronicInteraction &right) const =delete
 

Additional Inherited Members

- Protected Member Functions inherited from G4HadronicInteraction
void SetModelName (const G4String &nam)
 
G4bool IsBlocked () const
 
void Block ()
 
- Protected Attributes inherited from G4HadronicInteraction
G4HadFinalState theParticleChange
 
G4int verboseLevel
 
G4double theMinEnergy
 
G4double theMaxEnergy
 
G4bool isBlocked
 

Detailed Description

Definition at line 62 of file G4PreCompoundModel.hh.

Constructor & Destructor Documentation

◆ G4PreCompoundModel()

G4PreCompoundModel::G4PreCompoundModel ( G4ExcitationHandler ptr = nullptr)
explicit

Definition at line 70 of file G4PreCompoundModel.cc.

71 : G4VPreCompoundModel(ptr,"PRECO")
72{
73 //G4cout << "### NEW PrecompoundModel " << this << G4endl;
74 if(nullptr == ptr) { SetExcitationHandler(new G4ExcitationHandler()); }
75
77 proton = G4Proton::Proton();
78 neutron = G4Neutron::Neutron();
79 modelID = G4PhysicsModelCatalog::GetModelID("model_PRECO");
80}
static G4Neutron * Neutron()
Definition: G4Neutron.cc:103
static G4NuclearLevelData * GetInstance()
static G4int GetModelID(const G4int modelIndex)
static G4Proton * Proton()
Definition: G4Proton.cc:92
void SetExcitationHandler(G4ExcitationHandler *ptr)

◆ ~G4PreCompoundModel()

G4PreCompoundModel::~G4PreCompoundModel ( )
virtual

Definition at line 84 of file G4PreCompoundModel.cc.

85{
86 delete theEmission;
87 delete theTransition;
88 delete GetExcitationHandler();
89 theResult.Clear();
90}
G4ExcitationHandler * GetExcitationHandler() const

Member Function Documentation

◆ ApplyYourself()

G4HadFinalState * G4PreCompoundModel::ApplyYourself ( const G4HadProjectile thePrimary,
G4Nucleus theNucleus 
)
finalvirtual

Reimplemented from G4HadronicInteraction.

Definition at line 135 of file G4PreCompoundModel.cc.

137{
138 const G4ParticleDefinition* primary = thePrimary.GetDefinition();
139 if(primary != neutron && primary != proton) {
141 ed << "G4PreCompoundModel is used for ";
142 if(primary) { ed << primary->GetParticleName(); }
143 G4Exception("G4PreCompoundModel::ApplyYourself()","had0033",FatalException,
144 ed,"");
145 return nullptr;
146 }
147
148 G4int Zp = 0;
149 G4int Ap = 1;
150 if(primary == proton) { Zp = 1; }
151
152 G4double timePrimary=thePrimary.GetGlobalTime();
153
154 G4int A = theNucleus.GetA_asInt();
155 G4int Z = theNucleus.GetZ_asInt();
156
157 //G4cout << "### G4PreCompoundModel::ApplyYourself: A= " << A << " Z= " << Z
158 // << " Ap= " << Ap << " Zp= " << Zp << G4endl;
159 // 4-Momentum
160 G4LorentzVector p = thePrimary.Get4Momentum();
162 p += G4LorentzVector(0.0,0.0,0.0,mass);
163 //G4cout << "Primary 4-mom " << p << " mass= " << mass << G4endl;
164
165 // prepare fragment
166 G4Fragment anInitialState(A + Ap, Z + Zp, p);
167 anInitialState.SetNumberOfExcitedParticle(2, 1);
168 anInitialState.SetNumberOfHoles(1,0);
169 anInitialState.SetCreationTime(thePrimary.GetGlobalTime());
170 anInitialState.SetCreatorModelID(modelID);
171
172 // call excitation handler
173 G4ReactionProductVector* result = DeExcite(anInitialState);
174
175 // fill particle change
176 theResult.Clear();
177 theResult.SetStatusChange(stopAndKill);
178 for(auto const & prod : *result) {
179 G4DynamicParticle * aNewDP = new G4DynamicParticle(prod->GetDefinition(),
180 prod->GetTotalEnergy(),
181 prod->GetMomentum());
182 G4HadSecondary aNew = G4HadSecondary(aNewDP);
183 G4double time = std::max(prod->GetFormationTime(), 0.0);
184 aNew.SetTime(timePrimary + time);
185 aNew.SetCreatorModelID(prod->GetCreatorModelID());
186 delete prod;
187 theResult.AddSecondary(aNew);
188 }
189 delete result;
190
191 //return the filled particle change
192 return &theResult;
193}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:59
std::ostringstream G4ExceptionDescription
Definition: G4Exception.hh:40
@ stopAndKill
CLHEP::HepLorentzVector G4LorentzVector
std::vector< G4ReactionProduct * > G4ReactionProductVector
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
const G4int Z[17]
const G4double A[17]
void SetStatusChange(G4HadFinalStateStatus aS)
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
const G4ParticleDefinition * GetDefinition() const
const G4LorentzVector & Get4Momentum() const
G4double GetGlobalTime() const
void SetTime(G4double aT)
void SetCreatorModelID(G4int id)
static G4double GetNuclearMass(const G4double A, const G4double Z)
G4int GetA_asInt() const
Definition: G4Nucleus.hh:99
G4int GetZ_asInt() const
Definition: G4Nucleus.hh:105
const G4String & GetParticleName() const
virtual G4ReactionProductVector * DeExcite(G4Fragment &aFragment) final

◆ BuildPhysicsTable()

void G4PreCompoundModel::BuildPhysicsTable ( const G4ParticleDefinition )
finalvirtual

Reimplemented from G4HadronicInteraction.

Definition at line 94 of file G4PreCompoundModel.cc.

95{
97}
virtual void InitialiseModel() final

◆ DeExcite()

G4ReactionProductVector * G4PreCompoundModel::DeExcite ( G4Fragment aFragment)
finalvirtual

Implements G4VPreCompoundModel.

Definition at line 197 of file G4PreCompoundModel.cc.

198{
199 if(!isInitialised) { InitialiseModel(); }
200
202 G4double U = aFragment.GetExcitationEnergy();
203 G4int Z = aFragment.GetZ_asInt();
204 G4int A = aFragment.GetA_asInt();
205
206 //G4cout << "### G4PreCompoundModel::DeExcite" << G4endl;
207 //G4cout << aFragment << G4endl;
208
209 // Conditions to skip pre-compound and perform equilibrium emission
210 if (!isActive || (Z < minZ && A < minA) ||
211 U < fLowLimitExc*A || U > A*fHighLimitExc || 0 < aFragment.GetNumberOfLambdas()) {
212 PerformEquilibriumEmission(aFragment, Result);
213 return Result;
214 }
215
216 // main loop
217 G4int count = 0;
218 const G4double ldfact = 12.0/CLHEP::pi2;
219 const G4int countmax = 1000;
220 for (;;) {
221 //G4cout << "### PreCompound loop over fragment" << G4endl;
222 //G4cout << aFragment << G4endl;
223 U = aFragment.GetExcitationEnergy();
224 Z = aFragment.GetZ_asInt();
225 A = aFragment.GetA_asInt();
226 G4int eqExcitonNumber =
227 G4lrint(std::sqrt(ldfact*U*fNuclData->GetLevelDensity(Z, A, U)));
228 //
229 // G4cout<<"Neq="<<EquilibriumExcitonNumber<<G4endl;
230 //
231 // J. M. Quesada (Jan. 08) equilibrium hole number could be used as preeq.
232 // evap. delimiter (IAEA report)
233
234 // Loop for transitions, it is performed while there are
235 // preequilibrium transitions.
236 G4bool isTransition = false;
237
238 // G4cout<<"----------------------------------------"<<G4endl;
239 // G4double NP=aFragment.GetNumberOfParticles();
240 // G4double NH=aFragment.GetNumberOfHoles();
241 // G4double NE=aFragment.GetNumberOfExcitons();
242 // G4cout<<" Ex. Energy="<<aFragment.GetExcitationEnergy()<<G4endl;
243 // G4cout<<"N. excitons="<<NE<<" N. Part="<<NP<<"N. Holes ="<<NH<<G4endl;
244 do {
245 ++count;
246 //G4cout<<"transition number .."<<count
247 // <<" n ="<<aFragment.GetNumberOfExcitons()<<G4endl;
248 // soft cutoff criterium as an "ad-hoc" solution to force
249 // increase in evaporation
250 G4int ne = aFragment.GetNumberOfExcitons();
251 G4bool go_ahead = (ne <= eqExcitonNumber);
252
253 //J. M. Quesada (Apr. 08): soft-cutoff switched off by default
254 if (useSCO && go_ahead) {
255 G4double x = (G4double)(ne - eqExcitonNumber)/(G4double)eqExcitonNumber;
256 if( G4UniformRand() < 1.0 - G4Exp(-x*x/0.32) ) { go_ahead = false; }
257 }
258
259 // JMQ: WARNING: CalculateProbability MUST be called prior to Get!!
260 // (O values would be returned otherwise)
261 G4double transProbability =
262 theTransition->CalculateProbability(aFragment);
263 G4double P1 = theTransition->GetTransitionProb1();
264 G4double P2 = theTransition->GetTransitionProb2();
265 G4double P3 = theTransition->GetTransitionProb3();
266 //G4cout<<"#0 P1="<<P1<<" P2="<<P2<<" P3="<<P3<<G4endl;
267
268 //J.M. Quesada (May 2008) Physical criterium (lamdas) PREVAILS over
269 // approximation (critical exciton number)
270 //V.Ivanchenko (May 2011) added check on number of nucleons
271 // to send a fragment to FermiBreakUp
272 // or check on limits of excitation
273 if(!go_ahead || P1 <= P2+P3 || Z < minZ || A < minA ||
274 U <= fLowLimitExc*A || U > A*fHighLimitExc ||
275 aFragment.GetNumberOfExcitons() <= 0) {
276 //G4cout<<"#4 EquilibriumEmission"<<G4endl;
277 PerformEquilibriumEmission(aFragment,Result);
278 return Result;
279 }
280 G4double emissionProbability =
281 theEmission->GetTotalProbability(aFragment);
282 //G4cout<<"#1 TotalEmissionProbability="<<TotalEmissionProbability
283 // <<" Nex= " <<aFragment.GetNumberOfExcitons()<<G4endl;
284 //J.M.Quesada (May 08) this has already been done in order to decide
285 // what to do (preeq-eq)
286 // Sum of all probabilities
287 G4double TotalProbability = emissionProbability + transProbability;
288
289 // Select subprocess
290 if (TotalProbability*G4UniformRand() > emissionProbability) {
291 //G4cout<<"#2 Transition"<<G4endl;
292 // It will be transition to state with a new number of excitons
293 isTransition = true;
294 // Perform the transition
295 theTransition->PerformTransition(aFragment);
296 } else {
297 //G4cout<<"#3 Emission"<<G4endl;
298 // It will be fragment emission
299 isTransition = false;
300 Result->push_back(theEmission->PerformEmission(aFragment));
301 }
302 // Loop checking, 05-Aug-2015, Vladimir Ivanchenko
303 } while (isTransition); // end of do loop
304
305 // stop if too many iterations
306 if(count >= countmax) {
308 ed << "G4PreCompoundModel loop over " << countmax << " iterations; "
309 << "current G4Fragment: \n" << aFragment;
310 G4Exception("G4PreCompoundModel::DeExcite()","had0034",JustWarning,
311 ed,"");
312 PerformEquilibriumEmission(aFragment, Result);
313 return Result;
314 }
315 } // end of for (;;) loop
316 return Result;
317}
@ JustWarning
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
Definition: G4Exp.hh:180
bool G4bool
Definition: G4Types.hh:86
#define G4UniformRand()
Definition: Randomize.hh:52
G4double GetExcitationEnergy() const
Definition: G4Fragment.hh:312
G4int GetZ_asInt() const
Definition: G4Fragment.hh:289
G4int GetNumberOfExcitons() const
Definition: G4Fragment.hh:361
G4int GetNumberOfLambdas() const
Definition: G4Fragment.hh:307
G4int GetA_asInt() const
Definition: G4Fragment.hh:284
G4double GetLevelDensity(G4int Z, G4int A, G4double U)
G4ReactionProduct * PerformEmission(G4Fragment &aFragment)
G4double GetTotalProbability(const G4Fragment &aFragment)
virtual G4double CalculateProbability(const G4Fragment &aFragment)=0
virtual void PerformTransition(G4Fragment &aFragment)=0
int G4lrint(double ad)
Definition: templates.hh:134

Referenced by G4LowEGammaNuclearModel::ApplyYourself(), ApplyYourself(), G4LowEIonFragmentation::ApplyYourself(), and G4NeutrinoNucleusModel::RecoilDeexcitation().

◆ DeExciteModelDescription()

void G4PreCompoundModel::DeExciteModelDescription ( std::ostream &  outFile) const
finalvirtual

Implements G4VPreCompoundModel.

Definition at line 349 of file G4PreCompoundModel.cc.

350{
351 outFile << "description of precompound model as used with DeExcite()" << "\n";
352}

◆ InitialiseModel()

void G4PreCompoundModel::InitialiseModel ( )
finalvirtual

Reimplemented from G4HadronicInteraction.

Definition at line 101 of file G4PreCompoundModel.cc.

102{
103 if(isInitialised) { return; }
104 isInitialised = true;
105
106 //G4cout << "G4PreCompoundModel::InitialiseModel() started" << G4endl;
107
108 G4DeexPrecoParameters* param = fNuclData->GetParameters();
109
110 fLowLimitExc = param->GetPrecoLowEnergy();
111 fHighLimitExc = param->GetPrecoHighEnergy();
112
113 useSCO = param->UseSoftCutoff();
114
115 minZ = param->GetMinZForPreco();
116 minA = param->GetMinAForPreco();
117
118 theEmission = new G4PreCompoundEmission();
119 if(param->UseHETC()) { theEmission->SetHETCModel(); }
120 theEmission->SetOPTxs(param->GetPrecoModelType());
121
122 if(param->UseGNASH()) { theTransition = new G4GNASHTransitions; }
123 else { theTransition = new G4PreCompoundTransitions(); }
124 theTransition->UseNGB(param->NeverGoBack());
125 theTransition->UseCEMtr(param->UseCEM());
126
127 if(param->PrecoDummy()) { isActive = false; }
128
130}
G4double GetPrecoLowEnergy() const
G4double GetPrecoHighEnergy() const
G4DeexPrecoParameters * GetParameters()

Referenced by BuildPhysicsTable(), and DeExcite().

◆ ModelDescription()

void G4PreCompoundModel::ModelDescription ( std::ostream &  outFile) const
finalvirtual

Reimplemented from G4HadronicInteraction.

Definition at line 323 of file G4PreCompoundModel.cc.

324{
325 outFile
326 << "The GEANT4 precompound model is considered as an extension of the\n"
327 << "hadron kinetic model. It gives a possibility to extend the low energy range\n"
328 << "of the hadron kinetic model for nucleon-nucleus inelastic collision and it \n"
329 << "provides a ”smooth” transition from kinetic stage of reaction described by the\n"
330 << "hadron kinetic model to the equilibrium stage of reaction described by the\n"
331 << "equilibrium deexcitation models.\n"
332 << "The initial information for calculation of pre-compound nuclear stage\n"
333 << "consists of the atomic mass number A, charge Z of residual nucleus, its\n"
334 << "four momentum P0 , excitation energy U and number of excitons n, which equals\n"
335 << "the sum of the number of particles p (from them p_Z are charged) and the number of\n"
336 << "holes h.\n"
337 << "At the preequilibrium stage of reaction, we follow the exciton model approach in ref. [1],\n"
338 << "taking into account the competition among all possible nuclear transitions\n"
339 << "with ∆n = +2, −2, 0 (which are defined by their associated transition probabilities) and\n"
340 << "the emission of neutrons, protons, deuterons, thritium and helium nuclei (also defined by\n"
341 << "their associated emission probabilities according to exciton model)\n"
342 << "\n"
343 << "[1] K.K. Gudima, S.G. Mashnik, V.D. Toneev, Nucl. Phys. A401 329 (1983)\n"
344 << "\n";
345}

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