test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RKLocalFieldProvider.cc
Go to the documentation of this file.
1 #include "RKLocalFieldProvider.h"
4 
6  theVolume( vol), theFrame(vol), transform_(false) {}
7 
9  theVolume( vol), theFrame(frame), transform_(true) {}
10 
12 {
13  if unlikely(transform_) {
16  }
17  return theVolume.fieldInTesla( lp).basicVector();
18 
19 }
20 
#define unlikely(x)
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
volatile std::atomic< bool > shutdown_flag false
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