Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef Geometry_CommonTopologies_StackGeomDet_H
0002 #define Geometry_CommonTopologies_StackGeomDet_H
0003 
0004 #include "Geometry/CommonTopologies/interface/TrackerGeomDet.h"
0005 #include "DataFormats/DetId/interface/DetId.h"
0006 
0007 class StackGeomDet : public TrackerGeomDet {
0008 public:
0009   StackGeomDet(BoundPlane* sp, const GeomDetUnit* lowerDet, const GeomDetUnit* upperDet, const DetId stackDetId);
0010 
0011   ~StackGeomDet() 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 theLowerDet->subDetector(); };
0018 
0019   const GeomDetUnit* lowerDet() const { return theLowerDet; };
0020   const GeomDetUnit* upperDet() const { return theUpperDet; };
0021 
0022 private:
0023   const GeomDetUnit* theLowerDet;
0024   const GeomDetUnit* theUpperDet;
0025 };
0026 
0027 #endif