 |
Belle II Software
release-05-02-19
|
22 template<
class Po
intType,
class DataType>
43 static DataType
calcPerp2(
const PointType& aHit)
44 {
return (aHit.X() * aHit.X() + aHit.Y() * aHit.Y()); }
52 static DataType
calcMag2(
const PointType& aHit)
53 {
return (aHit.X() * aHit.X() + aHit.Y() * aHit.Y() + aHit.Z() * aHit.Z()); }
57 static DataType
calcMag(
const PointType& aHit) {
return sqrt(
calcMag2(aHit)); }
61 static DataType
calcDot(
const PointType& aHit,
const PointType& bHit)
62 {
return (aHit.X() * bHit.X() + aHit.Y() * bHit.Y() + aHit.Z() * bHit.Z()); }
71 return field * radius;
static DataType calcMag2(const PointType &aHit)
returns the magnitude squared of given pointType.
contains a collection of functions and related stuff needed for SelectionVariables implementing 2-,...
static DataType calcPerp2(const PointType &aHit)
returns the perpendicular magnitude squared of given pointType.
static DataType calcPerp(const PointType &aHit)
returns the perpendicular magnitude of given pointType.
static DataType s_MagneticFieldFactor
is factor containing speed of light (c), the magnetic field (b) and the scaling factor s for conversi...
static void resetMagneticField(DataType magneticFieldStrength=1.5)
Overrides standard-Setup for magnetic field.
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...
static DataType calcMag(const PointType &aHit)
returns the magnitude of given pointType.
Abstract base class for different kinds of events.
static DataType calcDot(const PointType &aHit, const PointType &bHit)
returns scalar product of given two pointTypes.