Magnetic field map
A magnetic field map can be easily set as property of a volume by using the EVectorMap property type.
This represents a vector of any dimension that depends on the position. The property should be a class inheriting from EVectorMap and implementing a
single method:
// return vector property depending on position
EVector compute_vector(const EVector& pos) const;
in which the field at the given position is computed and returned.
The example nd280_geom, available within the RecPack git distribution, shows how to create and set a field map.