CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/MagneticField/ParametrizedEngine/plugins/OAEParametrizedMagneticField.h

Go to the documentation of this file.
00001 #ifndef ParametrizedEngine_OAEParametrizedMagneticField_h
00002 #define ParametrizedEngine_OAEParametrizedMagneticField_h
00003 
00015 #include "MagneticField/Engine/interface/MagneticField.h"
00016 #include "TkBfield.h"
00017 
00018 namespace edm { class ParameterSet; }
00019 namespace magfieldparam { class TkBfield; }
00020 
00021 class OAEParametrizedMagneticField : public MagneticField {
00022  public:
00024   explicit OAEParametrizedMagneticField(std::string T="3_8T");
00025 
00027   explicit OAEParametrizedMagneticField(const edm::ParameterSet& parameters);
00028 
00030   virtual ~OAEParametrizedMagneticField();
00031   
00032   GlobalVector inTesla (const GlobalPoint& gp) const;
00033 
00034   GlobalVector inTeslaUnchecked (const GlobalPoint& gp) const;
00035 
00036   bool isDefined(const GlobalPoint& gp) const;
00037 
00038  private:
00039   magfieldparam::TkBfield  theParam;
00040 };
00041 #endif