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:
11 
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 {
31  return inTesla( LocalPoint(x,y,z));
32  }
33 
34  Vector inTesla( const Vector& v) const {
35  return inTesla( LocalPoint(v));
36  }
37 
39  const Frame& frame() const {return theFrame;}
40 
41 private:
42 
44  const Frame& theFrame;
45  bool transform_;
46 
47 
48 };
49 
50 #endif
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:32
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