Class ToroidalHaloField

Inheritance Relationships

Base Type

Class Documentation

class ToroidalHaloField : public MagneticField

Galactic halo field model from Prouza & Smida 2003 and Sun et al. 2008.

Public Functions

inline ToroidalHaloField(double b0 = 1., double z0 = 1., double z1 = 1., double r0 = 1.)

Constructor

Parameters:
  • b0 – halo field strength

  • z0 – vertical position

  • z1 – vertical scale

  • r0 – radial scale

inline void setParameters(double b0, double z0, double z1, double r0)
inline Vector3d getField(Vector3d pos)
inline virtual Vector3d getField(const Vector3d &position) const
inline virtual Vector3d getField(const Vector3d &position, double z) const
inline size_t addReference() const
inline size_t removeReference() const
inline int removeReferenceNoDelete() const
inline size_t getReferenceCount() const

Protected Attributes

mutable size_t _referenceCount