CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
UniformMagneticField.h
Go to the documentation of this file.
1 #ifndef MagneticField_UniformMagneticField_h
2 #define MagneticField_UniformMagneticField_h
3 
15 
17  public:
18 
21 
22  virtual ~UniformMagneticField() {}
23 
24  GlobalVector inTesla (const GlobalPoint& gp) const;
25 
26  GlobalVector inTeslaUnchecked (const GlobalPoint& gp) const;
27 
28  bool isDefined(const GlobalPoint& gp) const {return true;}
29 
30  private:
32 };
33 
34 #endif
GlobalVector inTesla(const GlobalPoint &gp) const
Field value ad specified global point, in Tesla.
GlobalVector inTeslaUnchecked(const GlobalPoint &gp) const
bool isDefined(const GlobalPoint &gp) const
True if the point is within the region where the concrete field.
UniformMagneticField(double value)
Construct passing the Z field component in Tesla.