64 lowestEnergy = 1.*keV;
65 lowestEnergyNeutron = 1.e-6*eV;
74 char* dirName = getenv(
"G4PhysListDocDir");
76 std::ofstream outFile;
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)) {
#define G4HadronicDeprecate(name)
G4DLLIMPORT std::ostream G4cout
Hep3Vector & rotateUz(const Hep3Vector &)
Hep3Vector & rotate(double, const Hep3Vector &)
G4Element * SampleZandA(const G4DynamicParticle *, const G4Material *, G4Nucleus &target)
void SetMomentumDirection(const G4ThreeVector &aDirection)
const G4ThreeVector & GetMomentumDirection() const
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
const G4String & GetName() const
G4double GetEnergyChange() const
G4double GetLocalEnergyDeposit() const
G4int GetNumberOfSecondaries() const
const G4ThreeVector & GetMomentumChange() const
G4HadSecondary * GetSecondary(size_t i)
G4DynamicParticle * GetParticle()
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)=0
const G4String & GetModelName() const
void SetRecoilEnergyThreshold(G4double val)
G4Nucleus * GetTargetNucleusPointer()
G4ParticleChange * theTotalResult
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4CrossSectionDataStore * GetCrossSectionDataStore()
G4HadronicInteraction * ChooseHadronicInteraction(G4double kineticEnergy, G4Material *aMaterial, G4Element *anElement)
void DumpState(const G4Track &, const G4String &, G4ExceptionDescription &)
const G4String & GetName() const
static G4Neutron * Neutron()
void AddSecondary(G4Track *aSecondary)
void ProposeEnergy(G4double finalEnergy)
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
virtual void Initialize(const G4Track &)
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
G4ProcessVector * GetAtRestProcessVector(G4ProcessVectorTypeIndex typ=typeGPIL) const
const std::vector< G4double > * GetEnergyCutsVector(size_t pcIdx) const
static G4ProductionCutsTable * GetProductionCutsTable()
G4TrackStatus GetTrackStatus() const
G4double GetWeight() const
void SetWeight(G4double aValue)
const G4ThreeVector & GetPosition() const
void SetTouchableHandle(const G4TouchableHandle &apValue)
G4double GetGlobalTime() const
G4Material * GetMaterial() const
const G4DynamicParticle * GetDynamicParticle() const
const G4TouchableHandle & GetTouchableHandle() const
const G4ThreeVector & GetMomentumDirection() const
G4double GetKineticEnergy() const
const G4MaterialCutsCouple * GetMaterialCutsCouple() const
void ProposeTrackStatus(G4TrackStatus status)
void ProposeNonIonizingEnergyDeposit(G4double anEnergyPart)
void ProposeWeight(G4double finalWeight)
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
void SetNumberOfSecondaries(G4int totSecondaries)
void ClearNumberOfInteractionLengthLeft()
const G4String & GetProcessName() const
virtual ~G4WHadronElasticProcess()
virtual G4VParticleChange * PostStepDoIt(const G4Track &aTrack, const G4Step &aStep)
G4WHadronElasticProcess(const G4String &procName="hadElastic")
virtual void Description() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
std::ostringstream G4ExceptionDescription