CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GluedGeomDet.cc
Go to the documentation of this file.
1 #include <typeinfo>
4 
5 #include <algorithm>
6 #include <iostream>
7 #include <map>
8 
9 GluedGeomDet::GluedGeomDet( BoundPlane* sp,const GeomDetUnit* monoDet, const GeomDetUnit* stereoDet) :
10  GeomDet(sp),theMonoDet(monoDet),theStereoDet(stereoDet){
11  child.push_back(theMonoDet);
12  child.push_back(theStereoDet);
14  setDetId(subdet.glued());
15 }
16 
18 {}
19 
20 std::vector<const GeomDet*> GluedGeomDet::components() const {
21  return child;
22 }
GluedGeomDet(BoundPlane *sp, const GeomDetUnit *monoDet, const GeomDetUnit *stereoDet)
Definition: GluedGeomDet.cc:9
void setDetId(DetId id)
Definition: GeomDet.h:97
const GeomDetUnit * theMonoDet
Definition: GluedGeomDet.h:24
uint32_t rawId() const
get the raw id
Definition: DetId.h:45
std::vector< const GeomDet * > child
Definition: GluedGeomDet.h:26
virtual std::vector< const GeomDet * > components() const
Returns direct components, if any.
Definition: GluedGeomDet.cc:20
virtual ~GluedGeomDet()
Definition: GluedGeomDet.cc:17
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:72
const GeomDetUnit * theStereoDet
Definition: GluedGeomDet.h:25