#include <G4BOptnForceFreeFlight.hh>
|
| G4BOptnForceFreeFlight (G4String name) |
|
virtual | ~G4BOptnForceFreeFlight () |
|
virtual const G4VBiasingInteractionLaw * | ProvideOccurenceBiasingInteractionLaw (const G4BiasingProcessInterface *, G4ForceCondition &) |
|
virtual void | AlongMoveBy (const G4BiasingProcessInterface *, const G4Step *, G4double) |
|
virtual G4VParticleChange * | ApplyFinalStateBiasing (const G4BiasingProcessInterface *, const G4Track *, const G4Step *, G4bool &) |
|
virtual G4double | DistanceToApplyOperation (const G4Track *, G4double, G4ForceCondition *) |
|
virtual G4VParticleChange * | GenerateBiasingFinalState (const G4Track *, const G4Step *) |
|
G4ILawForceFreeFlight * | GetForceFreeFlightLaw () |
|
void | ResetInitialTrackWeight (G4double w) |
|
G4bool | OperationComplete () const |
|
| G4VBiasingOperation (G4String name) |
|
virtual | ~G4VBiasingOperation () |
|
virtual const G4VBiasingInteractionLaw * | ProvideOccurenceBiasingInteractionLaw (const G4BiasingProcessInterface *, G4ForceCondition &)=0 |
|
virtual G4double | ProposeAlongStepLimit (const G4BiasingProcessInterface *) |
|
virtual G4GPILSelection | ProposeGPILSelection (const G4GPILSelection wrappedProcessSelection) |
|
virtual void | AlongMoveBy (const G4BiasingProcessInterface *, const G4Step *, G4double) |
|
virtual G4VParticleChange * | ApplyFinalStateBiasing (const G4BiasingProcessInterface *, const G4Track *, const G4Step *, G4bool &)=0 |
|
virtual G4double | DistanceToApplyOperation (const G4Track *, G4double, G4ForceCondition *)=0 |
|
virtual G4VParticleChange * | GenerateBiasingFinalState (const G4Track *, const G4Step *)=0 |
|
const G4String & | GetName () const |
|
std::size_t | GetUniqueID () const |
|
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}
◆ ~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
virtual void Initialize(const G4Track &)
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: