Geant4 9.6.0
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=0)
 
virtual ~G4PreCompoundModel ()
 
virtual G4HadFinalStateApplyYourself (const G4HadProjectile &thePrimary, G4Nucleus &theNucleus)
 
virtual G4ReactionProductVectorDeExcite (G4Fragment &aFragment)
 
virtual void ModelDescription (std::ostream &outFile) const
 
void UseHETCEmission ()
 
void UseDefaultEmission ()
 
void UseGNASHTransition ()
 
void UseDefaultTransition ()
 
void SetOPTxs (G4int opt)
 
void UseSICB ()
 
void UseNGB ()
 
void UseSCO ()
 
void UseCEMtr ()
 
- Public Member Functions inherited from G4VPreCompoundModel
 G4VPreCompoundModel (G4ExcitationHandler *ptr=0, const G4String &modelName="PrecompoundModel")
 
virtual ~G4VPreCompoundModel ()
 
virtual G4HadFinalStateApplyYourself (const G4HadProjectile &thePrimary, G4Nucleus &theNucleus)=0
 
virtual G4ReactionProductVectorDeExcite (G4Fragment &aFragment)=0
 
void SetExcitationHandler (G4ExcitationHandler *ptr)
 
G4ExcitationHandlerGetExcitationHandler () const
 
- Public Member Functions inherited from G4HadronicInteraction
 G4HadronicInteraction (const G4String &modelName="HadronicModel")
 
virtual ~G4HadronicInteraction ()
 
virtual G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)=0
 
virtual G4double SampleInvariantT (const G4ParticleDefinition *p, G4double plab, G4int Z, G4int A)
 
virtual G4bool IsApplicable (const G4HadProjectile &, G4Nucleus &)
 
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)
 
const G4HadronicInteractionGetMyPointer () const
 
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
 
G4bool operator== (const G4HadronicInteraction &right) const
 
G4bool operator!= (const G4HadronicInteraction &right) 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
 

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 64 of file G4PreCompoundModel.hh.

Constructor & Destructor Documentation

◆ G4PreCompoundModel()

G4PreCompoundModel::G4PreCompoundModel ( G4ExcitationHandler ptr = 0)

Definition at line 66 of file G4PreCompoundModel.cc.

67 : G4VPreCompoundModel(ptr,"PRECO"), useHETCEmission(false),
68 useGNASHTransition(false), OPTxs(3), useSICB(false),
69 useNGB(false), useSCO(false), useCEMtr(true), maxZ(3), maxA(5)
70 //maxZ(9), maxA(17)
71{
72 if(!ptr) { SetExcitationHandler(new G4ExcitationHandler()); }
74
75 theEmission = new G4PreCompoundEmission();
76 if(useHETCEmission) { theEmission->SetHETCModel(); }
77 else { theEmission->SetDefaultModel(); }
78 theEmission->SetOPTxs(OPTxs);
79 theEmission->UseSICB(useSICB);
80
81 if(useGNASHTransition) { theTransition = new G4GNASHTransitions; }
82 else { theTransition = new G4PreCompoundTransitions(); }
83 theTransition->UseNGB(useNGB);
84 theTransition->UseCEMtr(useCEMtr);
85
86 proton = G4Proton::Proton();
87 neutron = G4Neutron::Neutron();
88}
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
static G4PreCompoundParameters * GetAddress()
static G4Proton * Proton()
Definition: G4Proton.cc:93
void SetExcitationHandler(G4ExcitationHandler *ptr)

◆ ~G4PreCompoundModel()

G4PreCompoundModel::~G4PreCompoundModel ( )
virtual

Definition at line 90 of file G4PreCompoundModel.cc.

91{
92 delete theEmission;
93 delete theTransition;
94 delete GetExcitationHandler();
95}
G4ExcitationHandler * GetExcitationHandler() const

Member Function Documentation

◆ ApplyYourself()

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

Implements G4VPreCompoundModel.

Definition at line 121 of file G4PreCompoundModel.cc.

123{
124 const G4ParticleDefinition* primary = thePrimary.GetDefinition();
125 if(primary != neutron && primary != proton) {
126 std::ostringstream errOs;
127 errOs << "BAD primary type in G4PreCompoundModel: "
128 << primary->GetParticleName() <<G4endl;
129 throw G4HadronicException(__FILE__, __LINE__, errOs.str());
130 }
131
132 G4int Zp = 0;
133 G4int Ap = 1;
134 if(primary == proton) { Zp = 1; }
135
136 G4int A = theNucleus.GetA_asInt();
137 G4int Z = theNucleus.GetZ_asInt();
138
139 //G4cout << "### G4PreCompoundModel::ApplyYourself: A= " << A << " Z= " << Z
140 // << " Ap= " << Ap << " Zp= " << Zp << G4endl;
141 // 4-Momentum
142 G4LorentzVector p = thePrimary.Get4Momentum();
144 p += G4LorentzVector(0.0,0.0,0.0,mass);
145 //G4cout << "Primary 4-mom " << p << " mass= " << mass << G4endl;
146
147 // prepare fragment
148 G4Fragment anInitialState(A + Ap, Z + Zp, p);
149
150 // projectile and target nucleons
151 // Add nucleon on which interaction happens
152 //++Ap;
153 //if(A*G4UniformRand() <= G4double(Z)) { Zp += 1; }
154 anInitialState.SetNumberOfExcitedParticle(2, 1);
155 anInitialState.SetNumberOfHoles(1,0);
156 // anInitialState.SetNumberOfExcitedParticle(Ap, Zp);
157 // anInitialState.SetNumberOfHoles(Ap,Zp);
158
159 anInitialState.SetCreationTime(thePrimary.GetGlobalTime());
160
161 // call excitation handler
162 G4ReactionProductVector * result = DeExcite(anInitialState);
163
164 // fill particle change
165 theResult.Clear();
166 theResult.SetStatusChange(stopAndKill);
167 for(G4ReactionProductVector::iterator i= result->begin(); i != result->end(); ++i)
168 {
169 G4DynamicParticle * aNew =
170 new G4DynamicParticle((*i)->GetDefinition(),
171 (*i)->GetTotalEnergy(),
172 (*i)->GetMomentum());
173 delete (*i);
174 theResult.AddSecondary(aNew);
175 }
176 delete result;
177
178 //return the filled particle change
179 return &theResult;
180}
@ stopAndKill
CLHEP::HepLorentzVector G4LorentzVector
std::vector< G4ReactionProduct * > G4ReactionProductVector
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
#define G4endl
Definition: G4ios.hh:52
void SetStatusChange(G4HadFinalStateStatus aS)
void AddSecondary(G4DynamicParticle *aP)
const G4ParticleDefinition * GetDefinition() const
const G4LorentzVector & Get4Momentum() const
G4double GetGlobalTime() const
static G4double GetNuclearMass(const G4double A, const G4double Z)
G4int GetA_asInt() const
Definition: G4Nucleus.hh:109
G4int GetZ_asInt() const
Definition: G4Nucleus.hh:115
const G4String & GetParticleName() const
virtual G4ReactionProductVector * DeExcite(G4Fragment &aFragment)

◆ DeExcite()

G4ReactionProductVector * G4PreCompoundModel::DeExcite ( G4Fragment aFragment)
virtual

Implements G4VPreCompoundModel.

Definition at line 184 of file G4PreCompoundModel.cc.

