64 lowestEnergy = 1.*
keV;
65 lowestEnergyNeutron = 1.e-6*
eV;
74 char* dirName = getenv(
"G4PhysListDocDir");
79 outFile.open(pathName);
80 outFile <<
"<html>\n";
81 outFile <<
"<head>\n";
83 outFile <<
"<title>Description of G4WHadronElasticProcess</title>\n";
84 outFile <<
"</head>\n";
85 outFile <<
"<body>\n";
87 outFile <<
"G4WHadronElasticProcess handles the elastic scattering of\n"
88 <<
"hadrons by invoking one or more hadronic models and one or\n"
89 <<
"more hadronic cross sections.\n";
91 outFile <<
"</body>\n";
92 outFile <<
"</html>\n";
116 if (part == theNeutron) {
134 ed <<
" PostStepDoIt failed on element selection" <<
G4endl;
135 G4Exception(
"G4WHadronElasticProcess::PostStepDoIt",
"had003",
146 ed <<
"Target element "<< elm->
GetName()<<
" Z= "
149 DumpState(track,
"ChooseHadronicInteraction",ed);
150 ed <<
" No HadronicInteraction found out" <<
G4endl;
151 G4Exception(
"G4WHadronElasticProcess::PostStepDoIt",
"had005",
164 G4cout <<
"G4WHadronElasticProcess::PostStepDoIt for "
166 <<
" in " << material->
GetName()
180 ed <<
"Target element "<< elm->
GetName()<<
" Z= "
184 ed <<
" ApplyYourself failed" <<
G4endl;
185 G4Exception(
"G4WHadronElasticProcess::PostStepDoIt",
"had006",
204 <<
" dir= " << outdir
211 if(efinal < 0.0) { efinal = 0.0; }
212 if(edep < 0.0) { edep = 0.0; }
216 if((part == theNeutron && efinal <= lowestEnergyNeutron) ||
217 (part != theNeutron && efinal <= lowestEnergy)) {