50 ,theProjectile(projectile)
53 if ( std::getenv(
"G4PARTICLEHPDATA") ) {
54 baseName = std::getenv(
"G4PARTICLEHPDATA" );
62 particleName =
"Proton";
65 particleName =
"Deuteron";
68 particleName =
"Triton";
74 particleName =
"Alpha";
84 if ( !std::getenv(
"G4PARTICLEHPDATA") && !std::getenv(
dataDirVariable) ) {
85 G4String message(
"Please setenv G4PARTICLEHPDATA (recommended) or, at least setenv " +
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( std::getenv(
"G4ParticleHPDebug") )
G4cout <<
" G4ParticleHPInelastic XSEC ELEM " << i <<
" = " << xSec[i] <<
G4endl;
292 if( sum == 0 || random<=running/sum)
break;
298 if( std::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( std::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";