46 theFS.
Init(A, Z, M, dirName, aFSType, projectile);
47 theFC.
Init(A, Z, M, dirName, aFSType, projectile);
48 theSC.
Init(A, Z, M, dirName, aFSType, projectile);
49 theTC.
Init(A, Z, M, dirName, aFSType, projectile);
50 theLC.
Init(A, Z, M, dirName, aFSType, projectile);
52 theFF.
Init(A, Z, M, dirName, aFSType, projectile);
55 G4cout <<
"Fission fragment production is now activated in HP package for "
57 <<
", A = " << (
G4int)A
60 G4cout <<
"As currently modeled this option precludes production of delayed neutrons from fission fragments." <<
G4endl;
61 produceFissionFragments =
true;
111 theNeutron.
Lorentz(theNeutron, -1*theTarget);
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()
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *projectile)
G4Cache< G4HadFinalState * > theResult
void Lorentz(const G4ReactionProduct &p1, const G4ReactionProduct &p2)
G4HadSecondary * GetSecondary(size_t i)
G4DynamicParticleVector * ApplyYourself(G4int NNeutrons)
void SetKineticEnergy(const G4double en)
void SetMomentum(const G4double x, const G4double y, const G4double z)
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
G4GLOB_DLL std::ostream G4cout
double A(double temperature)
const G4ParticleDefinition * GetDefinition() const
virtual G4double GetXsec(G4double anEnergy)
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *)
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()
G4double GetKineticEnergy() const
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *projectile)
void SetTarget(const G4ReactionProduct &aTarget)
G4double G4Log(G4double x)
G4double GetPDGMass() const
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *projectile)
G4ThreeVector GetMomentum() const
G4double GetTemperature() const
void SetLocalEnergyDeposit(G4double aE)
G4DynamicParticleVector * ApplyYourself(G4int NNeutrons)
const G4Material * GetMaterial() const
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *)
static constexpr double pi
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
G4DynamicParticleVector * ApplyYourself(G4int nNeutrons)
G4HadFinalState * ApplyYourself(const G4HadProjectile &theTrack)
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *projectile)
void Put(const value_type &val) const
G4int GetNumberOfSecondaries() const
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *)