GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
BField.h
1 // -*- C++ -*-
2 #ifndef GEAR_BFIELD_H
3 #define GEAR_BFIELD_H 1
4 
5 #include "GEAR.h"
6 #include "gear/GearParameters.h"
7 
8 namespace gear {
9 
16 class BField : virtual public GearParameters {
17 
18 public:
20  virtual ~BField() { /* nop */; }
21 
24  virtual Vector3D at(Vector3D point) const = 0;
25 
28  inline Vector3D at(double x, double y, double z) const { return at( Vector3D(x,y,z) ) ; }
29 
30 
31 }; // class
32 } // namespace gear
33 #endif /* ifndef GEAR_BFIELD_H */
Vector3D at(double x, double y, double z) const
Wrapper to BField::at(Vector3D point) for user convenience.
Definition: BField.h:28
virtual ~BField()
Destructor.
Definition: BField.h:20
virtual Vector3D at(Vector3D point) const =0
Returns the B field vector in Tesla at given point.
Abstract interface for a set of parameters that can be used to describe the geometrical properties of...
Simple three dimensional vector providing the components for cartesian, cylindrical and spherical coo...
Definition: Vector3D.h:18
Global B field map.
Definition: BField.h:16