#include <G4KM_NucleonEqRhs.hh>
|
| G4KM_NucleonEqRhs (G4KM_DummyField *field, G4V3DNucleus *nucleus) |
|
| ~G4KM_NucleonEqRhs () |
|
virtual void | EvaluateRhsGivenB (const G4double y[], const G4double B[3], G4double dydx[]) const |
|
virtual void | SetChargeMomentumMass (G4ChargeState particleCharge, G4double MomentumXc, G4double MassXc2) |
|
void | SetMass (G4double aMass) |
|
| G4Mag_EqRhs (G4MagneticField *magField) |
|
| ~G4Mag_EqRhs () override |
|
G4double | FCof () const |
|
void | SetChargeMomentumMass (G4ChargeState particleCharge, G4double MomentumXc, G4double mass) override |
|
| G4EquationOfMotion (G4Field *Field) |
|
virtual | ~G4EquationOfMotion () |
|
void | RightHandSide (const G4double y[], G4double dydx[]) const |
|
void | EvaluateRhsReturnB (const G4double y[], G4double dydx[], G4double Field[]) const |
|
void | GetFieldValue (const G4double Point[4], G4double Field[]) const |
|
const G4Field * | GetFieldObj () const |
|
G4Field * | GetFieldObj () |
|
void | SetFieldObj (G4Field *pField) |
|
Definition at line 49 of file G4KM_NucleonEqRhs.hh.
◆ G4KM_NucleonEqRhs()
Definition at line 45 of file G4KM_NucleonEqRhs.cc.
46 :
48{
49 theMass = 0.;
52}
G4Mag_EqRhs(G4MagneticField *magField)
static G4Pow * GetInstance()
G4double A23(G4double A) const
virtual G4int GetMassNumber()=0
◆ ~G4KM_NucleonEqRhs()
G4KM_NucleonEqRhs::~G4KM_NucleonEqRhs |
( |
| ) |
|
|
inline |
◆ EvaluateRhsGivenB()
Implements G4Mag_EqRhs.
Definition at line 55 of file G4KM_NucleonEqRhs.cc.
58{
59 G4double yMod = std::sqrt(y[0]*y[0]+y[1]*y[1]+y[2]*y[2]);
60 G4double e = std::sqrt(theMass*theMass+y[3]*y[3]+y[4]*y[4]+y[5]*y[5]);
61
62
63
64
65 dydx[0] = c_light*y[3]/e;
66 dydx[1] = c_light*y[4]/e;
67 dydx[2] = c_light*y[5]/e;
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
84
86
87
88
91 if (density > 0 ) deriv = (factor/theMass)/
93
94
95
96
97 dydx[3] = yMod == 0 ? 0 : deriv*y[0]/yMod*c_light;
98 dydx[4] = yMod == 0 ? 0 : deriv*y[1]/yMod*c_light;
99 dydx[5] = yMod == 0 ? 0 : deriv*y[2]/yMod*c_light;
100
101
102
103
104
105
106
107
108
109}
G4double A13(G4double A) const
virtual const G4VNuclearDensity * GetNuclearDensity() const =0
G4double GetDensity(const G4ThreeVector &aPosition) const
virtual G4double GetDeriv(const G4ThreeVector &point) const =0
◆ SetChargeMomentumMass()
◆ SetMass()
void G4KM_NucleonEqRhs::SetMass |
( |
G4double | aMass | ) |
|
|
inline |
The documentation for this class was generated from the following files: