Geometry
CommonTopologies
interface
StackGeomDet.h
Go to the documentation of this file.
1
#ifndef Geometry_CommonTopologies_StackGeomDet_H
2
#define Geometry_CommonTopologies_StackGeomDet_H
3
4
#include "
Geometry/CommonTopologies/interface/TrackerGeomDet.h
"
5
#include "
DataFormats/DetId/interface/DetId.h
"
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
;
24
const
GeomDetUnit
*
theUpperDet
;
25
};
26
27
#endif
GeomDetEnumerators::SubDetector
SubDetector
Definition:
GeomDetEnumerators.h:10
StackGeomDet::components
std::vector< const GeomDet * > components() const override
Returns direct components, if any.
Definition:
StackGeomDet.cc:13
GeomDet
Definition:
GeomDet.h:27
TrackerGeomDet
Definition:
TrackerGeomDet.h:6
StackGeomDet::upperDet
const GeomDetUnit * upperDet() const
Definition:
StackGeomDet.h:20
TrackerGeomDet.h
StackGeomDet::theLowerDet
const GeomDetUnit * theLowerDet
Definition:
StackGeomDet.h:20
DetId
Definition:
DetId.h:17
StackGeomDet::lowerDet
const GeomDetUnit * lowerDet() const
Definition:
StackGeomDet.h:19
StackGeomDet::subDetector
SubDetector subDetector() const override
Which subdetector.
Definition:
StackGeomDet.h:17
StackGeomDet::isLeaf
bool isLeaf() const override
is a Unit
Definition:
StackGeomDet.h:13
StackGeomDet::~StackGeomDet
~StackGeomDet() override
Definition:
StackGeomDet.cc:11
StackGeomDet
Definition:
StackGeomDet.h:7
StackGeomDet::StackGeomDet
StackGeomDet(BoundPlane *sp, const GeomDetUnit *lowerDet, const GeomDetUnit *upperDet, const DetId stackDetId)
Definition:
StackGeomDet.cc:3
DetId.h
BoundPlane
StackGeomDet::theUpperDet
const GeomDetUnit * theUpperDet
Definition:
StackGeomDet.h:24
GeomDet::subDetector
virtual SubDetector subDetector() const
Which subdetector.
Definition:
GeomDet.cc:38
Generated for CMSSW Reference Manual by
1.8.16