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 UNLIKELY (transform_) {
15  }
16  return theVolume.fieldInTesla(lp).basicVector();
17 }
GlobalPoint toGlobal(const LocalPoint &lp) const
std::bitset< TTBV::S_ > Frame
Definition: TTTypes.h:58
LocalPoint toLocal(const GlobalPoint &gp) const
LocalVector fieldInTesla(const LocalPoint &lp) const
Definition: MagVolume.cc:11
RKLocalFieldProvider(const MagVolume &vol)
Local field access to the MagVolume field, in the MagVolume frame.
const BasicVectorType & basicVector() const
Definition: PV3DBase.h:53
const MagVolume & theVolume
Vector inTesla(const LocalPoint &lp) const
the argument lp is in the local frame specified in the constructor
#define UNLIKELY(x)
Definition: Likely.h:21