Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef Geometry_TrackerGeometryBuilder_GluedGeomDet_H
0002 #define Geometry_TrackerGeometryBuilder_GluedGeomDet_H
0003 
0004 #include "Geometry/CommonTopologies/interface/TrackerGeomDet.h"
0005 #include "DataFormats/DetId/interface/DetId.h"
0006 
0007 class GluedGeomDet final : public TrackerGeomDet {
0008 public:
0009   GluedGeomDet(BoundPlane* sp, const GeomDetUnit* monoDet, const GeomDetUnit* stereoDet, DetId gluedDetId);
0010 
0011   ~GluedGeomDet() override;
0012 
0013   bool isLeaf() const override { return false; }
0014   std::vector<const GeomDet*> components() const override;
0015 
0016   // Which subdetector
0017   SubDetector subDetector() const override { return theMonoDet->subDetector(); }
0018 
0019   const GeomDetUnit* monoDet() const { return theMonoDet; }
0020   const GeomDetUnit* stereoDet() const { return theStereoDet; }
0021 
0022 private:
0023   const GeomDetUnit* theMonoDet;
0024   const GeomDetUnit* theStereoDet;
0025 };
0026 
0027 #endif