45 overrideSuspension =
false;
54 if (theElastic !=
nullptr) {
55 for (
auto it = theElastic->cbegin(); it != theElastic->cend(); ++it) {
88 for (i = 0; i < n; ++i) {
90 rWeight = NumAtomsPerVolume[i];
91 xSec[i] = ((*theElastic)[index])
99 for (i = 0; i < n; ++i) {
102 if (sum == 0 || random <= running / sum)
break;
110 for (i = 0; i < n; ++i) {
128 const G4Isotope* target_isotope =
nullptr;
130 for (
G4int j = 0; j != iele; ++j) {
131 target_isotope = target_element->
GetIsotope(j);
132 if (target_isotope->
GetN()
145 return std::pair<G4double, G4double>(10.0 * perCent, 350.0 * CLHEP::GeV);
165 if (theElastic ==
nullptr) theElastic =
new std::vector<G4ParticleHPChannel*>;
178 "Please setenv G4NEUTRONHPDATA to point to the neutron cross-section files.");
181 dirName = dirName + tString;
186 ((*theElastic)[i])->Register(theFS);
196 outFile <<
"High Precision model based on Evaluated Nuclear Data Files (ENDF) for inelastic "
197 "reaction of neutrons below 20MeV\n";
const char * G4FindDataDir(const char *)
static G4ElementTable * GetElementTable()
static size_t GetNumberOfElements()
const G4Isotope * GetIsotope(G4int iso) const
size_t GetNumberOfIsotopes() const
void SetStatusChange(G4HadFinalStateStatus aS)
const G4Material * GetMaterial() const
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
G4double GetTemperature() const
const G4Element * GetElement(G4int iel) const
const G4double * GetVecNbOfAtomsPerVolume() const
std::size_t GetNumberOfElements() const
void SetParameters(const G4double A, const G4double Z, const G4int numberOfLambdas=0)
void SetIsotope(const G4Isotope *iso)
void ModelDescription(std::ostream &outFile) const override
const std::pair< G4double, G4double > GetFatalEnergyCheckLevels() const override
G4int GetVerboseLevel() const
~G4ParticleHPElastic() override
void BuildPhysicsTable(const G4ParticleDefinition &) override
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus) override
void SetVerboseLevel(G4int)
void RegisterElasticFinalStates(std::vector< G4ParticleHPChannel * > *val)
std::vector< G4ParticleHPChannel * > * GetElasticFinalStates() const
G4int GetVerboseLevel() const
void SetVerboseLevel(G4int i)
static G4ParticleHPManager * GetInstance()
void CloseReactionWhiteBoard()
void OpenReactionWhiteBoard()
G4ParticleHPReactionWhiteBoard * GetReactionWhiteBoard()
G4double GetThermalEnergy(const G4HadProjectile &aP, const G4Element *anE, G4double aT)