68 std::istringstream theData(std::ios::in);
78 theData >> dummy >> dummy;
81 theXsection->Init(theData, total, eV);
82 if (!(theData >> dummy)) {
89 theAngularDistribution.Init(theData);
91 theData >> dummy >> dummy;
93 theEnergyDistribution.Init(theData);
107 boosted.
Lorentz(*(fCache.Get().theNeutronRP), *(fCache.Get().theTarget));
111 std::vector<G4ReactionProduct> theNeutrons;
112 for (i = 0; i < nPrompt; i++) {
113 theNeutrons.emplace_back();
119 for (i = 0; i < nPrompt; i++) {
121 theNeutrons[i].SetKineticEnergy(theEnergyDistribution.Sample(eKinetic, dummy));
125 for (i = 0; i < nPrompt; i++) {
126 theAngularDistribution.SampleAndUpdate(theNeutrons[i]);
130 for (i = 0; i < nPrompt; i++) {
133 it->SetMomentum(theNeutrons[i].GetMomentum());
134 aResult->push_back(it);
std::vector< G4DynamicParticle * > G4DynamicParticleVector
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
const G4String & GetName() const
void SetAZMs(const G4ParticleHPDataUsed &used)
G4ParticleHPNames theNames
G4DynamicParticleVector * ApplyYourself(G4int Prompt)
void Init(G4double A, G4double Z, G4int M, const G4String &dirName, const G4String &bit, G4ParticleDefinition *) override
void GetDataStream(const G4String &, std::istringstream &iss)
static G4ParticleHPManager * GetInstance()