Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #include "Geometry/MTDGeometryBuilder/interface/MTDGeomDetUnit.h"
0002 #include "Geometry/MTDGeometryBuilder/interface/MTDGeomDetType.h"
0003 
0004 #include "Geometry/CommonTopologies/interface/SurfaceDeformation.h"
0005 
0006 MTDGeomDetUnit::MTDGeomDetUnit(BoundPlane* sp, MTDGeomDetType const* type, DetId id)
0007     : MTDGeomDet(sp), theTopology(new ProxyMTDTopology(type, sp)) {
0008   setDetId(id);
0009 }
0010 
0011 const GeomDetType& MTDGeomDetUnit::type() const { return theTopology->type(); }
0012 
0013 const MTDGeomDetType& MTDGeomDetUnit::specificType() const { return theTopology->specificType(); }
0014 
0015 const Topology& MTDGeomDetUnit::topology() const { return *theTopology; }
0016 
0017 const PixelTopology& MTDGeomDetUnit::specificTopology() const { return *theTopology; }
0018 
0019 void MTDGeomDetUnit::setSurfaceDeformation(const SurfaceDeformation* deformation) {
0020   theTopology->setSurfaceDeformation(deformation);
0021 }