CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/DataFormats/GeometrySurface/interface/BoundingBox.h

Go to the documentation of this file.
00001 #ifndef BoundingBox_H
00002 #define BoundingBox_H
00003 
00004 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
00005 #include <vector>
00006 
00007 class BoundPlane;
00008 
00012 class BoundingBox {
00013 public:
00014 
00015   BoundingBox(){}
00016   BoundingBox(const BoundPlane& plane);
00017   
00018   // old interface
00019   static std::vector<GlobalPoint> corners( const BoundPlane&);
00020 
00021 
00022   GlobalPoint const & operator[](unsigned int i) const {
00023     return  m_corners[i];
00024   }
00025   GlobalPoint const & corner(unsigned int i) const {
00026     return  m_corners[i];
00027   }
00028 
00029 
00030 private:
00031 
00032 
00033   GlobalPoint m_corners[8];
00034 
00035 };
00036 
00037 #endif