Main Page
Namespaces
Classes
Package Documentation
TrackingTools
DetLayers
interface
DetLayer.h
Go to the documentation of this file.
1
#ifndef DetLayers_DetLayer_h
2
#define DetLayers_DetLayer_h
3
14
#include "
TrackingTools/DetLayers/interface/GeometricSearchDet.h
"
15
16
#include "
TrackingTools/DetLayers/interface/NavigableLayer.h
"
17
#include "
TrackingTools/DetLayers/interface/NavigationDirection.h
"
18
19
#include <vector>
20
21
class
DetLayer
:
public
GeometricSearchDet
{
22
public
:
23
24
typedef
GeomDetEnumerators::SubDetector
SubDetector
;
25
typedef
GeomDetEnumerators::Location
Location
;
26
27
DetLayer
(
bool
doHaveGroup,
bool
ibar) :
GeometricSearchDet
(doHaveGroup),
theSeqNum
(-1),
iAmBarrel
(ibar) {}
28
29
virtual
~DetLayer
();
30
31
// a detLayer can be either barrel or forward
32
bool
isBarrel
()
const
{
return
iAmBarrel
;}
33
bool
isForward
()
const
{
return
!
isBarrel
();}
34
35
// sequential number to be used in "maps"
36
int
seqNum
()
const
{
return
theSeqNum
;}
37
void
setSeqNum
(
int
sq) {
theSeqNum
=sq;}
38
39
// Extension of the interface
40
42
virtual
SubDetector
subDetector
()
const
= 0;
43
45
virtual
Location
location
()
const
= 0;
46
47
48
49
private
:
50
int
theSeqNum
;
51
bool
iAmBarrel
;
52
};
53
54
#endif
DetLayer::Location
GeomDetEnumerators::Location Location
Definition:
DetLayer.h:25
DetLayer::setSeqNum
void setSeqNum(int sq)
Definition:
DetLayer.h:37
DetLayer::isForward
bool isForward() const
Definition:
DetLayer.h:33
DetLayer::subDetector
virtual SubDetector subDetector() const =0
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
GeomDetEnumerators::Location
Location
Definition:
GeomDetEnumerators.h:10
DetLayer::location
virtual Location location() const =0
Which part of the detector (barrel, endcap)
NavigationDirection.h
GeometricSearchDet.h
DetLayer::seqNum
int seqNum() const
Definition:
DetLayer.h:36
DetLayer::~DetLayer
virtual ~DetLayer()
Definition:
DetLayer.cc:3
GeomDetEnumerators::SubDetector
SubDetector
Definition:
GeomDetEnumerators.h:11
DetLayer::iAmBarrel
bool iAmBarrel
Definition:
DetLayer.h:51
DetLayer
Definition:
DetLayer.h:21
DetLayer::SubDetector
GeomDetEnumerators::SubDetector SubDetector
Definition:
DetLayer.h:24
DetLayer::isBarrel
bool isBarrel() const
Definition:
DetLayer.h:32
DetLayer::theSeqNum
int theSeqNum
Definition:
DetLayer.h:50
GeometricSearchDet
Definition:
GeometricSearchDet.h:19
DetLayer::DetLayer
DetLayer(bool doHaveGroup, bool ibar)
Definition:
DetLayer.h:27
NavigableLayer.h
Generated for CMSSW Reference Manual by
1.8.11