CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  //RKLocalFieldProvider();
23 
25  //explicit RKLocalFieldProvider( const Frame& frame);
26 
28  RKLocalFieldProvider( const MagVolume& vol);
29 
31  RKLocalFieldProvider( const MagVolume& vol, const Frame& frame);
32 
34  Vector inTesla( const LocalPoint& lp) const;
35 
36  Vector inTesla( double x, double y, double z) const {
37  return inTesla( LocalPoint(x,y,z));
38  }
39 
40  Vector inTesla( const Vector& v) const {
41  return inTesla( LocalPoint(v));
42  }
43 
45  const Frame& frame() const {return theFrame;}
46 
47 private:
48 
50  const Frame& theFrame;
51  bool transform_;
52 
53  static Frame& globalFrame() {
54  static Frame gf( Position(0,0,0), Rotation());
55  return gf;
56  }
57 
58 };
59 
60 #endif
Frame::PositionType Position
Vector inTesla(double x, double y, double z) const
double double double z
Frame::RotationType Rotation
Frame::LocalPoint LocalPoint
Vector inTesla(const Vector &v) const
const MagVolume * theVolume
static Frame & globalFrame()
#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
Local3DPoint LocalPoint
Definition: LocalPoint.h:11
GlobalVector::BasicVectorType Vector
x
Definition: VDTMath.h:216
mathSSE::Vec4< T > v
GloballyPositioned< float > Frame