86 theIsotope =
static_cast<G4int>(1000*Z+A);
100 G4int infoType, dataType;
102 while (theData >> infoType)
109 if(dataType==4) theNeutronAngularDis.
Init(theData);
110 if(dataType==5) thePromptNeutronEnDis.
Init(theData);
111 if(dataType==12) theFinalStatePhotons.
InitMean(theData);
112 if(dataType==14) theFinalStatePhotons.
InitAngular(theData);
113 if(dataType==15) theFinalStatePhotons.
InitEnergies(theData);
116 if(dataType==1) theFinalStateNeutrons.
InitMean(theData);
119 if(dataType==1) theFinalStateNeutrons.
InitDelayed(theData);
120 if(dataType==5) theDelayedNeutronEnDis.
Init(theData);
123 if(dataType==1) theFinalStateNeutrons.
InitPrompt(theData);
126 if(dataType==1) theEnergyRelease.
Init(theData);
129 G4cout <<
"G4FissionLibrary::Init: unknown data type"<<dataType<<
G4endl;
130 throw G4HadronicException(__FILE__, __LINE__,
"G4FissionLibrary::Init: unknown data type");
157 theNeutronAngularDis.
SetTarget(theTarget);
160 theNeutron.
Lorentz(theNeutron, -1*theTarget);
168 G4int nPrompt=0, gPrompt=0;
169 SampleMult(theTrack, &nPrompt, &gPrompt, eKinetic);
173 for(
G4int i=0; i<nPrompt; i++)
189 for(
G4int i=0; i<gPrompt; i++)
199 thePhoton->
Lorentz(*thePhoton, -1.*theTarget);
226 promptNeutronMulti = theFinalStateNeutrons.
GetPrompt(eKinetic);
228 delayedNeutronMulti = theFinalStateNeutrons.
GetDelayed(eKinetic);
231 if(delayedNeutronMulti==0&&promptNeutronMulti==0) {
236 genfissevt_(&theIsotope, &time, &totalNeutronMulti, &eKinetic);
239 genfissevt_(&theIsotope, &time, &promptNeutronMulti, &eKinetic);
242 if (*nPrompt == -1) *nPrompt = 0;
244 if (*gPrompt == -1) *gPrompt = 0;
void SetNeutron(const G4ReactionProduct &aNeutron)
G4NeutronHPFinalState * New()
G4NeutronHPNames theNames
G4double getndircosu_(G4int *index)
void SetMomentum(const G4ThreeVector &momentum)
G4double GetTotalMomentum() const
void Lorentz(const G4ReactionProduct &p1, const G4ReactionProduct &p2)
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &)
G4double getneng_(G4int *index)
void Init(std::istream &aDataFile)
void SetKineticEnergy(const G4double en)
void InitDelayed(std::istream &aDataFile)
void SetMomentum(const G4double x, const G4double y, const G4double z)
void SetTarget(const G4ReactionProduct &aTarget)
G4double GetFragmentKinetic()
G4NeutronHPDataUsed GetName(G4int A, G4int Z, G4String base, G4String rest, G4bool &active)
G4ParticleDefinition * GetDefinition() const
G4double GetTotalMomentum() const
G4double GetMean(G4double anEnergy)
void SetStatusChange(G4HadFinalStateStatus aS)
void InitAngular(std::istream &aDataFile)
G4ReactionProduct GetBiasedThermalNucleus(G4double aMass, G4ThreeVector aVelocity, G4double temp=-1) const
G4HadFinalState theResult
G4GLOB_DLL std::ostream G4cout
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4double GetGlobalTime() const
G4ErrorTarget * theTarget
void InitEnergies(std::istream &aDataFile)
void Init(std::istream &aDataFile)
static G4Neutron * Neutron()
const G4LorentzVector & Get4Momentum() const
void SetKineticEnergy(G4double aEnergy)
G4HadFinalState * ApplyYourself(const G4HadProjectile &theTrack)
G4double getpdircosw_(G4int *index)
G4double GetKineticEnergy() const
G4double GetDelayed(G4double anEnergy)
G4double getpeng_(G4int *index)
G4bool InitMean(std::istream &aDataFile)
G4double getpdircosu_(G4int *index)
void genfissevt_(G4int *isotope, G4double *time, G4double *nubar, G4double *eng)
G4double GetPDGMass() const
G4double getpdircosv_(G4int *index)
void SetDefinition(G4ParticleDefinition *aParticleDefinition)
void Init(std::istream &theData)
G4double getndircosv_(G4int *index)
G4ThreeVector GetMomentum() const
G4double GetTemperature() const
void SetLocalEnergyDeposit(G4double aE)
void InitPrompt(std::istream &aDataFile)
const G4Material * GetMaterial() const
G4double getndircosw_(G4int *index)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
G4double GetPrompt(G4double anEnergy)
void InitMean(std::istream &aDataFile)
void AddSecondary(G4DynamicParticle *aP)