CMS 3D CMS Logo

GluedGeomDet.cc

Go to the documentation of this file.
00001 #include <typeinfo>
00002 #include "Geometry/TrackerGeometryBuilder/interface/GluedGeomDet.h"
00003 #include "DataFormats/SiStripDetId/interface/StripSubdetector.h"
00004 
00005 #include <algorithm>
00006 #include <iostream>
00007 #include <map>
00008 
00009 GluedGeomDet::GluedGeomDet( BoundPlane* sp,const GeomDetUnit* monoDet, const GeomDetUnit* stereoDet) : 
00010   GeomDet(sp),theMonoDet(monoDet),theStereoDet(stereoDet){
00011   child.push_back(theMonoDet);
00012   child.push_back(theStereoDet);
00013 }
00014 
00015 GluedGeomDet::~GluedGeomDet()
00016 {}
00017 
00018 DetId GluedGeomDet::geographicalId() const {
00019   StripSubdetector subdet(theMonoDet->geographicalId().rawId());
00020   return DetId(subdet.glued());
00021 }
00022 
00023 std::vector<const GeomDet*> GluedGeomDet::components() const {
00024   return child;
00025 }

Generated on Tue Jun 9 17:37:33 2009 for CMSSW by  doxygen 1.5.4