Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:31

0001 #ifndef Geom_OpenBounds_H
0002 #define Geom_OpenBounds_H
0003 
0004 #include "DataFormats/GeometryVector/interface/LocalPoint.h"
0005 #include "DataFormats/GeometrySurface/interface/Bounds.h"
0006 
0007 /// Unlimited (trivial) bounds.
0008 
0009 class OpenBounds final : public Bounds {
0010 public:
0011   float length() const override { return 1000000.; }
0012   float width() const override { return 1000000.; }
0013   float thickness() const override { return 1000000.; }
0014 
0015   // basic bounds function
0016 
0017   using Bounds::inside;
0018 
0019   bool inside(const Local3DPoint& p) const override { return true; }
0020 
0021   bool inside(const Local3DPoint& p, const LocalError& err, float scale) const override { return true; }
0022 
0023   bool inside(const Local2DPoint& p, const LocalError& err, float scale) const override { return true; }
0024 
0025   Bounds* clone() const override { return new OpenBounds(); }
0026 };
0027 
0028 #endif  // Geom_OpenBounds_H