51 ,theProjectile(projectile)
54 if ( getenv(
"G4PARTICLEHPDATA") ) {
55 baseName = getenv(
"G4PARTICLEHPDATA" );
63 particleName =
"Proton";
66 particleName =
"Deuteron";
69 particleName =
"Triton";
75 particleName =
"Alpha";
92 dirName = baseName +
"/" + particleName;
240 for ( std::vector<G4ParticleHPChannelList*>::iterator
269 rWeight = NumAtomsPerVolume[i];
271 xSec[i] = ((*theInelastic)[index])->GetXsec(aThermalE.
GetThermalEnergy(aTrack,
280 if( getenv(
"G4ParticleHPDebug") )
G4cout <<
" G4ParticleHPInelastic XSEC ELEM " << i <<
" = " << xSec[i] <<
G4endl;
292 if( sum == 0 || random<=running/sum)
break;
298 if( getenv(
"G4ParticleHPDebug") )
G4cout <<
" G4ParticleHPInelastic SELECTED ELEM " << it <<
" = " << theMaterial->
GetElement(it)->
GetName() <<
" FROM MATERIAL " << theMaterial->
GetName() <<
G4endl;
307 for (
G4int j = 0 ; j != iele ; j++ ) {
308 target_isotope=target_element->
GetIsotope( j );
319 if( getenv(
"G4PHPTEST") ) {
323 G4cout <<
" G4ParticleHPinelastic COS THETA " << std::cos(secoMom.
theta()) <<
" " << secoMom <<
G4endl;
543 ((*theInelastic)[i])->RestartRegistration();
546 while( !((*
theInelastic)[i])->HasDataInAnyFinalState() && itry < 6 );
564 G4cout <<
"The components of the element are" <<
G4endl;
580 outFile <<
"Extension of High Precision model for inelastic reaction of proton, deuteron, triton, He3 and alpha below 20MeV\n";
static G4ParticleHPManager * GetInstance()
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
void CloseReactionWhiteBoard()
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
static constexpr double MeV
const G4String & GetName() const
G4HadSecondary * GetSecondary(size_t i)
void SetVerboseLevel(G4int i)
void SetIsotope(const G4Isotope *iso)
static constexpr double perCent
void message(RunManager *runmanager)
G4double GetThermalEnergy(const G4HadProjectile &aP, const G4Element *anE, G4double aT)
const G4String & GetParticleName() const
virtual const std::pair< G4double, G4double > GetFatalEnergyCheckLevels() const
const G4double * GetVecNbOfAtomsPerVolume() const
static G4Proton * Proton()
G4int GetVerboseLevel() const
static G4Deuteron * Deuteron()
void SetVerboseLevel(G4int)
const G4String & GetName() const
const G4Material * GetMaterial() const
G4ParticleHPReactionWhiteBoard * GetReactionWhiteBoard()
G4double G4ParticleHPJENDLHEData::G4double result
virtual void ModelDescription(std::ostream &outFile) const
G4double GetKineticEnergy() const
G4ParticleHPInelastic(G4ParticleDefinition *projectile=G4Neutron::Neutron(), const char *name="NeutronHPInelastic")
G4ThreeVector GetMomentum() const
const G4ParticleDefinition * GetDefinition() const
static G4Triton * Triton()
static G4Neutron * Neutron()
std::vector< G4ParticleHPChannelList * > * GetInelasticFinalStates(const G4ParticleDefinition *)
G4DynamicParticle * GetParticle()
G4GLOB_DLL std::ostream G4cout
std::vector< G4ParticleHPChannelList * > * theInelastic
const G4Isotope * GetIsotope(G4int iso) const
static size_t GetNumberOfElements()
void SetParameters(const G4double A, const G4double Z)
const G4Element * GetElement(G4int iel) const
G4ParticleDefinition * theProjectile
void RegisterInelasticFinalStates(const G4ParticleDefinition *, std::vector< G4ParticleHPChannelList * > *)
size_t GetNumberOfElements() const
G4double GetTemperature() const
void BuildPhysicsTable(const G4ParticleDefinition &)
void OpenReactionWhiteBoard()
static G4ElementTable * GetElementTable()
size_t GetNumberOfIsotopes() const