CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/Geometry/TrackerGeometryBuilder/src/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   StripSubdetector subdet(theMonoDet->geographicalId().rawId());
00014   setDetId(subdet.glued());
00015 }
00016 
00017 GluedGeomDet::~GluedGeomDet()
00018 {}
00019 
00020 std::vector<const GeomDet*> GluedGeomDet::components() const {
00021   return child;
00022 }