CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
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