#include <G4ILawTruncatedExp.hh>
Definition at line 46 of file G4ILawTruncatedExp.hh.
◆ G4ILawTruncatedExp()
G4ILawTruncatedExp::G4ILawTruncatedExp |
( |
G4String |
name = "expForceInteractionLaw" | ) |
|
Definition at line 31 of file G4ILawTruncatedExp.cc.
G4double fMaximumDistance
G4double fCrossSectionDefined
G4VBiasingInteractionLaw(G4String name)
◆ ~G4ILawTruncatedExp()
G4ILawTruncatedExp::~G4ILawTruncatedExp |
( |
| ) |
|
|
virtual |
◆ ComputeEffectiveCrossSectionAt()
G4double G4ILawTruncatedExp::ComputeEffectiveCrossSectionAt |
( |
G4double |
length | ) |
const |
|
virtual |
Implements G4VBiasingInteractionLaw.
Definition at line 58 of file G4ILawTruncatedExp.cc.
62 G4Exception(
"G4ILawTruncatedExp::ComputeEffectiveCrossSection(..)",
65 "Cross-section value requested, but has not been defined yet. Assumes 0 !");
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4double fMaximumDistance
G4double fCrossSectionDefined
◆ ComputeNonInteractionProbabilityAt()
G4double G4ILawTruncatedExp::ComputeNonInteractionProbabilityAt |
( |
G4double |
length | ) |
const |
|
virtual |
Implements G4VBiasingInteractionLaw.
Definition at line 73 of file G4ILawTruncatedExp.cc.
77 G4Exception(
"G4ILawTruncatedExp::ComputeNonInteractionProbability(..)",
80 "Non interaction probability value requested, but cross section has not been defined yet. Assumes it to be 0 !");
86 return 1.0 - num/denum;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4double fMaximumDistance
G4double fCrossSectionDefined
◆ GetInteractionDistance()
G4double G4ILawTruncatedExp::GetInteractionDistance |
( |
| ) |
const |
|
inline |
◆ GetMaximumDistance()
G4double G4ILawTruncatedExp::GetMaximumDistance |
( |
| ) |
const |
|
inline |
◆ IsSingular()
virtual G4bool G4ILawTruncatedExp::IsSingular |
( |
| ) |
const |
|
inlinevirtual |
◆ SampleInteractionLength()
G4double G4ILawTruncatedExp::SampleInteractionLength |
( |
| ) |
|
|
virtual |
Implements G4VBiasingInteractionLaw.
Definition at line 89 of file G4ILawTruncatedExp.cc.
96 "Trying to sample while cross-section is not defined, assuming 0 !");
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4double fMaximumDistance
G4double fCrossSectionDefined
G4double fInteractionDistance
◆ SetForceCrossSection()
void G4ILawTruncatedExp::SetForceCrossSection |
( |
G4double |
xs | ) |
|
Definition at line 42 of file G4ILawTruncatedExp.cc.
44 if (crossSection < 0.0)
46 G4Exception(
"G4ILawTruncatedExp::SetForceCrossSection(..)",
49 "Cross-section value passed is negative. It is set to zero !");
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4double fCrossSectionDefined
◆ SetMaximumDistance()
void G4ILawTruncatedExp::SetMaximumDistance |
( |
G4double |
d | ) |
|
|
inline |
◆ UpdateInteractionLengthForStep()
G4double G4ILawTruncatedExp::UpdateInteractionLengthForStep |
( |
G4double |
truePathLength | ) |
|
|
virtual |
Reimplemented from G4VBiasingInteractionLaw.
Definition at line 105 of file G4ILawTruncatedExp.cc.
114 G4Exception(
"G4ILawTruncatedExp::UpdateInteractionLengthForStep(...)",
117 "Trying to sample while cross-section is not defined, assuming 0 !");
std::ostringstream G4ExceptionDescription
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4double fMaximumDistance
const G4String & GetName() const
G4double fInteractionDistance
◆ fCrossSection
G4double G4ILawTruncatedExp::fCrossSection |
|
private |
◆ fCrossSectionDefined
G4double G4ILawTruncatedExp::fCrossSectionDefined |
|
private |
◆ fInteractionDistance
G4double G4ILawTruncatedExp::fInteractionDistance |
|
private |
◆ fIsSingular
G4bool G4ILawTruncatedExp::fIsSingular |
|
private |
◆ fMaximumDistance
G4double G4ILawTruncatedExp::fMaximumDistance |
|
private |
The documentation for this class was generated from the following files: