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 
5 
6 class MagVolume;
7 
9 public:
10 
19 
21  //RKLocalFieldProvider();
22 
24  //explicit RKLocalFieldProvider( const Frame& frame);
25 
27  RKLocalFieldProvider( const MagVolume& vol);
28 
30  RKLocalFieldProvider( const MagVolume& vol, const Frame& frame);
31 
33  Vector inTesla( const LocalPoint& lp) const;
34 
35  Vector inTesla( double x, double y, double z) const {
36  return inTesla( LocalPoint(x,y,z));
37  }
38 
39  Vector inTesla( const Vector& v) const {
40  return inTesla( LocalPoint(v));
41  }
42 
44  const Frame& frame() const {return theFrame;}
45 
46 private:
47 
49  const Frame& theFrame;
50  bool transform_;
51 
52  static Frame& globalFrame() {
53  static Frame gf( Position(0,0,0), Rotation());
54  return gf;
55  }
56 
57 };
58 
59 #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()
RKLocalFieldProvider(const MagVolume &vol)
Global field access, result in global frame.
Frame::GlobalPoint GlobalPoint
Frame::LocalVector LocalVector
const Frame & frame() const
The reference frame in which the field is defined.
Frame::GlobalVector GlobalVector
GlobalVector::BasicVectorType Vector
double gf
Definition: hdecay.h:34
Definition: DDAxes.h:10
mathSSE::Vec4< T > v
Vector inTesla(const LocalPoint &lp) const
the argument lp is in the local frame specified in the constructor
GloballyPositioned< float > Frame