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;
238 for ( std::vector<G4ParticleHPChannelList*>::iterator
266 rWeight = NumAtomsPerVolume[i];
268 xSec[i] = ((*theInelastic)[index])->GetXsec(aThermalE.
GetThermalEnergy(aTrack,
277 if( getenv(
"G4ParticleHPDebug") )
G4cout <<
" G4ParticleHPInelastic XSEC ELEM " << i <<
" = " << xSec[i] <<
G4endl;
289 if( sum == 0 || random<=running/sum)
break;
295 if( getenv(
"G4ParticleHPDebug") )
G4cout <<
" G4ParticleHPInelastic SELECTED ELEM " << it <<
" = " << theMaterial->
GetElement(it)->
GetName() <<
" FROM MATERIAL " << theMaterial->
GetName() <<
G4endl;
304 for (
G4int j = 0 ; j != iele ; j++ ) {
305 target_isotope=target_element->
GetIsotope( j );
316 if( getenv(
"G4PHPTEST") ) {
320 G4cout <<
" G4ParticleHPinelastic COS THETA " << std::cos(secoMom.theta()) <<
" " << secoMom <<
G4endl;
540 ((*theInelastic)[i])->RestartRegistration();
543 while( !((*
theInelastic)[i])->HasDataInAnyFinalState() && itry < 6 );
561 G4cout <<
"The components of the element are" <<
G4endl;
577 outFile <<
"Extension of High Precision model for inelastic reaction of proton, deuteron, triton, He3 and alpha below 20MeV\n";
static G4ParticleHPManager * GetInstance()
size_t GetNumberOfIsotopes() const
virtual void ModelDescription(std::ostream &outFile) const
void SetIsotope(const G4Isotope *iso)
G4ParticleDefinition * theProjectile
G4HadSecondary * GetSecondary(size_t i)
CLHEP::Hep3Vector G4ThreeVector
static constexpr double perCent
const G4String & GetName() const
const char * name(G4int ptype)
const G4Element * GetElement(G4int iel) const
G4ParticleHPInelastic(G4ParticleDefinition *projectile=G4Neutron::Neutron(), const char *name="NeutronHPInelastic")
const G4String & GetParticleName() const
G4int GetVerboseLevel() const
void SetVerboseLevel(G4int i)
void SetMinEnergy(G4double anEnergy)
const G4double * GetVecNbOfAtomsPerVolume() const
G4GLOB_DLL std::ostream G4cout
static size_t GetNumberOfElements()
std::vector< G4ParticleHPChannelList * > * theInelastic
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
static G4Triton * Triton()
static G4Proton * Proton()
static G4Neutron * Neutron()
void OpenReactionWhiteBoard()
void BuildPhysicsTable(const G4ParticleDefinition &)
void SetVerboseLevel(G4int)
static G4Deuteron * Deuteron()
G4double GetThermalEnergy(const G4HadProjectile &aP, const G4Element *anE, G4double aT)
G4DynamicParticle * GetParticle()
std::vector< G4ParticleHPChannelList * > * GetInelasticFinalStates(const G4ParticleDefinition *)
void SetMaxEnergy(const G4double anEnergy)
const G4Isotope * GetIsotope(G4int iso) const
G4double GetTemperature() const
static constexpr double MeV
const G4Material * GetMaterial() const
void CloseReactionWhiteBoard()
size_t GetNumberOfElements() const
const G4String & GetName() const
static G4ElementTable * GetElementTable()
G4ParticleHPReactionWhiteBoard * GetReactionWhiteBoard()
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
void SetParameters(const G4double A, const G4double Z)
void RegisterInelasticFinalStates(const G4ParticleDefinition *, std::vector< G4ParticleHPChannelList * > *)
G4ThreeVector GetMomentum() const
virtual const std::pair< G4double, G4double > GetFatalEnergyCheckLevels() const