Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
typedef
GeomDetEnumerators::SubDetector
SubDetector
;
24
typedef
GeomDetEnumerators::Location
Location
;
25
26
DetLayer
(
bool
doHaveGroup,
bool
ibar) :
GeometricSearchDet
(doHaveGroup),
theSeqNum
(-1),
iAmBarrel
(ibar) {}
27
28
~DetLayer
()
override
;
29
30
// a detLayer can be either barrel or forward
31
bool
isBarrel
()
const
{
return
iAmBarrel
; }
32
bool
isForward
()
const
{
return
!
isBarrel
(); }
33
34
// sequential number to be used in "maps"
35
int
seqNum
()
const
{
return
theSeqNum
; }
36
void
setSeqNum
(
int
sq) {
theSeqNum
= sq; }
37
38
// Extension of the interface
39
41
virtual
SubDetector
subDetector
()
const
= 0;
42
44
virtual
Location
location
()
const
= 0;
45
46
private
:
47
int
theSeqNum
;
48
bool
iAmBarrel
;
49
};
50
51
#endif
DetLayer::Location
GeomDetEnumerators::Location Location
Definition:
DetLayer.h:24
DetLayer::setSeqNum
void setSeqNum(int sq)
Definition:
DetLayer.h:36
DetLayer::location
virtual Location location() const =0
Which part of the detector (barrel, endcap)
DetLayer::isForward
bool isForward() const
Definition:
DetLayer.h:32
GeomDetEnumerators::Location
Location
Definition:
GeomDetEnumerators.h:9
DetLayer::subDetector
virtual SubDetector subDetector() const =0
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
NavigationDirection.h
GeometricSearchDet.h
DetLayer::seqNum
int seqNum() const
Definition:
DetLayer.h:35
DetLayer::~DetLayer
~DetLayer() override
Definition:
DetLayer.cc:3
GeomDetEnumerators::SubDetector
SubDetector
Definition:
GeomDetEnumerators.h:10
DetLayer::iAmBarrel
bool iAmBarrel
Definition:
DetLayer.h:48
DetLayer
Definition:
DetLayer.h:21
DetLayer::SubDetector
GeomDetEnumerators::SubDetector SubDetector
Definition:
DetLayer.h:23
DetLayer::isBarrel
bool isBarrel() const
Definition:
DetLayer.h:31
DetLayer::theSeqNum
int theSeqNum
Definition:
DetLayer.h:47
GeometricSearchDet
Definition:
GeometricSearchDet.h:17
DetLayer::DetLayer
DetLayer(bool doHaveGroup, bool ibar)
Definition:
DetLayer.h:26
NavigableLayer.h
Generated for CMSSW Reference Manual by
1.8.5