52 lowestEnergy = 1.*keV;
60 char* dirName = getenv(
"G4PhysListDocDir");
62 std::ofstream outFile;
65 outFile.open(pathName);
66 outFile <<
"<html>\n";
67 outFile <<
"<head>\n";
69 outFile <<
"<title>Description of G4HadronElasticProcess</title>\n";
70 outFile <<
"</head>\n";
71 outFile <<
"<body>\n";
73 outFile <<
"G4HadronElasticProcess handles the elastic scattering of\n"
74 <<
"hadrons by invoking one or more hadronic models and one or\n"
75 <<
"more hadronic cross sections.\n";
77 outFile <<
"</body>\n";
78 outFile <<
"</html>\n";
117 ed <<
" PostStepDoIt failed on element selection" <<
G4endl;
118 G4Exception(
"G4HadronElasticProcess::PostStepDoIt",
"had003",
129 ed <<
"Target element "<< elm->
GetName()<<
" Z= "
132 DumpState(track,
"ChooseHadronicInteraction",ed);
133 ed <<
" No HadronicInteraction found out" <<
G4endl;
134 G4Exception(
"G4HadronElasticProcess::PostStepDoIt",
"had005",
147 G4cout <<
"G4HadronElasticProcess::PostStepDoIt for "
149 <<
" in " << material->
GetName()
163 ed <<
"Target element "<< elm->
GetName()<<
" Z= "
167 ed <<
" ApplyYourself failed" <<
G4endl;
168 G4Exception(
"G4HadronElasticProcess::PostStepDoIt",
"had006",
187 <<
" dir= " << outdir
194 if(efinal < 0.0) { efinal = 0.0; }
195 if(edep < 0.0) { edep = 0.0; }
199 if(efinal <= lowestEnergy) {
260 isInitialised =
true;
#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 ~G4HadronElasticProcess()
virtual void Description() const
virtual void PreparePhysicsTable(const G4ParticleDefinition &)
virtual G4VParticleChange * PostStepDoIt(const G4Track &aTrack, const G4Step &aStep)
G4HadronElasticProcess(const G4String &procName="hadElastic")
virtual void SetLowestEnergy(G4double)
virtual void SetLowestEnergyNeutron(G4double)
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 &)
virtual void PreparePhysicsTable(const G4ParticleDefinition &)
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
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
std::ostringstream G4ExceptionDescription