88 , theProjectile(projectile)
100 particleName =
"Proton";
103 particleName =
"Deuteron";
106 particleName =
"Triton";
109 particleName =
"He3";
112 particleName =
"Alpha";
114 G4String message(
"G4ParticleHPInelastic may only be called for neutron, proton, deuteron, triton, He3 or alpha, while it is called for " + theProjectile->
GetParticleName());
123 G4String message(
"Please setenv G4PARTICLEHPDATA (recommended) or, at least setenv " +
130 dirName = baseName +
"/" + particleName;
177 rWeight = NumAtomsPerVolume[i];
179 xSec[i] = ((*theInelastic)[index])->GetXsec(aThermalE.
GetThermalEnergy(aTrack,
190 G4cout <<
" G4ParticleHPInelastic XSEC ELEM " << i <<
" = " << xSec[i] <<
G4endl;
203 if( sum == 0 || random<=running/sum)
break;
219 const G4Isotope* target_isotope =
nullptr;
221 for (
G4int j = 0 ; j != iele ; ++j ) {
222 target_isotope=target_element->
GetIsotope( j );
235 return std::pair<G4double, G4double>(10.0*perCent, 350.0*CLHEP::GeV);
312 ((*theInelastic)[i])->RestartRegistration();
315 while( !((*
theInelastic)[i])->HasDataInAnyFinalState() && itry < 6 );
324 G4cout <<
"The components of the element are" <<
G4endl;
340 outFile <<
"Extension of High Precision model for inelastic reaction of proton,\n"
341 <<
"deuteron, triton, He3 and alpha below 20MeV\n";
const char * G4FindDataDir(const char *)
G4GLOB_DLL std::ostream G4cout
static G4Deuteron * Deuteron()
static G4ElementTable * GetElementTable()
static size_t GetNumberOfElements()
const G4Isotope * GetIsotope(G4int iso) const
size_t GetNumberOfIsotopes() const
const G4String & GetName() const
const G4Material * GetMaterial() const
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
static G4HadronicParameters * Instance()
G4int GetVerboseLevel() const
G4double GetTemperature() const
const G4Element * GetElement(G4int iel) const
size_t GetNumberOfElements() const
const G4double * GetVecNbOfAtomsPerVolume() const
const G4String & GetName() const
static G4Neutron * Neutron()
void SetParameters(const G4double A, const G4double Z, const G4int numberOfLambdas=0)
void SetIsotope(const G4Isotope *iso)
const G4String & GetParticleName() const
void SetVerboseLevel(G4int)
G4ParticleHPInelastic(G4ParticleDefinition *projectile=G4Neutron::Neutron(), const char *name="NeutronHPInelastic")
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
void BuildPhysicsTable(const G4ParticleDefinition &)
virtual const std::pair< G4double, G4double > GetFatalEnergyCheckLevels() const
G4int GetVerboseLevel() const
std::vector< G4ParticleHPChannelList * > * theInelastic
virtual void ModelDescription(std::ostream &outFile) const
std::vector< G4ParticleHPChannelList * > * GetInelasticFinalStates(const G4ParticleDefinition *)
void RegisterInelasticFinalStates(const G4ParticleDefinition *, std::vector< G4ParticleHPChannelList * > *)
void SetVerboseLevel(G4int i)
static G4ParticleHPManager * GetInstance()
void CloseReactionWhiteBoard()
void OpenReactionWhiteBoard()
G4ParticleHPReactionWhiteBoard * GetReactionWhiteBoard()
G4double GetThermalEnergy(const G4HadProjectile &aP, const G4Element *anE, G4double aT)
static G4Proton * Proton()
static G4Triton * Triton()