Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Geometry
CommonDetUnit
src
GeomDetType.cc
Go to the documentation of this file.
1
#include "
Geometry/CommonDetUnit/interface/GeomDetType.h
"
2
3
using namespace
GeomDetEnumerators;
4
5
GeomDetType::GeomDetType
(
const
std::string&
n
,
SubDetector
subdet) :
6
theName(n), theSubDet(subdet) {}
7
8
9
GeomDetType::~GeomDetType
()
10
{}
11
12
13
bool
GeomDetType::isBarrel
()
const
14
{
15
return
(
theSubDet
==
PixelBarrel
||
theSubDet
==
TIB
||
theSubDet
==
TOB
||
isDT
() ||
theSubDet
==
RPCBarrel
);
16
}
17
18
bool
GeomDetType::isEndcap
()
const
19
{
20
return
(!
isBarrel
());
21
}
22
23
24
bool
GeomDetType::isTrackerStrip
()
const
25
{
26
return
(
theSubDet
==
TIB
||
theSubDet
==
TOB
||
27
theSubDet
==
TID
||
theSubDet
==
TEC
);
28
}
29
30
bool
GeomDetType::isTrackerPixel
()
const
31
{
32
return
(
theSubDet
==
PixelBarrel
||
theSubDet
==
PixelEndcap
);
33
}
34
35
bool
GeomDetType::isTracker
()
const
36
{
37
return
(
isTrackerStrip
() ||
isTrackerPixel
() );
38
}
39
40
41
bool
GeomDetType::isDT
()
const
42
{
43
return
(
theSubDet
==
DT
) ;
44
}
45
46
bool
GeomDetType::isCSC
()
const
47
{
48
return
(
theSubDet
==
CSC
) ;
49
}
50
51
52
bool
GeomDetType::isRPC
()
const
53
{
54
return
(
theSubDet
==
RPCBarrel
||
theSubDet
==
RPCEndcap
) ;
55
}
56
57
bool
GeomDetType::isMuon
()
const
58
{
59
return
(
theSubDet
==
DT
||
theSubDet
==
CSC
||
isRPC
()) ;
60
}
GeomDetType::isBarrel
bool isBarrel() const
Definition:
GeomDetType.cc:13
GeomDetType::isTracker
bool isTracker() const
Definition:
GeomDetType.cc:35
GeomDetType::isEndcap
bool isEndcap() const
Definition:
GeomDetType.cc:18
sistripsummary::TID
Definition:
SiStripSummary.h:22
sistripsummary::TOB
Definition:
SiStripSummary.h:20
GeomDetType::isTrackerStrip
bool isTrackerStrip() const
Definition:
GeomDetType.cc:24
GeomDetType::isMuon
bool isMuon() const
Definition:
GeomDetType.cc:57
GeomDetType::isDT
bool isDT() const
Definition:
GeomDetType.cc:41
GeomDetType.h
GeomDetType::theSubDet
SubDetector theSubDet
Definition:
GeomDetType.h:38
GeomDetEnumerators::SubDetector
SubDetector
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::RPCBarrel
Definition:
GeomDetEnumerators.h:11
GeomDetType::isTrackerPixel
bool isTrackerPixel() const
Definition:
GeomDetType.cc:30
GeomDetType::isCSC
bool isCSC() const
Definition:
GeomDetType.cc:46
GeomDetType::isRPC
bool isRPC() const
Definition:
GeomDetType.cc:52
GeomDetType::GeomDetType
GeomDetType(const std::string &name, SubDetector subdet)
Definition:
GeomDetType.cc:5
n
int n
Definition:
DTDataIntegrityTask.cc:33
GeomDetEnumerators::PixelBarrel
Definition:
GeomDetEnumerators.h:11
CSC
</a ></td >< td >< ahref="RecoLocalMuon_CSCRecHit.html"> csc2DRecHits</a ></td >< tdclass="description"> CSC(x, y) rechits</td >< td >T.Cox</td ></tr >< tr >< td >< a href
GeomDetEnumerators::PixelEndcap
Definition:
GeomDetEnumerators.h:11
sistripsummary::TEC
Definition:
SiStripSummary.h:27
GeomDetEnumerators::RPCEndcap
Definition:
GeomDetEnumerators.h:11
GeomDetType::~GeomDetType
virtual ~GeomDetType()
Definition:
GeomDetType.cc:9
GeomDetEnumerators::DT
Definition:
GeomDetEnumerators.h:11
sistripsummary::TIB
Definition:
SiStripSummary.h:18
Generated for CMSSW Reference Manual by
1.8.5