GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
ConstantBField.h
1 #ifndef GEAR_ConstantBField_h
2 #define GEAR_ConstantBField_h
3 
4 #include "gear/BField.h"
5 #include "gearimpl/GearParametersImpl.h"
6 
7 namespace gear {
8 
15 class ConstantBField : public GearParametersImpl , public BField {
16 protected:
17  Vector3D _b ;
18 public:
19 
20  ConstantBField(Vector3D b) : _b(b) {}
21 
23  virtual ~ConstantBField() { /* nop */; }
24 
25  //extends GearParameters {
28  virtual Vector3D at(Vector3D /*point*/) const { return _b ; }
29 }; // class
30 } // namespace gear
31 #endif /* ifndef GEAR_BFIELD_H */
Implementation of GearParameters - a set off parameters that can be used to describe the geometrical ...
Simple three dimensional vector providing the components for cartesian, cylindrical and spherical coo...
Definition: Vector3D.h:18
Global B field map implementation with constant field.
virtual ~ConstantBField()
Destructor.
virtual Vector3D at(Vector3D) const
Returns the B field vector in Tesla at given point.
Global B field map.
Definition: BField.h:16