CMS 3D CMS Logo

RKLocalFieldProvider.h
Go to the documentation of this file.
1 #ifndef RKLocalFieldProvider_H
2 #define RKLocalFieldProvider_H
4 
7 
8 class MagVolume;
9 
11 public:
20 
22  explicit RKLocalFieldProvider(const MagVolume& vol);
23 
25  RKLocalFieldProvider(const MagVolume& vol, const Frame& frame);
26 
28  Vector inTesla(const LocalPoint& lp) const;
29 
30  Vector inTesla(double x, double y, double z) const { return inTesla(LocalPoint(x, y, z)); }
31 
32  Vector inTesla(const Vector& v) const { return inTesla(LocalPoint(v)); }
33 
35  const Frame& frame() const { return theFrame; }
36 
37 private:
39  const Frame& theFrame;
40  bool transform_;
41 };
42 
43 #endif
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
Vector inTesla(const Vector &v) const
Frame::PositionType Position
Frame::RotationType Rotation
Frame::LocalPoint LocalPoint
#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
Vector inTesla(double x, double y, double z) const
GloballyPositioned< float > Frame