Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ChordFinderDelegate< Driver > Class Template Reference

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)

Detailed Description

template<class Driver>
class G4ChordFinderDelegate< Driver >

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.

Constructor & Destructor Documentation

◆ ~G4ChordFinderDelegate()

template<class Driver>
virtual G4ChordFinderDelegate< Driver >::~G4ChordFinderDelegate ( )
virtual

Virtual Destructor.

Member Function Documentation

◆ AdvanceChordLimitedImpl()

template<class Driver>
G4double G4ChordFinderDelegate< Driver >::AdvanceChordLimitedImpl ( G4FieldTrack & track,
G4double hstep,
G4double eps,
G4double chordDistance )

Computes the step to take, based on chord limits.

Parameters
[in,out]trackThe current track in field.
[in]hstepProposed step length.
[in]epsRequested accuracy, y_err/hstep.
[in]chordDistanceMaximum sagitta distance.
Returns
The length of step taken.

◆ GetFirstFraction()

template<class Driver>
G4double G4ChordFinderDelegate< Driver >::GetFirstFraction ( )

Printing for monitoring ...

◆ GetFractionLast()

template<class Driver>
G4double G4ChordFinderDelegate< Driver >::GetFractionLast ( )

◆ GetFractionNextEstimate()

template<class Driver>
G4double G4ChordFinderDelegate< Driver >::GetFractionNextEstimate ( )

◆ GetLastStepEstimateUnc()

template<class Driver>
G4double G4ChordFinderDelegate< Driver >::GetLastStepEstimateUnc ( )

Getter and setter for step estimate.

◆ GetNoCalls()

template<class Driver>
G4int G4ChordFinderDelegate< Driver >::GetNoCalls ( )

Gets statistics about number of calls & trials in FindNextChord().

◆ GetNoMaxTrials()

template<class Driver>
G4int G4ChordFinderDelegate< Driver >::GetNoMaxTrials ( )

◆ GetNoTrials()

template<class Driver>
G4int G4ChordFinderDelegate< Driver >::GetNoTrials ( )

◆ ResetStepEstimate()

template<class Driver>
void G4ChordFinderDelegate< Driver >::ResetStepEstimate ( )

Resets last step estimate to DBL_MAX.

◆ SetFirstFraction()

template<class Driver>
void G4ChordFinderDelegate< Driver >::SetFirstFraction ( G4double fractFirst)

◆ SetFractions_Last_Next()

template<class Driver>
void G4ChordFinderDelegate< Driver >::SetFractions_Last_Next ( G4double fractLast = 0.90,
G4double fractNext = 0.95 )

Setters of performance parameters... change with great care!

◆ SetLastStepEstimateUnc()

template<class Driver>
void G4ChordFinderDelegate< Driver >::SetLastStepEstimateUnc ( G4double stepEst)

◆ StreamDelegateInfo()

template<class Driver>
void G4ChordFinderDelegate< Driver >::StreamDelegateInfo ( std::ostream & os) const

Writes out to stream the parameters/state of the driver.

◆ TestChordPrint()

template<class Driver>
void G4ChordFinderDelegate< Driver >::TestChordPrint ( G4int noTrials,
G4int lastStepTrial,
G4double dChordStep,
G4double fDeltaChord,
G4double nextStepTrial )

statistics printout for testing.


The documentation for this class was generated from the following file: