00001 #ifndef Geometry_TrackerGeometryBuilder_GluedGeomDet_H 00002 #define Geometry_TrackerGeometryBuilder_GluedGeomDet_H 00003 00004 #include "Geometry/CommonDetUnit/interface/GeomDet.h" 00005 #include "Geometry/CommonDetUnit/interface/GeomDetUnit.h" 00006 #include "DataFormats/DetId/interface/DetId.h" 00007 00008 class GluedGeomDet : public GeomDet{ 00009 public: 00010 00011 GluedGeomDet( BoundPlane* sp, const GeomDetUnit* monoDet, const GeomDetUnit* stereoDet); 00012 00013 virtual ~GluedGeomDet(); 00014 00015 virtual DetId geographicalId() const; 00016 virtual std::vector<const GeomDet*> components() const; 00017 00018 // Which subdetector 00019 virtual SubDetector subDetector() const {return theMonoDet->subDetector();} 00020 00021 const GeomDetUnit* monoDet() const { return theMonoDet;} 00022 const GeomDetUnit* stereoDet() const { return theStereoDet;} 00023 00024 private: 00025 const GeomDetUnit* theMonoDet; 00026 const GeomDetUnit* theStereoDet; 00027 std::vector<const GeomDet*> child; 00028 }; 00029 00030 #endif