|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4ChordFinderDelegate is a templated class for a common algorithm of finding step size with distance to the chord less than the provided value. More...
#include <G4ChordFinderDelegate.hh>
Public Member Functions | |
| virtual | ~G4ChordFinderDelegate () |
| G4double | AdvanceChordLimitedImpl (G4FieldTrack &track, G4double hstep, G4double eps, G4double chordDistance) |
| void | ResetStepEstimate () |
| G4double | GetLastStepEstimateUnc () |
| void | SetLastStepEstimateUnc (G4double stepEst) |
| G4int | GetNoCalls () |
| G4int | GetNoTrials () |
| G4int | GetNoMaxTrials () |
| void | SetFractions_Last_Next (G4double fractLast=0.90, G4double fractNext=0.95) |
| void | SetFirstFraction (G4double fractFirst) |
| G4double | GetFirstFraction () |
| G4double | GetFractionLast () |
| G4double | GetFractionNextEstimate () |
| void | StreamDelegateInfo (std::ostream &os) const |
| void | TestChordPrint (G4int noTrials, G4int lastStepTrial, G4double dChordStep, G4double fDeltaChord, G4double nextStepTrial) |
G4ChordFinderDelegate is a templated class for a common algorithm of finding step size with distance to the chord less than the provided value.
Definition at line 47 of file G4ChordFinderDelegate.hh.
|
virtual |
Virtual Destructor.
| G4double G4ChordFinderDelegate< Driver >::AdvanceChordLimitedImpl | ( | G4FieldTrack & | track, |
| G4double | hstep, | ||
| G4double | eps, | ||
| G4double | chordDistance ) |
Computes the step to take, based on chord limits.
| [in,out] | track | The current track in field. |
| [in] | hstep | Proposed step length. |
| [in] | eps | Requested accuracy, y_err/hstep. |
| [in] | chordDistance | Maximum sagitta distance. |
| G4double G4ChordFinderDelegate< Driver >::GetFirstFraction | ( | ) |
Printing for monitoring ...
| G4double G4ChordFinderDelegate< Driver >::GetFractionLast | ( | ) |
| G4double G4ChordFinderDelegate< Driver >::GetFractionNextEstimate | ( | ) |
| G4double G4ChordFinderDelegate< Driver >::GetLastStepEstimateUnc | ( | ) |
Getter and setter for step estimate.
| G4int G4ChordFinderDelegate< Driver >::GetNoCalls | ( | ) |
Gets statistics about number of calls & trials in FindNextChord().
| G4int G4ChordFinderDelegate< Driver >::GetNoMaxTrials | ( | ) |
| G4int G4ChordFinderDelegate< Driver >::GetNoTrials | ( | ) |
| void G4ChordFinderDelegate< Driver >::ResetStepEstimate | ( | ) |
Resets last step estimate to DBL_MAX.
| void G4ChordFinderDelegate< Driver >::SetFirstFraction | ( | G4double | fractFirst | ) |
| void G4ChordFinderDelegate< Driver >::SetFractions_Last_Next | ( | G4double | fractLast = 0.90, |
| G4double | fractNext = 0.95 ) |
Setters of performance parameters... change with great care!
| void G4ChordFinderDelegate< Driver >::SetLastStepEstimateUnc | ( | G4double | stepEst | ) |
| void G4ChordFinderDelegate< Driver >::StreamDelegateInfo | ( | std::ostream & | os | ) | const |
Writes out to stream the parameters/state of the driver.
| void G4ChordFinderDelegate< Driver >::TestChordPrint | ( | G4int | noTrials, |
| G4int | lastStepTrial, | ||
| G4double | dChordStep, | ||
| G4double | fDeltaChord, | ||
| G4double | nextStepTrial ) |
statistics printout for testing.