185{
187 G4double Eex = aFragment.GetExcitationEnergy();
188 G4int Z = aFragment.GetZ_asInt();
189 G4int A = aFragment.GetA_asInt();
190
191 //G4cout << "### G4PreCompoundModel::DeExcite" << G4endl;
192 //G4cout << aFragment << G4endl;
193
194 // Perform Equilibrium Emission
195 if ((Z < maxZ && A < maxA) || Eex < MeV /*|| Eex > 3.*MeV*A*/) {
196 PerformEquilibriumEmission(aFragment, Result);
197 return Result;
198 }
199
200 // main loop
201 for (;;) {
202
203 //fragment++;
204 //G4cout<<"-------------------------------------------------------------------"<<G4endl;
205 //G4cout<<"Fragment number .. "<<fragment<<G4endl;
206
207 // Initialize fragment according with the nucleus parameters
208 //G4cout << "### Loop over fragment" << G4endl;
209 //G4cout << aFragment << G4endl;
210
211 theEmission->Initialize(aFragment);
212
213 G4double gg = (6.0/pi2)*aFragment.GetA_asInt()*theParameters->GetLevelDensity();
214
215 G4int EquilibriumExcitonNumber =
216 G4lrint(std::sqrt(2*gg*aFragment.GetExcitationEnergy()));
217 //
218 // G4cout<<"Neq="<<EquilibriumExcitonNumber<<G4endl;
219 //
220 // J. M. Quesada (Jan. 08) equilibrium hole number could be used as preeq.
221 // evap. delimiter (IAEA report)
222
223 // Loop for transitions, it is performed while there are preequilibrium transitions.
224 G4bool ThereIsTransition = false;
225
226 // G4cout<<"----------------------------------------"<<G4endl;
227 // G4double NP=aFragment.GetNumberOfParticles();
228 // G4double NH=aFragment.GetNumberOfHoles();
229 // G4double NE=aFragment.GetNumberOfExcitons();
230 // G4cout<<" Ex. Energy="<<aFragment.GetExcitationEnergy()<<G4endl;
231 // G4cout<<"N. excitons="<<NE<<" N. Part="<<NP<<"N. Holes ="<<NH<<G4endl;
232 //G4int transition=0;
233 do {
234 //transition++;
235 //G4cout<<"transition number .."<<transition<<G4endl;
236 //G4cout<<" n ="<<aFragment.GetNumberOfExcitons()<<G4endl;
237 G4bool go_ahead = false;
238 // soft cutoff criterium as an "ad-hoc" solution to force increase in evaporation
239 G4int test = aFragment.GetNumberOfExcitons();
240 if (test <= EquilibriumExcitonNumber) { go_ahead=true; }
241
242 //J. M. Quesada (Apr. 08): soft-cutoff switched off by default
243 if (useSCO && !go_ahead)
244 {
245 G4double x = G4double(test)/G4double(EquilibriumExcitonNumber) - 1;
246 if( G4UniformRand() < 1.0 - std::exp(-x*x/0.32) ) { go_ahead = true; }
247 }
248
249 // JMQ: WARNING: CalculateProbability MUST be called prior to Get methods !!
250 // (O values would be returned otherwise)
251 G4double TotalTransitionProbability =
252 theTransition->CalculateProbability(aFragment);
253 G4double P1 = theTransition->GetTransitionProb1();
254 G4double P2 = theTransition->GetTransitionProb2();
255 G4double P3 = theTransition->GetTransitionProb3();
256 //G4cout<<"#0 P1="<<P1<<" P2="<<P2<<" P3="<<P3<<G4endl;
257
258 //J.M. Quesada (May 2008) Physical criterium (lamdas) PREVAILS over
259 // approximation (critical exciton number)
260 //V.Ivanchenko (May 2011) added check on number of nucleons
261 // to send a fragment to FermiBreakUp
262 if(!go_ahead || P1 <= P2+P3 ||
263 (aFragment.GetZ_asInt() < maxZ && aFragment.GetA_asInt() < maxA) )
264 {
265 //G4cout<<"#4 EquilibriumEmission"<<G4endl;
266 PerformEquilibriumEmission(aFragment,Result);
267 return Result;
268 }
269 else
270 {
271 G4double TotalEmissionProbability =
272 theEmission->GetTotalProbability(aFragment);
273 //
274 //G4cout<<"#1 TotalEmissionProbability="<<TotalEmissionProbability<<" Nex= "
275 // <<aFragment.GetNumberOfExcitons()<<G4endl;
276 //
277 // Check if number of excitons is greater than 0
278 // else perform equilibrium emission
279 if (aFragment.GetNumberOfExcitons() <= 0)
280 {
281 PerformEquilibriumEmission(aFragment,Result);
282 return Result;
283 }
284
285 //J.M.Quesada (May 08) this has already been done in order to decide
286 // what to do (preeq-eq)
287 // Sum of all probabilities
288 G4double TotalProbability = TotalEmissionProbability
289 + TotalTransitionProbability;
290
291 // Select subprocess
292 if (TotalProbability*G4UniformRand() > TotalEmissionProbability)
293 {
294 //G4cout<<"#2 Transition"<<G4endl;
295 // It will be transition to state with a new number of excitons
296 ThereIsTransition = true;
297 // Perform the transition
298 theTransition->PerformTransition(aFragment);
299 }
300 else
301 {
302 //G4cout<<"#3 Emission"<<G4endl;
303 // It will be fragment emission
304 ThereIsTransition = false;
305 Result->push_back(theEmission->PerformEmission(aFragment));
306 }
307 }
308 } while (ThereIsTransition); // end of do loop
309 } // end of for (;;) loop
310 return Result;
311}
bool G4bool
Definition: G4Types.hh:67
#define G4UniformRand()
Definition: Randomize.hh:53
G4double GetExcitationEnergy() const
Definition: G4Fragment.hh:235
G4int GetZ_asInt() const
Definition: G4Fragment.hh:223
G4int GetNumberOfExcitons() const
Definition: G4Fragment.hh:300
G4int GetA_asInt() const
Definition: G4Fragment.hh:218
void Initialize(const G4Fragment &aFragment)
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:163

