Main Page
Namespaces
Classes
Package Documentation
Geometry
CommonDetUnit
interface
GeomDetEnumerators.h
Go to the documentation of this file.
1
#ifndef _COMMONDETUNIT_GEOMDETENUMERATORS_H_
2
#define _COMMONDETUNIT_GEOMDETENUMERATORS_H_
3
4
#include "
FWCore/Utilities/interface/GCC11Compatibility.h
"
5
#include <iosfwd>
6
9
namespace
GeomDetEnumerators
{
10
enum
Location
{
barrel
,
endcap
,
invalidLoc
};
11
enum
SubDetector
{
12
PixelBarrel
,
13
PixelEndcap
,
14
TIB
,
15
TOB
,
16
TID
,
17
TEC
,
18
CSC
,
19
DT
,
20
RPCBarrel
,
21
RPCEndcap
,
22
GEM
,
23
ME0
,
24
P2OTB
,
25
P2OTEC
,
26
P1PXB
,
27
P1PXEC
,
28
P2PXB
,
29
P2PXEC
,
30
TimingBarrel
,
31
TimingEndcap
,
32
invalidDet
33
};
34
// gives subdetId in DetId conrrepsonding to the above
35
constexpr
unsigned
int
subDetId
[21] = {1, 2, 3, 5, 4, 6, 0, 0, 0, 0, 0,
36
0, 5, 4, 1, 2, 1, 2, 2, 2, 0};
// don't ask, don't ask, simply do not ask!
37
//inverse (only for tracker)
38
constexpr
SubDetector
tkDetEnum
[8] = {
39
invalidDet
,
PixelBarrel
,
PixelEndcap
,
TIB
,
TID
,
TOB
,
TEC
,
invalidDet
};
// don't ask, don't ask, simply do not ask!
40
//to convert a physical subdetector (it could be larger than 5) into a geometry subdetector (between 0 and 5). ONLY for tracker
41
constexpr
SubDetector
subDetGeom
[21] = {
PixelBarrel
,
PixelEndcap
,
TIB
,
TOB
,
TID
,
TEC
,
42
invalidDet
,
invalidDet
,
invalidDet
,
invalidDet
,
invalidDet
,
invalidDet
,
43
TOB
,
TID
,
PixelBarrel
,
PixelEndcap
,
PixelBarrel
,
PixelEndcap
,
44
invalidDet
,
invalidDet
, invalidDet};
45
46
bool
isBarrel
(
GeomDetEnumerators::SubDetector
m
);
47
bool
isEndcap
(
GeomDetEnumerators::SubDetector
m);
48
49
bool
isTrackerPixel
(
GeomDetEnumerators::SubDetector
m);
50
bool
isTrackerStrip
(
GeomDetEnumerators::SubDetector
m);
51
bool
isTracker
(
GeomDetEnumerators::SubDetector
m);
52
bool
isInnerTracker
(
GeomDetEnumerators::SubDetector
m);
53
bool
isOuterTracker
(
GeomDetEnumerators::SubDetector
m);
54
55
bool
isDT
(
GeomDetEnumerators::SubDetector
m);
56
bool
isCSC
(
GeomDetEnumerators::SubDetector
m);
57
bool
isRPC
(
GeomDetEnumerators::SubDetector
m);
58
bool
isGEM
(
GeomDetEnumerators::SubDetector
m);
59
bool
isME0
(
GeomDetEnumerators::SubDetector
m);
60
bool
isMuon
(
GeomDetEnumerators::SubDetector
m);
61
bool
isTiming
(
GeomDetEnumerators::SubDetector
m);
62
63
}
// namespace GeomDetEnumerators
64
65
/* overload << for correct output of the enumerators
66
* (e.g. to get "barrel" instead of "0")
67
*/
68
std::ostream&
operator<<
(std::ostream&
s
,
GeomDetEnumerators::Location
l
);
69
std::ostream&
operator<<
(std::ostream&
s
,
GeomDetEnumerators::SubDetector
m
);
70
71
#endif
GeomDetEnumerators::isOuterTracker
bool isOuterTracker(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:78
GeomDetEnumerators::TimingBarrel
Definition:
GeomDetEnumerators.h:30
GeomDetEnumerators::endcap
Definition:
GeomDetEnumerators.h:10
GeomDetEnumerators::ME0
Definition:
GeomDetEnumerators.h:23
GeomDetEnumerators::TID
Definition:
GeomDetEnumerators.h:16
GeomDetEnumerators::isBarrel
bool isBarrel(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:57
GeomDetEnumerators::Location
Location
Definition:
GeomDetEnumerators.h:10
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
GeomDetEnumerators::CSC
Definition:
GeomDetEnumerators.h:18
GeomDetEnumerators::isME0
bool isME0(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:96
GeomDetEnumerators::invalidLoc
Definition:
GeomDetEnumerators.h:10
GeomDetEnumerators::P1PXB
Definition:
GeomDetEnumerators.h:26
GeomDetEnumerators::TOB
Definition:
GeomDetEnumerators.h:15
GeomDetEnumerators::isDT
bool isDT(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:86
GeomDetEnumerators::TIB
Definition:
GeomDetEnumerators.h:14
GeomDetEnumerators::invalidDet
Definition:
GeomDetEnumerators.h:32
GeomDetEnumerators::subDetId
unsigned int subDetId[21]
Definition:
GeomDetEnumerators.h:35
GeomDetEnumerators::GEM
Definition:
GeomDetEnumerators.h:22
GeomDetEnumerators::isTiming
bool isTiming(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:102
GeomDetEnumerators::SubDetector
SubDetector
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators
Definition:
GeomDetEnumerators.h:9
visualization-live-secondInstance_cfg.m
m
Definition:
visualization-live-secondInstance_cfg.py:60
GeomDetEnumerators::isGEM
bool isGEM(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:94
GeomDetEnumerators::RPCBarrel
Definition:
GeomDetEnumerators.h:20
GeomDetEnumerators::P2PXB
Definition:
GeomDetEnumerators.h:28
GeomDetEnumerators::subDetGeom
SubDetector subDetGeom[21]
Definition:
GeomDetEnumerators.h:41
cmsLHEtoEOSManager.l
l
Definition:
cmsLHEtoEOSManager.py:193
GeomDetEnumerators::tkDetEnum
SubDetector tkDetEnum[8]
Definition:
GeomDetEnumerators.h:38
GeomDetEnumerators::isEndcap
bool isEndcap(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:62
GeomDetEnumerators::P2PXEC
Definition:
GeomDetEnumerators.h:29
GeomDetEnumerators::isTrackerStrip
bool isTrackerStrip(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:64
GeomDetEnumerators::TimingEndcap
Definition:
GeomDetEnumerators.h:31
GeomDetEnumerators::isMuon
bool isMuon(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:98
GeomDetEnumerators::TEC
Definition:
GeomDetEnumerators.h:17
GeomDetEnumerators::isRPC
bool isRPC(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:90
operator<<
std::ostream & operator<<(std::ostream &s, GeomDetEnumerators::Location l)
Definition:
GeomDetEnumerators.cc:5
GeomDetEnumerators::PixelBarrel
Definition:
GeomDetEnumerators.h:12
GCC11Compatibility.h
GeomDetEnumerators::PixelEndcap
Definition:
GeomDetEnumerators.h:13
GeomDetEnumerators::isInnerTracker
bool isInnerTracker(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:73
GeomDetEnumerators::isCSC
bool isCSC(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:88
GeomDetEnumerators::RPCEndcap
Definition:
GeomDetEnumerators.h:21
GeomDetEnumerators::isTracker
bool isTracker(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:82
GeomDetEnumerators::P1PXEC
Definition:
GeomDetEnumerators.h:27
GeomDetEnumerators::P2OTB
Definition:
GeomDetEnumerators.h:24
GeomDetEnumerators::isTrackerPixel
bool isTrackerPixel(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:68
GeomDetEnumerators::DT
Definition:
GeomDetEnumerators.h:19
constexpr
#define constexpr
Definition:
GCC11Compatibility.h:35
GeomDetEnumerators::barrel
Definition:
GeomDetEnumerators.h:10
GeomDetEnumerators::P2OTEC
Definition:
GeomDetEnumerators.h:25
Generated for CMSSW Reference Manual by
1.8.11