test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  virtual ~StackGeomDet();
13 
14  bool isLeaf() const override { return false;}
15  virtual std::vector<const GeomDet*> components() const override;
16 
17  // Which subdetector
18  virtual 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
virtual ~StackGeomDet()
Definition: StackGeomDet.cc:8
bool isLeaf() const override
is a Unit
Definition: StackGeomDet.h:14
Definition: DetId.h:18
virtual 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
Definition: sp.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
virtual SubDetector subDetector() const override
Which subdetector.
Definition: StackGeomDet.h:18