Referenced by G4LowEIonFragmentation::ApplyYourself(), and ApplyYourself().

◆ ModelDescription()

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

Reimplemented from G4HadronicInteraction.

Definition at line 97 of file G4PreCompoundModel.cc.

98{
99 outFile << "The GEANT4 precompound model is considered as an extension of the\n"
100 << "hadron kinetic model. It gives a possibility to extend the low energy range\n"
101 << "of the hadron kinetic model for nucleon-nucleus inelastic collision and it \n"
102 << "provides a ”smooth” transition from kinetic stage of reaction described by the\n"
103 << "hadron kinetic model to the equilibrium stage of reaction described by the\n"
104 << "equilibrium deexcitation models.\n"
105 << "The initial information for calculation of pre-compound nuclear stage\n"
106 << "consists of the atomic mass number A, charge Z of residual nucleus, its\n"
107 << "four momentum P0 , excitation energy U and number of excitons n, which equals\n"
108 << "the sum of the number of particles p (from them p_Z are charged) and the number of\n"
109 << "holes h.\n"
110 << "At the preequilibrium stage of reaction, we follow the exciton model approach in ref. [1],\n"
111 << "taking into account the competition among all possible nuclear transitions\n"
112 << "with ∆n = +2, −2, 0 (which are defined by their associated transition probabilities) and\n"
113 << "the emission of neutrons, protons, deutrons, thritium and helium nuclei (also defined by\n"
114 << "their associated emission probabilities according to exciton model)\n"
115 << "\n"
116 << "[1] K.K. Gudima, S.G. Mashnik, V.D. Toneev, Nucl. Phys. A401 329 (1983)\n"
117 << std::endl;
118}

◆ SetOPTxs()

void G4PreCompoundModel::SetOPTxs ( G4int  opt)

Definition at line 345 of file G4PreCompoundModel.cc.

346{
347 OPTxs = opt;
348 theEmission->SetOPTxs(OPTxs);
349}

◆ UseCEMtr()

void G4PreCompoundModel::UseCEMtr ( )

Definition at line 367 of file G4PreCompoundModel.cc.

368{
369 useCEMtr = true;
370}

◆ UseDefaultEmission()

void G4PreCompoundModel::UseDefaultEmission ( )

Definition at line 323 of file G4PreCompoundModel.cc.

324{
325 useHETCEmission = false;
326 theEmission->SetDefaultModel();
327}

◆ UseDefaultTransition()

void G4PreCompoundModel::UseDefaultTransition ( )

Definition at line 337 of file G4PreCompoundModel.cc.

337 {
338 useGNASHTransition = false;
339 delete theTransition;
340 theTransition = new G4PreCompoundTransitions();
341 theTransition->UseNGB(useNGB);
342 theTransition->UseCEMtr(useCEMtr);
343}

◆ UseGNASHTransition()

void G4PreCompoundModel::UseGNASHTransition ( )

Definition at line 329 of file G4PreCompoundModel.cc.

329 {
330 useGNASHTransition = true;
331 delete theTransition;
332 theTransition = new G4GNASHTransitions;
333 theTransition->UseNGB(useNGB);
334 theTransition->UseCEMtr(useCEMtr);
335}

◆ UseHETCEmission()

void G4PreCompoundModel::UseHETCEmission ( )

Definition at line 317 of file G4PreCompoundModel.cc.

318{
319 useHETCEmission = true;
320 theEmission->SetHETCModel();
321}

◆ UseNGB()

void G4PreCompoundModel::UseNGB ( )

Definition at line 357 of file G4PreCompoundModel.cc.

358{
359 useNGB = true;
360}

◆ UseSCO()

void G4PreCompoundModel::UseSCO ( )

Definition at line 362 of file G4PreCompoundModel.cc.

363{
364 useSCO = true;
365}

◆ UseSICB()

void G4PreCompoundModel::UseSICB ( )

Definition at line 351 of file G4PreCompoundModel.cc.

352{
353 useSICB = true;
354 theEmission->UseSICB(useSICB);
355}

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