CMS 3D CMS Logo

DoubleSensGeomDet.h
Go to the documentation of this file.
1 #ifndef Geometry_CommonTopologies_DoubleSensGeomDet_H
2 #define Geometry_CommonTopologies_DoubleSensGeomDet_H
3 
6 
8 public:
10  const GeomDetUnit* firstDet,
11  const GeomDetUnit* secondDet,
12  const DetId doubleSensDetId);
13 
14  ~DoubleSensGeomDet() override;
15 
16  bool isLeaf() const override { return false; }
17  std::vector<const GeomDet*> components() const override;
18 
19  // Which subdetector
20  SubDetector subDetector() const override { return theFirstDet->subDetector(); };
21 
22  const GeomDetUnit* firstDet() const { return theFirstDet; };
23  const GeomDetUnit* secondDet() const { return theSecondDet; };
24 
25 private:
26  const GeomDetUnit* theFirstDet;
28 };
29 
30 #endif
const GeomDetUnit * secondDet() const
const GeomDetUnit * firstDet() const
SubDetector subDetector() const override
Which subdetector.
const GeomDetUnit * theSecondDet
Definition: DetId.h:17
const GeomDetUnit * theFirstDet
~DoubleSensGeomDet() override
virtual SubDetector subDetector() const
Which subdetector.
Definition: GeomDet.cc:38
std::vector< const GeomDet * > components() const override
Returns direct components, if any.
DoubleSensGeomDet(BoundPlane *sp, const GeomDetUnit *firstDet, const GeomDetUnit *secondDet, const DetId doubleSensDetId)
bool isLeaf() const override
is a Unit