13 using namespace magfieldparam;
20 : theParam(parameters.getParameter<
string>(
"BValue")) {
31 <<
" is outside the validity region of OAEParametrizedMagneticField";
37 constexpr
float ooh = 1. / 100;
41 float x[3] = {gp.
x() * ooh, gp.
y() * ooh, gp.
z() * ooh};
48 return (gp.
perp2() < (115.f * 115.f) && fabs(gp.
z()) < 280.
f);
void getBxyz(float const *__restrict__ x, float *__restrict__ Bxyz) const
B out in cartesian.
~OAEParametrizedMagneticField() override
Destructor.
bool isDefined(const GlobalPoint &gp) const override
True if the point is within the region where the concrete field.
static const std::string B
GlobalVector inTeslaUnchecked(const GlobalPoint &gp) const override
GlobalVector inTesla(const GlobalPoint &gp) const override
Field value ad specified global point, in Tesla.
OAEParametrizedMagneticField(float B)
Constructor, pass value for nominal field.
magfieldparam::TkBfield theParam
Log< level::Warning, false > LogWarning
Global3DVector GlobalVector