00001 #ifndef Geom_PlaneBuilder_H 00002 #define Geom_PlaneBuilder_H 00003 00004 #include "DataFormats/GeometrySurface/interface/BoundPlane.h" 00005 00006 class Bounds; 00007 00013 class PlaneBuilder { 00014 public: 00015 00016 typedef Surface::PositionType PositionType; 00017 typedef Surface::RotationType RotationType; 00018 typedef ReferenceCountingPointer<BoundPlane> ReturnType; 00019 00022 ReturnType plane( const PositionType& pos, const RotationType& rot) const { 00023 return ReturnType( new BoundPlane( pos, rot)); 00024 } 00025 00030 ReturnType plane( const PositionType& pos, const RotationType& rot, 00031 const Bounds& bounds) const { 00032 return ReturnType( new BoundPlane( pos, rot, bounds)); 00033 } 00034 00035 }; 00036 00037 #endif