File indexing completed on 2024-04-06 12:14:22
0001 #ifndef Geometry_CommonTopologies_DoubleSensGeomDet_H
0002 #define Geometry_CommonTopologies_DoubleSensGeomDet_H
0003
0004 #include "Geometry/CommonTopologies/interface/TrackerGeomDet.h"
0005 #include "DataFormats/DetId/interface/DetId.h"
0006
0007 class DoubleSensGeomDet : public TrackerGeomDet {
0008 public:
0009 DoubleSensGeomDet(BoundPlane* sp,
0010 const GeomDetUnit* firstDet,
0011 const GeomDetUnit* secondDet,
0012 const DetId doubleSensDetId);
0013
0014 ~DoubleSensGeomDet() override;
0015
0016 bool isLeaf() const override { return false; }
0017 std::vector<const GeomDet*> components() const override;
0018
0019
0020 SubDetector subDetector() const override { return theFirstDet->subDetector(); };
0021
0022 const GeomDetUnit* firstDet() const { return theFirstDet; };
0023 const GeomDetUnit* secondDet() const { return theSecondDet; };
0024
0025 private:
0026 const GeomDetUnit* theFirstDet;
0027 const GeomDetUnit* theSecondDet;
0028 };
0029
0030 #endif