6 #include <vdt/vdtMath.h> 18 while (not
v.compare_exchange_weak(old,
t)) {
22 mutable std::atomic<int>
v{100};
36 : theQuadraticCrossingFromStart(
point, direction,
curvature, propDir),
53 double p2 =
pt2 + pz * pz;
80 return std::make_pair(
true, 0.);
87 return std::make_pair(notFail, dSTotal);
96 return std::pair<bool, double>(
false, 0);
108 LogDebug(
"HelixArbitraryPlaneCrossing") <<
"pathLength : no convergence";
109 return std::pair<bool, double>(
false, 0);
118 auto deltaS2 = quadraticCrossing.
pathLength(plane);
125 dSTotal += deltaS2.second;
131 return std::pair<bool, double>(
false, 0);
143 return std::make_pair(
true, dSTotal);
std::pair< bool, double > pathLength(const Plane &plane) override
HelixArbitraryPlaneCrossing2Order theQuadraticCrossingFromStart
T x() const
Cartesian x coordinate.
static const float theNumericalPrecision
PositionTypeDouble positionInDouble(double s) const
DirectionTypeDouble directionInDouble(double s) const
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Basic3DVector< double > PositionTypeDouble
const PropagationDirection thePropDir
static const float theMaxDistToPlane
PositionTypeDouble positionInDouble(double s) const
bool notAtSurface(const Plane &, const PositionTypeDouble &, const float) const
T y() const
Cartesian y coordinate.
T curvature(T InversePt, const MagneticField &field)
PositionType position(double s) const override
Abs< T >::type abs(const T &t)
static const MaxIter maxiter
Basic3DVector< float > PositionType
the helix is passed to the constructor and does not appear in the interface
Basic3DVector< float > DirectionType
float localZ(const GlobalPoint &gp) const
const PositionType & position() const
T z() const
Cartesian z coordinate.
std::pair< bool, double > pathLength(const Plane &) override
Basic3DVector< double > DirectionTypeDouble
DirectionTypeDouble directionInDouble(double s) const
void operator()(int) const
HelixArbitraryPlaneCrossing(const PositionType &point, const DirectionType &direction, const float curvature, const PropagationDirection propDir=alongMomentum)
void fast_sincos(const MPF &a, MPF &s, MPF &c)
DirectionType direction(double s) const override
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point