#include <OAE85lParametrizedMagneticField.h>
Public Member Functions | |
GlobalVector | inTesla (const GlobalPoint &gp) const |
Field value ad specified global point, in Tesla. More... | |
GlobalVector | inTeslaUnchecked (const GlobalPoint &gp) const |
bool | isDefined (const GlobalPoint &gp) const |
True if the point is within the region where the concrete field. More... | |
OAE85lParametrizedMagneticField (float b0_=40.681, float a_=4.6430, float l_=15.284) | |
OAE85lParametrizedMagneticField (const edm::ParameterSet ¶meters) | |
Constructor. Parameters taken from a PSet. More... | |
virtual | ~OAE85lParametrizedMagneticField () |
Destructor. More... | |
Public Member Functions inherited from MagneticField | |
virtual MagneticField * | clone () const |
GlobalVector | inInverseGeV (const GlobalPoint &gp) const |
Field value ad specified global point, in 1/Gev. More... | |
GlobalVector | inKGauss (const GlobalPoint &gp) const |
Field value ad specified global point, in KGauss. More... | |
MagneticField () | |
int | nominalValue () const |
The nominal field value for this map in kGauss. More... | |
virtual | ~MagneticField () |
Private Member Functions | |
void | ffunkti (float u, float *ff) const |
void | init () |
Private Attributes | |
float | a |
float | ainv |
float | ap2 |
float | b0 |
float | hb0 |
float | hlova |
float | l |
Magnetic Field engine wrapper for V. Karimaki's "off-axis expansion" of the TOSCA field version 85l_030919 (4 T) valid in the region r<1.2 m and |z|<3.0 m
Definition at line 19 of file OAE85lParametrizedMagneticField.h.
OAE85lParametrizedMagneticField::OAE85lParametrizedMagneticField | ( | float | b0_ = 40.681 , |
float | a_ = 4.6430 , |
||
float | l_ = 15.284 |
||
) |
Constructor. The optional parameters are: b0=field at centre, l=solenoid length, a=radius (m)
Definition at line 18 of file OAE85lParametrizedMagneticField.cc.
References init().
OAE85lParametrizedMagneticField::OAE85lParametrizedMagneticField | ( | const edm::ParameterSet & | parameters | ) |
Constructor. Parameters taken from a PSet.
Definition at line 29 of file OAE85lParametrizedMagneticField.cc.
References a, b0, edm::ParameterSet::getParameter(), init(), and l.
|
virtual |
|
private |
Definition at line 120 of file OAE85lParametrizedMagneticField.cc.
References a, b, and mathSSE::sqrt().
Referenced by inTeslaUnchecked().
|
private |
Definition at line 36 of file OAE85lParametrizedMagneticField.cc.
References a, ainv, ap2, b0, hb0, hlova, l, and mathSSE::sqrt().
Referenced by OAE85lParametrizedMagneticField().
|
virtual |
Field value ad specified global point, in Tesla.
Implements MagneticField.
Definition at line 49 of file OAE85lParametrizedMagneticField.cc.
References inTeslaUnchecked(), and isDefined().
|
virtual |
Optional implementation that derived classes can implement to provide faster query by skipping the check to isDefined.
GlobalVector bresult(br*xyz[0]*rinv, br*xyz[1]*rinv, bz);
Reimplemented from MagneticField.
Definition at line 61 of file OAE85lParametrizedMagneticField.cc.
References ainv, scaleCards::br, create_public_lumi_plots::exp, ffunkti(), hb0, hlova, alignCSCRings::r, mathSSE::sqrt(), v, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), detailsBasic3DVector::z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by inTesla().
|
virtual |
True if the point is within the region where the concrete field.
Reimplemented from MagneticField.
Definition at line 134 of file OAE85lParametrizedMagneticField.cc.
References PV3DBase< T, PVType, FrameType >::perp(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by inTesla().
|
private |
Definition at line 51 of file OAE85lParametrizedMagneticField.h.
Referenced by ffunkti(), init(), and OAE85lParametrizedMagneticField().
|
private |
Definition at line 56 of file OAE85lParametrizedMagneticField.h.
Referenced by init(), and inTeslaUnchecked().
|
private |
Definition at line 53 of file OAE85lParametrizedMagneticField.h.
Referenced by init().
|
private |
Definition at line 49 of file OAE85lParametrizedMagneticField.h.
Referenced by init(), and OAE85lParametrizedMagneticField().
|
private |
Definition at line 54 of file OAE85lParametrizedMagneticField.h.
Referenced by init(), and inTeslaUnchecked().
|
private |
Definition at line 55 of file OAE85lParametrizedMagneticField.h.
Referenced by init(), and inTeslaUnchecked().
|
private |
Definition at line 50 of file OAE85lParametrizedMagneticField.h.
Referenced by init(), and OAE85lParametrizedMagneticField().