CMS 3D CMS Logo

MagneticFieldProvider.h
Go to the documentation of this file.
1 #ifndef MagneticFieldProvider_h
2 #define MagneticFieldProvider_h
3 
15 
16 template <class T>
18 public:
19 
24 
25 
27 
30  virtual LocalVectorType valueInTesla( const LocalPointType& p) const = 0;
31 
35  // virtual GlobalVectorType valueInTesla( const GlobalPointType& p) const = 0;
36 
40  virtual int hasDerivatives() const {return false;}
41 
44  virtual LocalVectorType derivativeInTeslaPerMeter( const LocalPointType& p,
45  int N) const {
46  return LocalVectorType();
47  }
48 
49 };
50 
51 #endif
virtual LocalVectorType valueInTesla(const LocalPointType &p) const =0
virtual int hasDerivatives() const
virtual LocalVectorType derivativeInTeslaPerMeter(const LocalPointType &p, int N) const
Point3DBase< T, LocalTag > LocalPointType
Point3DBase< T, GlobalTag > GlobalPointType
#define N
Definition: blowfish.cc:9
Vector3DBase< T, LocalTag > LocalVectorType
Vector3DBase< T, GlobalTag > GlobalVectorType