CMS 3D CMS Logo

RKLocalFieldProvider.h
Go to the documentation of this file.
1 #ifndef RKLocalFieldProvider_H
2 #define RKLocalFieldProvider_H
3 
6 
7 class MagVolume;
8 
10 public:
19 
21  explicit RKLocalFieldProvider(const MagVolume& vol);
22 
24  RKLocalFieldProvider(const MagVolume& vol, const Frame& frame);
25 
27  Vector inTesla(const LocalPoint& lp) const;
28 
29  Vector inTesla(double x, double y, double z) const { return inTesla(LocalPoint(x, y, z)); }
30 
31  Vector inTesla(const Vector& v) const { return inTesla(LocalPoint(v)); }
32 
34  const Frame& frame() const { return theFrame; }
35 
36 private:
38  const Frame& theFrame;
39  bool transform_;
40 };
41 
42 #endif
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
Frame::PositionType Position
Vector inTesla(double x, double y, double z) const
Frame::RotationType Rotation
Frame::LocalPoint LocalPoint
Vector inTesla(const Vector &v) const
#define dso_internal
Definition: Visibility.h:13
Frame::GlobalPoint GlobalPoint
Frame::LocalVector LocalVector
const Frame & frame() const
The reference frame in which the field is defined.
Frame::GlobalVector GlobalVector
const MagVolume & theVolume
GlobalVector::BasicVectorType Vector
GloballyPositioned< float > Frame