105{
108 if (ekin > emax) {
110 }
111
114
115 G4int A = theNucleus.GetA_asInt();
116 G4int Z = theNucleus.GetZ_asInt();
117
119
120
122
123
124 G4double factT = T/CLHEP::STP_Temperature;
125
127 lab4mom.
set(0.,0.,0.,mass);
128 } else {
130 G4double erand = G4RandGamma::shoot(2.0, lambda);
132 lab4mom.
set(mom.x(), mom.y(), mom.z(), mass + erand);
133 }
134
136
140
141
142
143
145
147 G4cout <<
"G4NeutronRadCaptureHP::DoIt: Eini(MeV)="
148 << ekin/MeV << " Eexc(MeV)= "
150 <<
" Z= " << Z <<
" A= " <<
A <<
G4endl;
151 }
152 if (
M - mass > lowestEnergyLimit) {
156 lv2.boost(bst);
158 G4cout <<
"Gamma 4-mom: " << lv2 <<
" Escm(MeV)=" << e1/CLHEP::MeV <<
G4endl;
159 }
160 lab4mom -= lv2;
166 delete news;
167 }
168
170
173 else if (Z == 2 &&
A == 3) {theDef =
G4He3::He3(); }
176
177 if (nullptr != theDef) {
183 delete news;
184 }
185
186
187 } else {
188
189
191 G4double etot = std::max(mass, lab4mom.
e());
192 G4double ptot = std::sqrt((etot - mass)*(etot + mass));
194 lab4mom.
set(v.
x()*ptot,v.
y()*ptot,v.
z()*ptot,etot);
195 }
196
198
200 G4cout <<
"G4NeutronRadCaptureHP::ApplyYourself initial G4Fragmet:"
203 }
204
205
206
207
210 fv->push_back(aFragment);
211
213 G4cout <<
"G4NeutronRadCaptureHP: " << fv->size() <<
" final particle icID= "
215 }
216 for (auto const & f : *fv) {
217 G4double etot = f->GetMomentum().e();
218
219 Z = f->GetZ_asInt();
221
223 if (0 == Z && 0 ==
A) { theDef = f->GetParticleDefinition(); }
226 else if (Z == 2 &&
A == 3) { theDef =
G4He3::He3(); }
228 else {
229 G4double eexc = f->GetExcitationEnergy();
230 if (eexc <= minExcitation) { eexc = 0.0; }
232
233
234
235
236
237 }
238 ekin = std::max(0.0, etot - theDef->
GetPDGMass());
241 << " Ekin(MeV)= " << ekin/MeV
242 << " p: " << f->GetMomentum().vect()
244 }
247 f->GetMomentum().vect().unit(),
248 ekin));
249 G4double timeF = std::max(f->GetCreationTime(), 0.0);
251 if (theDef == electron) {
253 } else {
255 }
257 delete news;
258 delete f;
259 }
260 delete fv;
261 }
262
264}
std::vector< G4Fragment * > G4FragmentVector
G4ThreeVector G4RandomDirection()
G4GLOB_DLL std::ostream G4cout
Hep3Vector boostVector() const
void set(double x, double y, double z, double t)
static G4Deuteron * Deuteron()
void SetStatusChange(G4HadFinalStateStatus aS)
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
const G4Material * GetMaterial() const
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4double GetGlobalTime() const
void SetTime(G4double aT)
void SetCreatorModelID(G4int id)
G4HadFinalState theParticleChange
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
G4double GetTemperature() const
static G4double GetNuclearMass(const G4double A, const G4double Z)
G4double GetPDGMass() const
const G4String & GetParticleName() const
G4bool GetNeglectDoppler() const
static G4Triton * Triton()
G4FragmentVector * BreakUpFragment(G4Fragment *theNucleus)