CMS 3D CMS Logo

OAEParametrizedMagneticField.h

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

Generated on Tue Jun 9 17:40:37 2009 for CMSSW by  doxygen 1.5.4