Warning, file /include/Geant4/G4ChordFinder.icc was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031 inline
0032 void G4ChordFinder::SetIntegrationDriver(G4VIntegrationDriver* driver)
0033 {
0034 fIntgrDriver = driver;
0035 }
0036
0037 inline
0038 G4VIntegrationDriver* G4ChordFinder::GetIntegrationDriver()
0039 {
0040 return fIntgrDriver;
0041 }
0042
0043 inline
0044 G4double G4ChordFinder::GetDeltaChord() const
0045 {
0046 return fDeltaChord;
0047 }
0048
0049 inline
0050 void G4ChordFinder::SetDeltaChord(G4double newval)
0051 {
0052 fDeltaChord = newval;
0053 }
0054
0055 inline
0056 void G4ChordFinder::ResetStepEstimate()
0057 {
0058 fIntgrDriver->OnStartTracking();
0059 }
0060
0061 inline
0062 G4int G4ChordFinder::SetVerbose( G4int newvalue )
0063 {
0064 G4int oldval = fStatsVerbose;
0065 fStatsVerbose = newvalue;
0066 return oldval;
0067 }
0068
0069
0070
0071
0072
0073 inline
0074 G4double G4ChordFinder::InvParabolic ( const G4double xa, const G4double ya,
0075 const G4double xb, const G4double yb,
0076 const G4double xc, const G4double yc )
0077 {
0078 const G4double R = yb/yc,
0079 S = yb/ya,
0080 T = ya/yc;
0081 const G4double Q = (T-1)*(R-1)*(S-1);
0082 if (std::fabs(Q) <DBL_MIN ) { return DBL_MAX; }
0083
0084 const G4double P = S*(T*(R-T)*(xc-xb) - (1-R)*(xb-xa));
0085 return xb + P/Q;
0086 }
0087
0088 inline G4double
0089 G4ChordFinder::AdvanceChordLimited(G4FieldTrack& yCurrent,
0090 G4double stepInitial,
0091 G4double epsStep_Relative,
0092 const G4ThreeVector& ,
0093 G4double )
0094 {
0095 return fIntgrDriver->AdvanceChordLimited(yCurrent, stepInitial,
0096 epsStep_Relative, fDeltaChord);
0097 }
0098
0099 inline
0100 void G4ChordFinder::OnComputeStep(const G4FieldTrack* track)
0101 {
0102 fIntgrDriver->OnComputeStep(track);
0103 }