1 #ifndef ThirdHitPredictionFromInvParabola_H
2 #define ThirdHitPredictionFromInvParabola_H
32 double ip,
double curv,
double tolerance);
43 inline double coeffA(
double impactParameter,
int charge)
const;
44 inline double coeffB(
double impactParameter,
int charge)
const;
45 double predV(
double u,
double ip,
int charge)
const;
58 T invRadius2 = T(1)/point.
mag2();
60 theU = rotated.
x() * invRadius2;
61 theV = rotated.
y() * invRadius2;
93 double u1u2 =
p1.
u()*
p2.
u();
94 double du =
p2.
u() -
p1.
u();
96 return -charge*pv/du - u1u2*impactParameter;
102 double dv =
p2.
v() -
p1.
v();
103 double du =
p2.
u() -
p1.
u();
104 double su =
p2.
u() +
p1.
u();
105 return charge*dv/du - su*impactParameter;
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
Range rangeRPhiSlow(double radius, int charge, int nIter=5) const
PixelRecoRange< float > Range
MappedPoint(const Basic2DVector< T > &point, const TkRotation< T > *aRot)
MappedPoint(const T &aU, const T &aV, const TkRotation< T > *aRot)
Range operator()(double radius, int charge) const
MappedPoint< double > PointUV
void init(const GlobalPoint &P1, const GlobalPoint &P2, double ip, double curv)
double predV(double u, double ip, int charge) const
TkRotation< double > Rotation
T curvature(T InversePt, const edm::EventSetup &iSetup)
double coeffB(double impactParameter, int charge) const
ThirdHitPredictionFromInvParabola(const GlobalPoint &P1, const GlobalPoint &P2, double ip, double curv, double tolerance)
Range rangeRPhi(double radius, int charge) const
const TkRotation< T > * pRot
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
std::vector< std::vector< double > > tmp
double coeffA(double impactParameter, int charge) const
Basic2DVector< T > unmap() const
PointUV findPointAtCurve(double radius, int charge, double ip) const
*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
double ipFromCurvature(double curvature, int charge) const