60 std::istringstream theData(std::ios::in);
63 G4int infoType, dataType;
65 while (theData >> infoType)
72 if(dataType==4) theNeutronAngularDis.
Init(theData);
73 if(dataType==5) thePromptNeutronEnDis.
Init(theData);
74 if(dataType==12) theFinalStatePhotons.
InitMean(theData);
75 if(dataType==14) theFinalStatePhotons.
InitAngular(theData);
76 if(dataType==15) theFinalStatePhotons.
InitEnergies(theData);
79 if(dataType==1) theFinalStateNeutrons.
InitMean(theData);
82 if(dataType==1) theFinalStateNeutrons.
InitDelayed(theData);
83 if(dataType==5) theDelayedNeutronEnDis.
Init(theData);
86 if(dataType==1) theFinalStateNeutrons.
InitPrompt(theData);
89 if(dataType==1) theEnergyRelease.
Init(theData);
92 G4cout <<
"G4ParticleHPFSFissionFS::Init: unknown data type"<<dataType<<
G4endl;
93 throw G4HadronicException(__FILE__, __LINE__,
"G4ParticleHPFSFissionFS::Init: unknown data type");
106 boosted.
Lorentz( *(fCache.
Get().theNeutronRP) , *(fCache.
Get().theTarget) );
111 for(i=0; i<nPrompt+nDelayed; ++i)
119 for(i=0; i<nPrompt; ++i)
121 tempE = thePromptNeutronEnDis.
Sample(eKinetic, dummy);
124 for(i=nPrompt; i<nPrompt+nDelayed; ++i)
132 for(i=0; i<nPrompt+nDelayed; ++i)
138 for(i=0; i<nPrompt+nDelayed; ++i)
143 aResult->push_back(dp);
145 delete [] theNeutrons;
153 promptNeutronMulti = theFinalStateNeutrons.
GetPrompt(eKinetic);
155 delayedNeutronMulti = theFinalStateNeutrons.
GetDelayed(eKinetic);
157 if(delayedNeutronMulti==0&&promptNeutronMulti==0)
170 all = Prompt+delayed;
181 boosted.
Lorentz( *(fCache.
Get().theNeutronRP) , *(fCache.
Get().theTarget) );
183 temp = theFinalStatePhotons.
GetPhotons(anEnergy);
184 if(temp == 0) {
return 0; }
189 for(i=0; i<temp->size(); ++i)
192 temp->operator[](i)->Lorentz(*(temp->operator[](i)), -1.* (*(fCache.
Get().theTarget)) );
195 theOne->
SetMomentum(temp->operator[](i)->GetMomentum());
196 result->push_back(theOne);
197 delete temp->operator[](i);
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)