Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:14

0001 #ifndef Geom_PlaneBuilder_H
0002 #define Geom_PlaneBuilder_H
0003 
0004 #include "DataFormats/GeometrySurface/interface/Plane.h"
0005 
0006 class Bounds;
0007 
0008 /** \class PlaneBuilder 
0009  *  This class is deprecated.
0010  *  Please use the static build() methods in BoundPlane.
0011  */
0012 
0013 class PlaneBuilder {
0014 public:
0015   typedef Surface::PositionType PositionType;
0016   typedef Surface::RotationType RotationType;
0017   typedef ReferenceCountingPointer<Plane> ReturnType;
0018 
0019   /** Builds a plane with origin at pos and with rotation matrix rot
0020    */
0021   ReturnType plane(const PositionType& pos, const RotationType& rot) const { return ReturnType(new Plane(pos, rot)); }
0022 
0023   /** Same as above, with bounds. The bounds are cloned, and a new 
0024    *  copy is used in the plane, so you don't have to create them with "new",
0025    *  and if you do, don't forget to delete them.
0026    */
0027   ReturnType plane(const PositionType& pos, const RotationType& rot, Bounds* bounds) const {
0028     return ReturnType(new Plane(pos, rot, bounds));
0029   }
0030 };
0031 
0032 #endif