CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/DataFormats/GeometrySurface/interface/PlaneBuilder.h

Go to the documentation of this file.
00001 #ifndef Geom_PlaneBuilder_H
00002 #define Geom_PlaneBuilder_H
00003 
00004 #include "DataFormats/GeometrySurface/interface/Plane.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<Plane>        ReturnType;
00019 
00022   ReturnType plane( const PositionType& pos, const RotationType& rot) const {
00023     return ReturnType( new Plane( pos, rot));
00024   }
00025 
00030   ReturnType plane( const PositionType& pos, const RotationType& rot, 
00031                     Bounds * bounds) const {
00032     return ReturnType( new Plane( pos, rot, bounds));
00033   }
00034 
00035 };
00036 
00037 #endif