CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/Geometry/TrackerGeometryBuilder/src/PixelGeomDetUnit.cc

Go to the documentation of this file.
00001 #include "Geometry/TrackerNumberingBuilder/interface/GeometricDet.h"
00002 #include "Geometry/TrackerGeometryBuilder/interface/PixelGeomDetUnit.h"
00003 #include "Geometry/TrackerGeometryBuilder/interface/PixelGeomDetType.h"
00004 
00005 #include "Geometry/CommonTopologies/interface/SurfaceDeformation.h"
00006 
00007 PixelGeomDetUnit::PixelGeomDetUnit( BoundPlane* sp, PixelGeomDetType* type,const GeometricDet* gd) : 
00008   GeomDetUnit(sp), theTopology(new ProxyPixelTopology(type, sp)), theGD(gd)
00009 {
00010   setDetId(theGD->geographicalID());
00011 }
00012 
00013 const GeomDetType& PixelGeomDetUnit::type() const { return theTopology->type(); }
00014 
00015 PixelGeomDetType& PixelGeomDetUnit::specificType() const { return theTopology->specificType(); }
00016 
00017 const Topology& PixelGeomDetUnit::topology() const { return *theTopology; }
00018 
00019 const PixelTopology& PixelGeomDetUnit::specificTopology() const { return *theTopology; }
00020 
00021 void PixelGeomDetUnit::setSurfaceDeformation(const SurfaceDeformation * deformation)
00022 {
00023   theTopology->setSurfaceDeformation(deformation);
00024 }