CMS 3D CMS Logo

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