CMS 3D CMS Logo

StackGeomDet.h
Go to the documentation of this file.
1 #ifndef Geometry_TrackerGeometryBuilder_StackGeomDet_H
2 #define Geometry_TrackerGeometryBuilder_StackGeomDet_H
3 
6 
7 class StackGeomDet : public TrackerGeomDet{
8 public:
9 
10  StackGeomDet( BoundPlane* sp, const GeomDetUnit* lowerDet, const GeomDetUnit* upperDet, const DetId stackDetId);
11 
12  ~StackGeomDet() override;
13 
14  bool isLeaf() const override { return false;}
15  std::vector<const GeomDet*> components() const override;
16 
17  // Which subdetector
18  SubDetector subDetector() const override { return theLowerDet->subDetector(); };
19 
20  const GeomDetUnit* lowerDet() const { return theLowerDet; };
21  const GeomDetUnit* upperDet() const { return theUpperDet; };
22 
23 private:
24  const GeomDetUnit* theLowerDet;
26 };
27 
28 #endif
const GeomDetUnit * lowerDet() const
Definition: StackGeomDet.h:20
~StackGeomDet() override
Definition: StackGeomDet.cc:8
SubDetector subDetector() const override
Which subdetector.
Definition: StackGeomDet.h:18
Definition: DetId.h:18
std::vector< const GeomDet * > components() const override
Returns direct components, if any.
Definition: StackGeomDet.cc:11
const GeomDetUnit * theUpperDet
Definition: StackGeomDet.h:25
const GeomDetUnit * upperDet() const
Definition: StackGeomDet.h:21
StackGeomDet(BoundPlane *sp, const GeomDetUnit *lowerDet, const GeomDetUnit *upperDet, const DetId stackDetId)
Definition: StackGeomDet.cc:3
const GeomDetUnit * theLowerDet
Definition: StackGeomDet.h:21
virtual SubDetector subDetector() const
Which subdetector.
Definition: GeomDet.cc:44
bool isLeaf() const override
is a Unit
Definition: StackGeomDet.h:14