#include <G4BOptnForceFreeFlight.hh>
Definition at line 56 of file G4BOptnForceFreeFlight.hh.
G4BOptnForceFreeFlight::G4BOptnForceFreeFlight |
( |
G4String |
name | ) |
|
Definition at line 33 of file G4BOptnForceFreeFlight.cc.
35 fCumulatedWeightChange ( -1.0 ),
36 fInitialTrackWeight ( -1.0 ),
37 fOperationComplete (
true )
G4VBiasingOperation(G4String name)
G4BOptnForceFreeFlight::~G4BOptnForceFreeFlight |
( |
| ) |
|
|
virtual |
Definition at line 42 of file G4BOptnForceFreeFlight.cc.
44 if ( fForceFreeFlightInteractionLaw )
delete fForceFreeFlightInteractionLaw;
Implements G4VBiasingOperation.
Definition at line 55 of file G4BOptnForceFreeFlight.cc.
67 forceFinalState =
true;
71 if ( fInitialTrackWeight <=
DBL_MIN )
74 ed <<
" Initial track weight is null ! " <<
G4endl;
75 G4Exception(
" G4BOptnForceFreeFlight::ApplyFinalStateBiasing(...)",
80 if ( fCumulatedWeightChange <=
DBL_MIN )
83 ed <<
" Cumulated weight is null ! " <<
G4endl;
84 G4Exception(
" G4BOptnForceFreeFlight::ApplyFinalStateBiasing(...)",
92 else proposedWeight *= fCumulatedWeightChange;
94 fOperationComplete =
true;
97 return &fParticleChange;
std::ostringstream G4ExceptionDescription
G4StepStatus GetStepStatus() const
void ProposeWeight(G4double finalWeight)
G4bool GetIsFirstPostStepDoItInterface(G4bool physOnly=true) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
virtual void Initialize(const G4Track &)
G4StepPoint * GetPostStepPoint() const
G4double GetWeight() const
G4bool G4BOptnForceFreeFlight::OperationComplete |
( |
| ) |
const |
|
inline |
void G4BOptnForceFreeFlight::ResetInitialTrackWeight |
( |
G4double |
w | ) |
|
|
inline |
The documentation for this class was generated from the following files: