79 theNeutron.SetKineticEnergy( eKinetic );
111 theNeutron.Lorentz(theNeutron, -1*theTarget);
120 eKinetic = theNeutron.GetKineticEnergy();
122 xSec[0] = theFC.
GetXsec(eKinetic);
123 xSec[1] = xSec[0]+theSC.
GetXsec(eKinetic);
124 xSec[2] = xSec[1]+theTC.
GetXsec(eKinetic);
125 xSec[3] = xSec[2]+theLC.
GetXsec(eKinetic);
138 if(random<xSec[i]/xSec[3])
break;
146 G4int Prompt=0, delayed=0, all=0;
152 if(Prompt==0&&delayed==0) Prompt=all;
158 if(Prompt==0&&delayed==0) Prompt=all;
163 if(Prompt==0&&delayed==0) Prompt=all;
168 if(Prompt==0&&delayed==0) Prompt=all;
179 if ( produceFissionFragments ) delayed=0;
183 if( theNeutrons != 0)
185 theDecayConstants =
new G4double[delayed];
190 for(i=0; i<theNeutrons->size(); i++)
198 theDelayed = theFS.
ApplyYourself(0, delayed, theDecayConstants);
199 for(i=0; i<theDelayed->size(); i++)
212 theDecayConstants =
new G4double[delayed];
213 if(Prompt==0&&delayed==0) Prompt=all;
214 theNeutrons = theFS.
ApplyYourself(Prompt, delayed, theDecayConstants);
219 for(i0=0; i0<Prompt; i0++)
225 for(i0=Prompt; i0<Prompt+delayed; i0++)
234 delete [] theDecayConstants;
236 unsigned int nPhotons = 0;
239 nPhotons = thePhotons->size();
240 for(i=0; i<nPhotons; i++)
264 if ( produceFissionFragments )
287 G4ThreeVector direction (sinth*std::cos(phi) , sinth*std::sin(phi), std::cos(theta) );
static G4ParticleHPManager * GetInstance()
G4Cache< G4HadFinalState * > theResult
G4HadSecondary * GetSecondary(size_t i)
G4DynamicParticleVector * ApplyYourself(G4int NNeutrons)
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
void SetNeutronRP(const G4ReactionProduct &aNeutron)
void SampleNeutronMult(G4int &all, G4int &Prompt, G4int &delayed, G4double energy, G4int off)
G4bool GetProduceFissionFragments()
void SetNeutronRP(const G4ReactionProduct &aNeutron)
void SetTarget(const G4ReactionProduct &aTarget)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
static constexpr double twopi
void SetStatusChange(G4HadFinalStateStatus aS)
void GetAFissionFragment(G4double, G4int &, G4int &, G4int &)
G4ReactionProduct GetBiasedThermalNucleus(G4double aMass, G4ThreeVector aVelocity, G4double temp=-1) const
const G4ParticleDefinition * GetDefinition() const
virtual G4double GetXsec(G4double anEnergy)
G4double GetKineticEnergy() const
G4ParticleHPFissionERelease * GetEnergyRelease()
G4double GetGlobalTime() const
G4double GetFragmentKinetic()
G4DynamicParticleVector * ApplyYourself(G4int Prompt, G4int delayed, G4double *decayconst)
std::vector< G4DynamicParticle * > G4DynamicParticleVector
G4DynamicParticleVector * ApplyYourself(G4int NNeutrons)
G4DynamicParticleVector * GetPhotons()
const G4LorentzVector & Get4Momentum() const
static G4IonTable * GetIonTable()
void SetTarget(const G4ReactionProduct &aTarget)
G4double G4Log(G4double x)
G4double GetPDGMass() const
G4double GetTemperature() const
void SetLocalEnergyDeposit(G4double aE)
G4DynamicParticleVector * ApplyYourself(G4int NNeutrons)
const G4Material * GetMaterial() const
static constexpr double pi
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
G4DynamicParticleVector * ApplyYourself(G4int nNeutrons)
void Put(const value_type &val) const
G4int GetNumberOfSecondaries() const