20 template<
class Po
intType,
class DataType>
42 {
return (aHit.X() * aHit.X() + aHit.Y() * aHit.Y()); }
50 static DataType
calcMag2(
const PointType& aHit)
51 {
return (aHit.X() * aHit.X() + aHit.Y() * aHit.Y() + aHit.Z() * aHit.Z()); }
59 static DataType
calcDot(
const PointType& aHit,
const PointType& bHit)
60 {
return (aHit.X() * bHit.X() + aHit.Y() * bHit.Y() + aHit.Z() * bHit.Z()); }
69 return field * radius;
double sqrt(double a)
sqrt for double
static DataType s_MagneticFieldFactor
is factor containing speed of light (c), the magnetic field (b) and the scaling factor s for conversi...
Abstract base class for different kinds of events.
contains a collection of functions and related stuff needed for SelectionVariables implementing 2-,...
static void resetMagneticField(DataType magneticFieldStrength=1.5)
Overrides standard-Setup for magnetic field.
static DataType calcDot(const PointType &aHit, const PointType &bHit)
returns scalar product of given two pointTypes.
static DataType calcPerp2(const PointType &aHit)
returns the perpendicular magnitude squared of given pointType.
static DataType calcMag2(const PointType &aHit)
returns the magnitude squared of given pointType.
static DataType calcPerp(const PointType &aHit)
returns the perpendicular magnitude of given pointType.
static DataType calcMag(const PointType &aHit)
returns the magnitude of given pointType.
static DataType calcPt(DataType radius, DataType field=SelVarHelper::s_MagneticFieldFactor)
calculates the estimation of the transverse momentum of given radius using defined strength of magnet...