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 "
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++)
229 if ( theDecayConstants[i0-Prompt] > 1.0e-30 ) {
233 ed <<
" theDecayConstants[i0-Prompt]=" << theDecayConstants[i0-Prompt]
234 <<
" -> cannot sample the time : set it to 0.0 !" <<
G4endl;
244 delete [] theDecayConstants;
246 unsigned int nPhotons = 0;
249 nPhotons = thePhotons->size();
250 for(i=0; i<nPhotons; i++)
274 if ( produceFissionFragments )
297 G4double theta = std::acos(costheta);
299 G4ThreeVector direction(sinth*std::cos(phi), sinth*std::sin(phi), costheta);
double A(double temperature)
std::vector< G4DynamicParticle * > G4DynamicParticleVector
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4double G4Log(G4double x)
G4GLOB_DLL std::ostream G4cout
void Put(const value_type &val) const
void SetStatusChange(G4HadFinalStateStatus aS)
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
std::size_t GetNumberOfSecondaries() const
G4HadSecondary * GetSecondary(size_t i)
void SetLocalEnergyDeposit(G4double aE)
const G4Material * GetMaterial() const
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4double GetGlobalTime() const
void SetTime(G4double aT)
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
static G4IonTable * GetIonTable()
G4double GetTemperature() const
G4ReactionProduct GetBiasedThermalNucleus(G4double aMass, G4ThreeVector aVelocity, G4double temp=-1) const
G4double GetPDGMass() const
G4DynamicParticleVector * ApplyYourself(G4int nNeutrons)
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *projectile)
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *)
void GetAFissionFragment(G4double, G4int &, G4int &, G4int &)
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *)
G4DynamicParticleVector * ApplyYourself(G4int Prompt, G4int delayed, G4double *decayconst)
void SampleNeutronMult(G4int &all, G4int &Prompt, G4int &delayed, G4double energy, G4int off)
G4ParticleHPFissionERelease * GetEnergyRelease()
void SetNeutronRP(const G4ReactionProduct &aNeutron)
void SetTarget(const G4ReactionProduct &aTarget)
G4DynamicParticleVector * GetPhotons()
G4Cache< G4HadFinalState * > theResult
virtual G4double GetXsec(G4double anEnergy)
void SetTarget(const G4ReactionProduct &aTarget)
void SetNeutronRP(const G4ReactionProduct &aNeutron)
G4double GetFragmentKinetic()
G4HadFinalState * ApplyYourself(const G4HadProjectile &theTrack)
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *)
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *projectile)
G4DynamicParticleVector * ApplyYourself(G4int NNeutrons)
G4bool GetProduceFissionFragments()
static G4ParticleHPManager * GetInstance()
G4DynamicParticleVector * ApplyYourself(G4int NNeutrons)
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *projectile)
G4DynamicParticleVector * ApplyYourself(G4int NNeutrons)
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *projectile)
void SetMomentum(const G4double x, const G4double y, const G4double z)
G4double GetKineticEnergy() const
G4ThreeVector GetMomentum() const
void Lorentz(const G4ReactionProduct &p1, const G4ReactionProduct &p2)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
void SetKineticEnergy(const G4double en)