CMS 3D CMS Logo

RKLocalFieldProvider.cc
Go to the documentation of this file.
1 #include "RKLocalFieldProvider.h"
5 
6 RKLocalFieldProvider::RKLocalFieldProvider(const MagVolume& vol) : theVolume(vol), theFrame(vol), transform_(false) {}
7 
9  : theVolume(vol), theFrame(frame), transform_(true) {}
10 
12  if
16  }
17  return theVolume.fieldInTesla(lp).basicVector();
18 }
LocalPoint toLocal(const GlobalPoint &gp) const
RKLocalFieldProvider(const MagVolume &vol)
Local field access to the MagVolume field, in the MagVolume frame.
GlobalPoint toGlobal(const LocalPoint &lp) const
const Frame & frame() const
The reference frame in which the field is defined.
LocalVector fieldInTesla(const LocalPoint &lp) const
Definition: MagVolume.cc:11
const MagVolume & theVolume
#define UNLIKELY(x)
Definition: Likely.h:21
const BasicVectorType & basicVector() const
Definition: PV3DBase.h:53
Vector inTesla(const LocalPoint &lp) const
the argument lp is in the local frame specified in the constructor