8 SimpleDiskBounds::SimpleDiskBounds(
float rmin,
float rmax,
float zmin,
float zmax) :
9 theRmin(rmin), theRmax(rmax), theZmin(zmin), theZmax(zmax) {
10 if ( theRmin > theRmax)
std::swap( theRmin, theRmax);
11 if ( theZmin > theZmax)
std::swap( theZmin, theZmax);
15 return p.
z() > theZmin && p.
z() < theZmax &&
16 p.
perp() > theRmin && p.
perp() < theRmax;
31 if (p.
z() < theZmin || p.
z() > theZmax)
return false;
35 if (perp2 == 0)
return scale*scale*(err.
xx() + err.
xy()) > theRmin*theRmin;
41 2*p.
x()*p.
y()/perp2 * err.
xy() +
42 p.
y()*p.
y()/perp2 * err.
yy());
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
const T & max(const T &a, const T &b)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
double deltaR(double eta1, double eta2, double phi1, double phi2)
T perp2() const
Squared magnitude of transverse component.
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
T perp() const
Magnitude of transverse component.