#include <G4MonopoleEq.hh>
|
virtual void | EvaluateRhsGivenB (const G4double y[], const G4double B[3], G4double dydx[]) const =0 |
|
void | EvaluateRhsGivenB (const G4double y[], const G4double Field[], G4double dydx[]) const |
|
void | EvaluateRhsReturnB (const G4double y[], G4double dydx[], G4double Field[]) const |
|
| G4MonopoleEq (G4ElectroMagneticField *emField) |
|
G4Field * | GetFieldObj () |
|
const G4Field * | GetFieldObj () const |
|
void | GetFieldValue (const G4double Point[4], G4double Field[]) const |
|
void | RightHandSide (const G4double y[], G4double dydx[]) const |
|
void | SetChargeMomentumMass (G4ChargeState particleCharge, G4double MomentumXc, G4double mass) |
|
void | SetFieldObj (G4Field *pField) |
|
| ~G4MonopoleEq () |
|
Definition at line 43 of file G4MonopoleEq.hh.
◆ G4MonopoleEq()
Definition at line 36 of file G4MonopoleEq.cc.
38{
39}
G4EquationOfMotion(G4Field *Field)
◆ ~G4MonopoleEq()
G4MonopoleEq::~G4MonopoleEq |
( |
| ) |
|
◆ EvaluateRhsGivenB() [1/2]
◆ EvaluateRhsGivenB() [2/2]
Definition at line 58 of file G4MonopoleEq.cc.
61{
62
63
64
65
66
67 G4double pSquared = y[3]*y[3] + y[4]*y[4] + y[5]*y[5] ;
68
71
72 G4double pModuleInverse = 1.0/std::sqrt(pSquared) ;
73
75
77
78 dydx[0] = y[3]*pModuleInverse ;
79 dydx[1] = y[4]*pModuleInverse ;
80 dydx[2] = y[5]*pModuleInverse ;
81
82 dydx[3] = cof1*(cof2*Field[0] - (y[4]*Field[5] - y[5]*Field[4])) ;
83
84 dydx[4] = cof1*(cof2*Field[1] - (y[5]*Field[3] - y[3]*Field[5])) ;
85
86 dydx[5] = cof1*(cof2*Field[2] - (y[3]*Field[4] - y[4]*Field[3])) ;
87
88 dydx[6] = 0.;
89
90
91
92 dydx[7] = inverse_velocity;
93
94 return;
95}
References source.hepunit::c_light, fElectroMagCof, and fMassCof.
◆ EvaluateRhsReturnB()
◆ GetFieldObj() [1/2]
G4Field * G4EquationOfMotion::GetFieldObj |
( |
| ) |
|
|
inlineinherited |
◆ GetFieldObj() [2/2]
const G4Field * G4EquationOfMotion::GetFieldObj |
( |
| ) |
const |
|
inlineinherited |
◆ GetFieldValue()
void G4EquationOfMotion::GetFieldValue |
( |
const G4double |
Point[4], |
|
|
G4double |
Field[] |
|
) |
| const |
|
inlineinherited |
◆ RightHandSide()
void G4EquationOfMotion::RightHandSide |
( |
const G4double |
y[], |
|
|
G4double |
dydx[] |
|
) |
| const |
|
inlineinherited |
◆ SetChargeMomentumMass()
◆ SetFieldObj()
void G4EquationOfMotion::SetFieldObj |
( |
G4Field * |
pField | ) |
|
|
inlineinherited |
◆ fElectroMagCof
G4double G4MonopoleEq::fElectroMagCof = 0.0 |
|
private |
◆ fMassCof
◆ itsField
G4Field* G4EquationOfMotion::itsField = nullptr |
|
privateinherited |
The documentation for this class was generated from the following files: