CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OAE85lParametrizedMagneticField.h
Go to the documentation of this file.
1 #ifndef ParametrizedEngine_OAE85lParametrizedMagneticField_h
2 #define ParametrizedEngine_OAE85lParametrizedMagneticField_h
3 
16 
17 namespace edm { class ParameterSet; }
18 
20  public:
21 
24  OAE85lParametrizedMagneticField(float b0_ = 40.681,
25  float a_ = 4.6430,
26  float l_ = 15.284);
27 
30 
31 
34 
35  GlobalVector inTesla (const GlobalPoint& gp) const;
36 
37  GlobalVector inTeslaUnchecked (const GlobalPoint& gp) const;
38 
39  bool isDefined(const GlobalPoint& gp) const;
40 
41  private:
42 
43  void ffunkti(float u, float* ff) const;
44 
45  void init();
46 
47  //phenomen. parameters:
48  // b0=field at centre, l=solenoid length, a=radius (m)
49  float b0;
50  float l;
51  float a;
52  // Derived parameters
53  float ap2;
54  float hb0;
55  float hlova;
56  float ainv;
57 };
58 #endif
dictionary parameters
Definition: Parameters.py:2
OAE85lParametrizedMagneticField(float b0_=40.681, float a_=4.6430, float l_=15.284)
GlobalVector inTeslaUnchecked(const GlobalPoint &gp) const
GlobalVector inTesla(const GlobalPoint &gp) const
Field value ad specified global point, in Tesla.
bool isDefined(const GlobalPoint &gp) const
True if the point is within the region where the concrete field.