Definition at line 87 of file InnerDeltaPhi.cc.
References abs, Basic2DVector< T >::barePhi(), SiPixelRawToDigiRegional_cfi::deltaPhi, Basic2DVector< T >::dot(), dt, alignCSCRings::e, f, M_PI, Basic2DVector< T >::mag(), max(), min, ol, point, sigma, funct::sqr(), mathSSE::sqrt(), lumiQTWidget::t, theA, theB, theExtraTolerance, thePrecise, thePtMin, theRCurvature, theRDefined, theRLayer, theROrigin, theThickness, theVtx, theVtxZ, Basic2DVector< T >::unit(), and zero.
90 bool checkCrossing =
true;
94 auto dHitmag = dHit.
mag();
102 crossing = theVtx +
t*dHit;
103 rLayer = crossing.
mag();
104 dLayer =
t*dHitmag; dL =
dt * dHitmag;
105 checkCrossing =
false;
107 checkCrossing =
true;
125 auto vtxmag2 = theVtx.mag2();
126 if (vtxmag2 < 1.
e-10
f) {
131 double var_c = vtxmag2-
sqr(rLayer);
132 double var_b = theVtx.dot(dHit.unit());
133 double var_delta =
sqr(var_b)-var_c;
134 if (var_delta <=0.) var_delta = 0;
137 crossing = theVtx+ dHit.
unit() * dLayer;
138 float cosCross =
std::abs( dHit.unit().dot(crossing.
unit()));
145 auto cosCross =
std::abs( dHit.unit().dot(crossing.
unit()));
149 deltaPhi *= dLayer/(rLayer*cosCross);
153 Point2D crossing2 = theVtx + dHit.
unit()* (dLayer+dL);
154 auto phicross2 = crossing2.
barePhi();
155 auto phicross1 = crossing.
barePhi();
156 auto dphicross = phicross2-phicross1;
157 if (dphicross < -
float(
M_PI)) dphicross += float(2*
M_PI);
158 if (dphicross >
float(
M_PI)) dphicross -= float(2*
M_PI);
159 if (dphicross >
float(
M_PI/2)) dphicross = 0.;
160 phicross2 = phicross1 + dphicross;
164 auto deltaPhiOrig = cropped_asin(
theROrigin * (dHitmag-dLayer) / (dHitmag*dLayer));
165 deltaPhiOrig *= dLayer/(rLayer*cosCross);
172 auto deltaPhiHitOuter = errRPhi/hitXY.
mag();
174 auto margin =
deltaPhi+deltaPhiOrig+deltaPhiHit+deltaPhiHitOuter ;
186 std::max(phicross1,phicross2)+margin);
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Basic2DVector unit() const
const T & max(const T &a, const T &b)
Square< F >::type sqr(const F &f)
*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
MultipleScatteringParametrisation sigma