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 
13 
15  public:
16 
19 
20  virtual ~UniformMagneticField() {}
21 
22  GlobalVector inTesla (const GlobalPoint& gp) const;
23 
24  GlobalVector inTeslaUnchecked (const GlobalPoint& gp) const;
25 
26  bool isDefined(const GlobalPoint& gp) const {return true;}
27 
28  private:
30 };
31 
32 #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.