#include <G4InteractionLawPhysical.hh>
Definition at line 45 of file G4InteractionLawPhysical.hh.
◆ G4InteractionLawPhysical()
G4InteractionLawPhysical::G4InteractionLawPhysical |
( |
G4String |
name = "exponentialLaw" | ) |
|
Definition at line 29 of file G4InteractionLawPhysical.cc.
G4bool fCrossSectionDefined
G4double fNumberOfInteractionLength
G4VBiasingInteractionLaw(G4String name)
◆ ~G4InteractionLawPhysical()
G4InteractionLawPhysical::~G4InteractionLawPhysical |
( |
| ) |
|
|
virtual |
◆ ComputeEffectiveCrossSectionAt()
G4double G4InteractionLawPhysical::ComputeEffectiveCrossSectionAt |
( |
G4double |
length | ) |
const |
|
virtual |
Implements G4VBiasingInteractionLaw.
Definition at line 53 of file G4InteractionLawPhysical.cc.
58 "Cross-section value requested, but has not been defined yet. Assumes 0 !");
G4bool fCrossSectionDefined
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ ComputeNonInteractionProbabilityAt()
G4double G4InteractionLawPhysical::ComputeNonInteractionProbabilityAt |
( |
G4double |
length | ) |
const |
|
virtual |
Implements G4VBiasingInteractionLaw.
Definition at line 62 of file G4InteractionLawPhysical.cc.
67 "Non interaction probabitlity value requested, but cross section has not been defined yet. Assumes it to be 0 !");
G4bool fCrossSectionDefined
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ GetPhysicalCrossSection()
G4double G4InteractionLawPhysical::GetPhysicalCrossSection |
( |
| ) |
const |
|
inline |
◆ SampleInteractionLength()
G4double G4InteractionLawPhysical::SampleInteractionLength |
( |
| ) |
|
|
virtual |
Implements G4VBiasingInteractionLaw.
Definition at line 73 of file G4InteractionLawPhysical.cc.
78 "Trying to sample while cross-section is not defined or < 0 !");
G4bool fCrossSectionDefined
G4double fNumberOfInteractionLength
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ SetPhysicalCrossSection()
void G4InteractionLawPhysical::SetPhysicalCrossSection |
( |
G4double |
crossSection | ) |
|
Definition at line 39 of file G4InteractionLawPhysical.cc.
41 if (crossSection < 0.0)
43 G4Exception(
"G4InteractionLawPhysical::SetPhysicalCrossSection(..)",
46 "Cross-section value passed is negative. It is set to zero !");
G4bool fCrossSectionDefined
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ UpdateInteractionLengthForStep()
G4double G4InteractionLawPhysical::UpdateInteractionLengthForStep |
( |
G4double |
truePathLength | ) |
|
|
virtual |
Reimplemented from G4VBiasingInteractionLaw.
Definition at line 86 of file G4InteractionLawPhysical.cc.
94 G4Exception(
"G4InteractionLawPhysical::UpdateInteractionLengthForStep(...)",
std::ostringstream G4ExceptionDescription
G4double fNumberOfInteractionLength
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4String & GetName() const
◆ fCrossSection
G4double G4InteractionLawPhysical::fCrossSection |
|
private |
◆ fCrossSectionDefined
G4bool G4InteractionLawPhysical::fCrossSectionDefined |
|
private |
◆ fNumberOfInteractionLength
G4double G4InteractionLawPhysical::fNumberOfInteractionLength |
|
private |
The documentation for this class was generated from the following files: