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 GCC11_FINAL : 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 
virtual float thickness() const
float outerRadius() const
virtual float length() const
float innerRadius() const
Extension of the Bounds interface.
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
Definition: Bounds.h:22
virtual float width() const
Unlimited (trivial) bounds.