CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/MagneticField/UniformEngine/src/UniformMagneticField.h

Go to the documentation of this file.
00001 #ifndef MagneticField_UniformMagneticField_h
00002 #define MagneticField_UniformMagneticField_h
00003 
00014 #include "MagneticField/Engine/interface/MagneticField.h"
00015 
00016 class UniformMagneticField : public MagneticField {
00017  public:
00018 
00020   UniformMagneticField(double value);
00021 
00022   virtual ~UniformMagneticField() {}
00023 
00024   GlobalVector inTesla (const GlobalPoint& gp) const;
00025 
00026   GlobalVector inTeslaUnchecked (const GlobalPoint& gp) const;
00027 
00028   bool isDefined(const GlobalPoint& gp) const {return true;}
00029 
00030  private:
00031   GlobalVector theField;
00032 };
00033 
00034 #endif