CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
SOAFrame< float > Frame
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
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