CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SimpleDiskBounds.h
Go to the documentation of this file.
1 #ifndef Geom_SimpleDiskBounds_H
2 #define Geom_SimpleDiskBounds_H
3 
4 
7 
8 
13 class SimpleDiskBounds : public Bounds {
14 public:
15 
17  SimpleDiskBounds( float rmin, float rmax, float zmin, float zmax);
18 
19  virtual float length() const { return theZmax - theZmin;}
20  virtual float width() const { return 2*theRmax;}
21  virtual float thickness() const { return theZmax-theZmin;}
22 
23  virtual bool inside( const Local3DPoint& p) const;
24 
25  virtual bool inside( const Local3DPoint& p, const LocalError& err, float scale) const;
26 
27  virtual bool inside( const Local2DPoint& p, const LocalError& err) const;
28 
29  virtual Bounds* clone() const;
30 
32  float innerRadius() const {return theRmin;}
33  float outerRadius() const {return theRmax;}
34 
35 private:
36  float theRmin;
37  float theRmax;
38  float theZmin;
39  float theZmax;
40 };
41 
42 #endif // Geom_SimpleDiskBounds_H
43 
44 
SimpleDiskBounds(float rmin, float rmax, float zmin, float zmax)
Construct the bounds from min and max R and Z in LOCAL coordinates.
virtual float width() const
virtual float length() const
virtual bool inside(const Local3DPoint &p) const
Determine if the point is inside the bounds.
virtual Bounds * clone() const
float outerRadius() const
virtual float thickness() const
Definition: Bounds.h:18
float innerRadius() const
Extension of the Bounds interface.