11 return fabs(
tmp.phi()) <= thePhiExt/2. &&
12 tmp.perp() >= theRmin &&
tmp.perp() <= theRmax &&
13 tmp.z() >= theZmin &&
tmp.z() <= theZmax ;
19 if (p.
z() < theZmin || p.
z() > theZmax)
return false;
26 if (perp2 == 0)
return scale*scale*err.
yy() > theRmin*theRmin;
33 float deltaPhi = atan( scale*
sqrt(rotatedErr.yy())/perp);
35 float tmpPhi = acos(
tmp.y() /
perp);
37 return perp >=
max(theRmin-deltaR, 0.
f) && perp <= theRmax+deltaR
virtual bool inside(const Local3DPoint &p) const
Determine if the point is inside the bounds.
double deltaPhi(float phi1, float phi2)
const T & max(const T &a, const T &b)
double deltaR(double eta1, double eta2, double phi1, double phi2)
T perp2() const
Squared magnitude of transverse component.
std::vector< std::vector< double > > tmp
T perp() const
Magnitude of transverse component.
LocalError rotate(float x, float y) const
Return a new LocalError, rotated by an angle defined by the direction (x,y)