|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4QuadrupoleMagField allows for the creation of quadrupole magnetic field, given the gradient value for quadrupole magnetic lense. More...
#include <G4QuadrupoleMagField.hh>
Public Member Functions | |
| G4QuadrupoleMagField (G4double pGradient) | |
| G4QuadrupoleMagField (G4double pGradient, const G4ThreeVector &pOrigin, G4RotationMatrix *pMatrix) | |
| ~G4QuadrupoleMagField () override=default | |
| void | GetFieldValue (const G4double yTrack[], G4double B[]) const override |
| G4Field * | Clone () const override |
| Public Member Functions inherited from G4MagneticField | |
| G4MagneticField () | |
| ~G4MagneticField () override=default | |
| G4MagneticField (const G4MagneticField &r) | |
| G4MagneticField & | operator= (const G4MagneticField &p) |
| G4bool | DoesFieldChangeEnergy () const override |
| void | GetFieldValue (const G4double Point[4], G4double *Bfield) const override=0 |
| G4FieldType | GetFieldType () const override |
| Public Member Functions inherited from G4Field | |
| G4Field (G4bool gravityOn=false) | |
| virtual | ~G4Field ()=default |
| G4Field (const G4Field &p)=default | |
| G4Field & | operator= (const G4Field &p) |
| G4bool | IsGravityActive () const |
| void | SetGravityActive (G4bool OnOffFlag) |
Additional Inherited Members | |
| Static Public Attributes inherited from G4Field | |
| static constexpr G4int | MAX_NUMBER_OF_COMPONENTS = 24 |
G4QuadrupoleMagField allows for the creation of quadrupole magnetic field, given the gradient value for quadrupole magnetic lense.
Definition at line 52 of file G4QuadrupoleMagField.hh.
| G4QuadrupoleMagField::G4QuadrupoleMagField | ( | G4double | pGradient | ) |
Constructor for G4QuadrupoleMagField.
| [in] | pGradient | Field gradient value. |
Definition at line 39 of file G4QuadrupoleMagField.cc.
Referenced by Clone().
| G4QuadrupoleMagField::G4QuadrupoleMagField | ( | G4double | pGradient, |
| const G4ThreeVector & | pOrigin, | ||
| G4RotationMatrix * | pMatrix ) |
Constructor for G4QuadrupoleMagField.
| [in] | pGradient | Field gradient value. |
| [in] | pOrigin | Origin position. |
| [in] | pMatrix | Rotation matrix. |
Definition at line 47 of file G4QuadrupoleMagField.cc.
|
overridedefault |
Default Destructor.
|
overridevirtual |
Returns a pointer to a new allocated clone of this object.
Reimplemented from G4Field.
Definition at line 58 of file G4QuadrupoleMagField.cc.
Returns the field value on the given position 'yTrack'.
| [in] | yTrack | Time position array. |
| [out] | B | The returned field array. |
Definition at line 65 of file G4QuadrupoleMagField.cc.