48 fDiffraction(nullptr), fDiffractionRatio(nullptr)
56 outFile <<
"G4HadronElasticProcess handles the elastic scattering of \n"
57 <<
"hadrons by invoking the following hadronic model(s) and \n"
58 <<
"hadronic cross section(s).\n";
105 if(
nullptr != fDiffraction) {
123 <<
" off target element " << elm->
GetName() <<
" Z= "
127 ed <<
" ApplyYourself failed" <<
G4endl;
128 G4Exception(
"G4HadronElasticProcess::PostStepDoIt",
"had006",
132 result =
CheckResult(theProj, *targNucleus, result);
148 if(
nullptr == hadi) {
151 <<
" off target element " << elm->
GetName() <<
" Z= "
154 DumpState(track,
"ChooseHadronicInteraction",ed);
155 ed <<
" No HadronicInteraction found out" <<
G4endl;
156 G4Exception(
"G4HadronElasticProcess::PostStepDoIt",
"had005",
251 PrintWarning(
"G4HadronElasticProcess::SetLowestEnergy(..) ");
257 PrintWarning(
"G4HadronElasticProcess::SetLowestEnergyNeutron(..) ");
265 fDiffractionRatio = xsr;
269void G4HadronElasticProcess::PrintWarning(
const G4String& tit)
const
272 " method is obsolete and will be removed in the next release");
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
Hep3Vector & rotateUz(const Hep3Vector &)
G4double ComputeCrossSection(const G4DynamicParticle *, const G4Material *)
const 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
void SetTrafoToLab(const G4LorentzRotation &aT)
G4double GetLocalEnergyDeposit() const
const G4ThreeVector & GetMomentumChange() const
std::size_t GetNumberOfSecondaries() const
G4HadSecondary * GetSecondary(size_t i)
G4LorentzRotation & GetTrafoToLab()
G4DynamicParticle * GetParticle()
~G4HadronElasticProcess() override
void SetDiffraction(G4HadronicInteraction *, G4VCrossSectionRatio *)
G4HadronElasticProcess(const G4String &procName="hadElastic")
G4VParticleChange * PostStepDoIt(const G4Track &aTrack, const G4Step &aStep) override
void ProcessDescription(std::ostream &outFile) const override
virtual void SetLowestEnergy(G4double)
virtual void SetLowestEnergyNeutron(G4double)
void Report(std::ostream &aS) const
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
const G4String & GetModelName() const
void SetRecoilEnergyThreshold(G4double val)
void FillResult(G4HadFinalState *aR, const G4Track &aT)
G4Nucleus * GetTargetNucleusPointer()
G4HadFinalState * CheckResult(const G4HadProjectile &thePro, const G4Nucleus &targetNucleus, G4HadFinalState *result)
G4ParticleChange * theTotalResult
G4HadronicInteraction * ChooseHadronicInteraction(const G4HadProjectile &aHadProjectile, G4Nucleus &aTargetNucleus, const G4Material *aMaterial, const G4Element *anElement)
G4CrossSectionDataStore * theCrossSectionDataStore
void CheckEnergyMomentumConservation(const G4Track &, const G4Nucleus &)
void DumpState(const G4Track &, const G4String &, G4ExceptionDescription &)
G4double theLastCrossSection
void AddSecondary(G4Track *aSecondary)
void Initialize(const G4Track &) override
void ProposeEnergy(G4double finalEnergy)
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
static G4int GetModelID(const G4int modelIndex)
G4ProcessVector * GetAtRestProcessVector(G4ProcessVectorTypeIndex typ=typeGPIL) const
const std::vector< G4double > * GetEnergyCutsVector(std::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
void SetCreatorModelID(const G4int id)
const G4MaterialCutsCouple * GetMaterialCutsCouple() const
virtual G4double ComputeRatio(const G4ParticleDefinition *, G4double kinEnergy, G4int, G4int)=0
void ProposeTrackStatus(G4TrackStatus status)
void ProposeNonIonizingEnergyDeposit(G4double anEnergyPart)
void ProposeWeight(G4double finalWeight)
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
void SetNumberOfSecondaries(G4int totSecondaries)
G4double theNumberOfInteractionLengthLeft