#include <G4BOptnForceFreeFlight.hh>
Definition at line 55 of file G4BOptnForceFreeFlight.hh.
◆ G4BOptnForceFreeFlight()
G4BOptnForceFreeFlight::G4BOptnForceFreeFlight |
( |
G4String | name | ) |
|
Definition at line 33 of file G4BOptnForceFreeFlight.cc.
35 fCumulatedWeightChange ( -1.0 ),
36 fInitialTrackWeight ( -1.0 ),
37 fOperationComplete ( true )
38{
40}
G4VBiasingOperation(G4String name)
◆ ~G4BOptnForceFreeFlight()
G4BOptnForceFreeFlight::~G4BOptnForceFreeFlight |
( |
| ) |
|
|
virtual |
Definition at line 42 of file G4BOptnForceFreeFlight.cc.
43{
44 if ( fForceFreeFlightInteractionLaw ) delete fForceFreeFlightInteractionLaw;
45}
◆ AlongMoveBy()
◆ ApplyFinalStateBiasing()
Implements G4VBiasingOperation.
Definition at line 55 of file G4BOptnForceFreeFlight.cc.
59{
60
61
62
63
64
65
67 forceFinalState = true;
69 {
70
71 if ( fInitialTrackWeight <=
DBL_MIN )
72 {
74 ed <<
" Initial track weight is null ! " <<
G4endl;
75 G4Exception(
" G4BOptnForceFreeFlight::ApplyFinalStateBiasing(...)",
76 "BIAS.GEN.05",
78 ed);
79 }
80 if ( fCumulatedWeightChange <=
DBL_MIN )
81 {
83 ed <<
" Cumulated weight is null ! " <<
G4endl;
84 G4Exception(
" G4BOptnForceFreeFlight::ApplyFinalStateBiasing(...)",
85 "BIAS.GEN.06",
87 ed);
88 }
89
92 else proposedWeight *= fCumulatedWeightChange;
94 fOperationComplete = true;
95 }
96
97 return &fParticleChange;
98}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4bool GetIsFirstPostStepDoItInterface(G4bool physOnly=true) const
void Initialize(const G4Track &) override
G4StepStatus GetStepStatus() const
G4StepPoint * GetPostStepPoint() const
G4double GetWeight() const
void ProposeWeight(G4double finalWeight)
◆ DistanceToApplyOperation()
◆ GenerateBiasingFinalState()
◆ GetForceFreeFlightLaw()
◆ OperationComplete()
G4bool G4BOptnForceFreeFlight::OperationComplete |
( |
| ) |
const |
|
inline |
◆ ProvideOccurenceBiasingInteractionLaw()
◆ ResetInitialTrackWeight()
void G4BOptnForceFreeFlight::ResetInitialTrackWeight |
( |
G4double | w | ) |
|
|
inline |
The documentation for this class was generated from the following files: