CMS 3D CMS Logo

SimpleCylinderBounds.cc
Go to the documentation of this file.
3 
4 SimpleCylinderBounds::SimpleCylinderBounds(float rmin, float rmax, float zmin, float zmax)
5  : theRmin(rmin), theRmax(rmax), theZmin(zmin), theZmax(zmax) {
6  if (theRmin > theRmax)
8  if (theZmin > theZmax)
10 }
11 
13  return p.z() > theZmin && p.z() < theZmax && p.perp() > theRmin && p.perp() < theRmax;
14 }
15 
16 bool SimpleCylinderBounds::inside(const Local3DPoint& p, const LocalError& err, float scale) const {
18 
19  return tmp.inside(p);
20 }
21 
22 bool SimpleCylinderBounds::inside(const Local2DPoint& p, const LocalError& err) const { return Bounds::inside(p, err); }
23 
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
bool inside(const Local3DPoint &p) const override
Determine if the point is inside the bounds.
void swap(Association< C > &lhs, Association< C > &rhs)
Definition: Association.h:112
SimpleCylinderBounds(float rmin, float rmax, float zmin, float zmax)
T sqrt(T t)
Definition: SSEVec.h:23
Bounds * clone() const override
Definition: Bounds.h:18
tmp
align.sh
Definition: createJobs.py:716