CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 {
16  class ParameterSet;
17 }
18 
20 public:
23 
25  explicit ParabolicParametrizedMagneticField(const std::vector<double>& parameters);
26 
29 
30  GlobalVector inTesla(const GlobalPoint& gp) const override;
31 
32  GlobalVector inTeslaUnchecked(const GlobalPoint& gp) const override;
33 
34  inline float B0Z(const float a) const;
35 
36  inline float Kr(const float R2) const;
37 
38  inline bool isDefined(const GlobalPoint& gp) const override;
39 
40 private:
41  float c1;
42  float b0;
43  float b1;
44  float a;
45 };
46 #endif
ParabolicParametrizedMagneticField()
Default constructor, use default values for 3.8T map.
bool isDefined(const GlobalPoint &gp) const override
True if the point is within the region where the concrete field.
GlobalVector inTesla(const GlobalPoint &gp) const override
Field value ad specified global point, in Tesla.
GlobalVector inTeslaUnchecked(const GlobalPoint &gp) const override