60 std::istringstream theData(std::ios::in);
64 G4int infoType, dataType;
66 while (theData >> infoType)
73 if(dataType==4) theNeutronAngularDis.
Init(theData);
74 if(dataType==5) thePromptNeutronEnDis.
Init(theData);
75 if(dataType==12) theFinalStatePhotons.
InitMean(theData);
76 if(dataType==14) theFinalStatePhotons.
InitAngular(theData);
77 if(dataType==15) theFinalStatePhotons.
InitEnergies(theData);
80 if(dataType==1) theFinalStateNeutrons.
InitMean(theData);
83 if(dataType==1) theFinalStateNeutrons.
InitDelayed(theData);
84 if(dataType==5) theDelayedNeutronEnDis.
Init(theData);
87 if(dataType==1) theFinalStateNeutrons.
InitPrompt(theData);
90 if(dataType==1) theEnergyRelease.
Init(theData);
93 G4cout <<
"G4ParticleHPFSFissionFS::Init: unknown data type"<<dataType<<
G4endl;
94 throw G4HadronicException(__FILE__, __LINE__,
"G4ParticleHPFSFissionFS::Init: unknown data type");
109 boosted.
Lorentz( *(fCache.
Get().theNeutronRP) , *(fCache.
Get().theTarget) );
114 for(i=0; i<nPrompt+nDelayed; i++)
122 for(i=0; i<nPrompt; i++)
124 tempE = thePromptNeutronEnDis.
Sample(eKinetic, dummy);
127 for(i=nPrompt; i<nPrompt+nDelayed; i++)
135 for(i=0; i<nPrompt+nDelayed; i++)
141 for(i=0; i<nPrompt+nDelayed; i++)
146 aResult->push_back(dp);
148 delete [] theNeutrons;
156 promptNeutronMulti = theFinalStateNeutrons.
GetPrompt(eKinetic);
158 delayedNeutronMulti = theFinalStateNeutrons.
GetDelayed(eKinetic);
160 if(delayedNeutronMulti==0&&promptNeutronMulti==0)
170 Prompt =
G4Poisson(promptNeutronMulti-off);
172 delayed =
G4Poisson(delayedNeutronMulti);
173 all = Prompt+delayed;
183 boosted.
Lorentz( *(fCache.
Get().theNeutronRP) , *(fCache.
Get().theTarget) );
185 temp = theFinalStatePhotons.
GetPhotons(anEnergy);
186 if(temp == 0) {
return 0; }
191 for(i=0; i<temp->size(); i++)
194 temp->operator[](i)->Lorentz(*(temp->operator[](i)), -1.* (*(fCache.
Get().theTarget)) );
197 theOne->
SetMomentum(temp->operator[](i)->GetMomentum());
198 result->push_back(theOne);
199 delete temp->operator[](i);
double A(double temperature)
std::vector< G4DynamicParticle * > G4DynamicParticleVector
G4long G4Poisson(G4double mean)
std::vector< G4ReactionProduct * > G4ReactionProductVector
G4GLOB_DLL std::ostream G4cout
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
void SetMomentum(const G4ThreeVector &momentum)
static G4Neutron * Neutron()
void Init(std::istream &aDataFile)
void SampleAndUpdate(G4ReactionProduct &anIncidentParticle)
void Init(std::istream &theData)
G4double Sample(G4double anEnergy, G4int &it)
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)
G4DynamicParticleVector * GetPhotons()
void SetAZMs(G4double anA, G4double aZ, G4int aM, G4ParticleHPDataUsed used)
void Init(std::istream &aDataFile)
static G4ParticleHPManager * GetInstance()
void GetDataStream(G4String, std::istringstream &iss)
G4ParticleHPDataUsed GetName(G4int A, G4int Z, G4String base, G4String rest, G4bool &active)
G4double GetMean(G4double anEnergy)
G4double GetDecayConstant(G4int i)
void InitMean(std::istream &aDataFile)
void InitDelayed(std::istream &aDataFile)
G4double GetPrompt(G4double anEnergy)
void InitPrompt(std::istream &aDataFile)
G4double GetDelayed(G4double anEnergy)
void InitEnergies(std::istream &aDataFile)
G4ReactionProductVector * GetPhotons(G4double anEnergy)
void InitAngular(std::istream &aDataFile)
G4bool InitMean(std::istream &aDataFile)
G4double GetKineticEnergy() const
void Lorentz(const G4ReactionProduct &p1, const G4ReactionProduct &p2)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
void SetKineticEnergy(const G4double en)