test
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 
14 
15 namespace edm { class ParameterSet; }
16 
18  public:
19 
22  OAE85lParametrizedMagneticField(float b0_ = 40.681,
23  float a_ = 4.6430,
24  float l_ = 15.284);
25 
28 
29 
32 
33  GlobalVector inTesla (const GlobalPoint& gp) const;
34 
35  GlobalVector inTeslaUnchecked (const GlobalPoint& gp) const;
36 
37  bool isDefined(const GlobalPoint& gp) const;
38 
39  private:
40 
41  void ffunkti(float u, float* ff) const;
42 
43  void init();
44 
45  //phenomen. parameters:
46  // b0=field at centre, l=solenoid length, a=radius (m)
47  float b0;
48  float l;
49  float a;
50  // Derived parameters
51  float ap2;
52  float hb0;
53  float hlova;
54  float ainv;
55 };
56 #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.