67 std::map< const G4int, G4FissionFragmentGenerator* >::iterator fissionGenerator;
70 for(
unsigned int M = 0; M < 10; ++M)
78 if(fissionGenerator->second)
80 finalParticles = fissionGenerator->second->G4GenerateFission(projectile);
91 for(
unsigned int i = 0; i < finalParticles->size(); ++i)
93 finalState->AddSecondary((*finalParticles)[i]);
99 if ( finalState != NULL ) finalState->SetStatusChange(
stopAndKill);
111 std::pair< std::map< const G4int, G4FissionFragmentGenerator* >::iterator,
bool > newIsotope;
116 if(newIsotope.second || newIsotope.first->second == NULL)
125 std::istringstream dataStream(std::ios::in);
144 newIsotope.first->second = fissionGenerator;
180 delete fissionGenerator;
192 std::map< const G4int, G4FissionFragmentGenerator* >::iterator fissionGenerator;
196 delete fissionGenerator->second;
static G4ParticleHPManager * GetInstance()
G4HadFinalState * ApplyYourself(const G4HadProjectile &projectile, G4int Z, G4int A)
MetaState
ENDF format provides for 3 isomers - 1 ground state and 2 meta states.
G4FissionFragmentGenerator is the front end class to be used by the user for handling all fission eve...
void G4SetSamplingScheme(G4FFGEnumerations::FissionSamplingScheme NewScheme)
Set the sampling scheme.
G4ParticleHPNames fileNames
void G4SetYieldType(G4FFGEnumerations::YieldType WhichYieldType)
Sets the ENDF yield type to be used for the data.
void G4SetMetaState(G4FFGEnumerations::MetaState WhichMetaState)
Sets the metastable state of the fission isotope.
void GetDataStream(G4String, std::istringstream &iss)
~G4WendtFissionFragmentGenerator()
static G4int G4MakeIsotopeCode(G4int Z, G4int A, G4int M)
Converts the Z, A and M of an isotope into an integer representation.
bool InitializeFissionProductYieldClass(std::istringstream &dataFile)
Initializes a new G4FPY...Dist class based on the class descriptor variables of G4FissionFragmentGene...
void InitializeANucleus(const G4int A, const G4int Z, const G4int M, const G4String &dataDirectory)
double A(double temperature)
std::vector< G4DynamicParticle * > G4DynamicParticleVector
void G4SetIsotope(G4int WhichIsotope)
Sets the fission isotope.
G4WendtFissionFragmentGenerator()
std::map< const G4int, G4FissionFragmentGenerator * > fissionIsotopes
A map of all the fission isotopes loaded at initialization.
void G4SetCause(G4FFGEnumerations::FissionCause WhichCause)
Sets the cause of fission event.
void G4SetIncidentEnergy(G4double WhatIncidentEnergy)
Sets the incident energy, if any, of the particle that cause fission.
#define G4FFG_FUNCTIONLEAVE__
G4ParticleHPDataUsed GetName(G4int A, G4int Z, G4String base, G4String rest, G4bool &active)
static const G4double ThermalNeutronEnergy
The energy of thermal neutrons.
#define G4FFG_FUNCTIONENTER__
static const G4FFGEnumerations::Verbosity Verbosity
Verbosity for the entire package.
static G4ThreadLocal G4WendtFissionFragmentGenerator * instance