12 #if !defined(__INTEL_COMPILER) 13 #define USE_VECTORS_HERE 27 ~Stat() {
std::cout <<
"ASIN " <<
xmin <<
',' <<
xmax <<
',' <<
nt <<
',' <<
nn <<
',' << nl << std::endl; }
36 inline T cropped_asin(
T x) {
51 inline T cropped_asin(
T x) {
66 inline T f_asin07f(
T x) {
67 auto ret = 1.f + (
x *
x) * (0.157549798488616943359375
f + (x * x) * 0.125192224979400634765625f);
77 inline float f_atan2f(
float y,
float x) {
return unsafe_atan2f<7>(
y,
x); }
79 inline float f_phi(
V v) {
80 return f_atan2f(
v.y(),
v.x());
94 ol(outlayer.seqNum()),
95 theROrigin(
region.originRBound()),
98 theExtraTolerance(extraTolerance),
101 theVtxZ(
region.origin().z()),
104 sigma(msmaker.parametrisation(&layer)) {
160 float layerZ =
layer.position().z();
163 theB = layerZ > 0 ? zMaxOrigin : zMinOrigin;
172 auto dHitmag = dHit.
mag();
187 rLayer = crossing.
mag();
188 dLayer =
t * dHitmag;
203 if (vtxmag2 < 1.
e-10
f) {
207 double var_c = vtxmag2 -
sqr(rLayer);
209 double var_delta =
sqr(var_b) - var_c;
219 #ifdef USE_VECTORS_HERE 220 cms_float32x4_t
num{dHitmag, dLayer,
theROrigin * (dHitmag - dLayer), 1.
f};
222 auto phis = f_asin07f(
num / den);
223 phis = phis * dLayer / (rLayer * cosCross);
225 auto deltaPhiOrig = phis[2];
230 OdeltaPhi *= dLayer / (rLayer * cosCross);
232 auto OdeltaPhiOrig = cropped_asin(
theROrigin * (dHitmag - dLayer) / (dHitmag * dLayer));
233 OdeltaPhiOrig *= dLayer / (rLayer * cosCross);
237 auto deltaPhiOrig = OdeltaPhiOrig;
243 auto phicross2 = f_phi(crossing2);
244 auto phicross1 = f_phi(crossing);
245 auto dphicross = phicross2 - phicross1;
246 if (dphicross < -
float(
M_PI))
248 if (dphicross >
float(
M_PI))
250 if (dphicross >
float(
M_PI / 2))
252 phicross2 = phicross1 + dphicross;
259 auto deltaPhiHitOuter = errRPhi / hitXY.
mag();
261 auto margin =
deltaPhi + deltaPhiOrig + deltaPhiHit + deltaPhiHitOuter;
278 margin += nscatt / rLayer;
virtual const BoundSurface & surface() const =0
The surface of the GeometricSearchDet.
virtual const Surface::PositionType & position() const
Returns position of the surface.
virtual float length() const =0
void initBarrelMS(const DetLayer &outLayer)
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
PixelRecoRange< float > phiRange(const Point2D &hitXY, float zHit, float errRPhi) const
ret
prodAgent to be discontinued
InnerDeltaPhi(const DetLayer &outlayer, const DetLayer &layer, const TrackingRegion ®ion, const MagneticField &field, const MultipleScatteringParametrisationMaker &msmaker, bool precise=true, float extraTolerance=0.f)
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t V
Abs< T >::type abs(const T &t)
Basic2DVector unit() const
void initForwardMS(const DetLayer &outLayer)
void initBarrelLayer(const DetLayer &layer)
void initForwardLayer(const DetLayer &layer, float zMinOrigin, float zMaxOrigin)
T dot(const Basic2DVector &lh) const
Scalar product, or "dot" product, with a vector of same type.
virtual const BoundCylinder & specificSurface() const final
Extension of the interface.
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Square< F >::type sqr(const F &f)
virtual const BoundDisk & specificSurface() const final
T bendingRadius(T pt, const MagneticField &field)
MultipleScatteringParametrisation sigma
const Bounds & bounds() const