51 ,theProjectile(projectile)
54 if ( std::getenv(
"G4PARTICLEHPDATA") ) {
55 baseName = std::getenv(
"G4PARTICLEHPDATA" );
63 particleName =
"Proton";
66 particleName =
"Deuteron";
69 particleName =
"Triton";
75 particleName =
"Alpha";
77 G4String message(
"G4ParticleHPInelastic may only be called for neutron, proton, deuteron, triton, He3 or alpha, while it is called for " + theProjectile->
GetParticleName());
85 if ( !std::getenv(
"G4PARTICLEHPDATA") && !std::getenv(
dataDirVariable) ) {
86 G4String message(
"Please setenv G4PARTICLEHPDATA (recommended) or, at least setenv " +
93 dirName = baseName +
"/" + particleName;
247 for ( std::vector<G4ParticleHPChannelList*>::iterator
276 rWeight = NumAtomsPerVolume[i];
278 xSec[i] = ((*theInelastic)[index])->GetXsec(aThermalE.
GetThermalEnergy(aTrack,
289 G4cout <<
" G4ParticleHPInelastic XSEC ELEM " << i <<
" = " << xSec[i] <<
G4endl;
302 if( sum == 0 || random<=running/sum)
break;
320 for (
G4int j = 0 ; j != iele ; j++ ) {
321 target_isotope=target_element->
GetIsotope( j );
332 if( std::getenv(
"G4PHPTEST") ) {
338 G4cout <<
" G4ParticleHPinelastic COS THETA " << std::cos(secoMom.
theta()) <<
" " << secoMom <<
G4endl;
350 return std::pair<G4double, G4double>(10*perCent,
DBL_MAX);
562 ((*theInelastic)[i])->RestartRegistration();
565 while( !((*
theInelastic)[i])->HasDataInAnyFinalState() && itry < 6 );
585 G4cout <<
"The components of the element are" <<
G4endl;
602 outFile <<
"Extension of High Precision model for inelastic reaction of proton, deuteron, triton, He3 and alpha below 20MeV\n";
G4GLOB_DLL std::ostream G4cout
static G4Deuteron * Deuteron()
G4ThreeVector GetMomentum() const
static G4ElementTable * GetElementTable()
static size_t GetNumberOfElements()
const G4Isotope * GetIsotope(G4int iso) const
size_t GetNumberOfIsotopes() const
const G4String & GetName() const
G4HadSecondary * GetSecondary(size_t i)
const G4Material * GetMaterial() const
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4DynamicParticle * GetParticle()
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)
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()