test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ParabolicParametrizedMagneticField.h
Go to the documentation of this file.
1 #ifndef ParametrizedEngine_ParabolicParametrizedMagneticField_h
2 #define ParametrizedEngine_ParabolicParametrizedMagneticField_h
3 
13 #include <vector>
14 
15 namespace edm { class ParameterSet; }
16 
18  public:
21 
23  explicit ParabolicParametrizedMagneticField(const std::vector<double>& parameters);
24 
27 
28  GlobalVector inTesla (const GlobalPoint& gp) const;
29 
30  GlobalVector inTeslaUnchecked (const GlobalPoint& gp) const;
31 
32  inline float B0Z(const float a) const;
33 
34  inline float Kr(const float R2) const;
35 
36  inline bool isDefined(const GlobalPoint& gp) const;
37 
38  private:
39  float c1;
40  float b0;
41  float b1;
42  float a;
43 };
44 #endif
dictionary parameters
Definition: Parameters.py:2
bool isDefined(const GlobalPoint &gp) const
True if the point is within the region where the concrete field.
ParabolicParametrizedMagneticField()
Default constructor, use default values for 3.8T map.
GlobalVector inTeslaUnchecked(const GlobalPoint &gp) const
GlobalVector inTesla(const GlobalPoint &gp) const
Field value ad specified global point, in Tesla.