CMS 3D CMS Logo

RKLocalFieldProvider.cc
Go to the documentation of this file.
1 #include "RKLocalFieldProvider.h"
5 
7  theVolume( vol), theFrame(vol), transform_(false) {}
8 
10  theVolume( vol), theFrame(frame), transform_(true) {}
11 
13 {
14  if UNLIKELY(transform_) {
17  }
18  return theVolume.fieldInTesla( lp).basicVector();
19 
20 }
21 
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:56
Vector inTesla(const LocalPoint &lp) const
the argument lp is in the local frame specified in the constructor