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
{
PixelBarrel
,
PixelEndcap
,
TIB
,
TOB
,
TID
,
TEC
,
CSC
,
DT
,
RPCBarrel
,
RPCEndcap
,
GEM
,
ME0
,
P2OTB
,
P2OTEC
,
P1PXB
,
P1PXEC
,
P2PXB
,
P2PXEC
,
TimingBarrel
,
TimingEndcap
,
invalidDet
};
12
// gives subdetId in DetId conrrepsonding to the above
13
constexpr
unsigned
int
subDetId
[21]={1,2,3,5,4,6, 0, 0,0,0,0,0,5,4,1,2,1,2, 2,2, 0};
// don't ask, don't ask, simply do not ask!
14
//inverse (only for tracker)
15
constexpr
SubDetector
tkDetEnum
[8]={
invalidDet
,
PixelBarrel
,
PixelEndcap
,
TIB
,
TID
,
TOB
,
TEC
, invalidDet};
// don't ask, don't ask, simply do not ask!
16
//to convert a physical subdetector (it could be larger than 5) into a geometry subdetector (between 0 and 5). ONLY for tracker
17
constexpr
SubDetector
subDetGeom
[21]={
PixelBarrel
,
PixelEndcap
,
TIB
,
TOB
,
TID
,
TEC
,
invalidDet
,
invalidDet
,
invalidDet
,
invalidDet
,
invalidDet
,
invalidDet
,
TOB
,
TID
,
PixelBarrel
,
PixelEndcap
,
PixelBarrel
,
PixelEndcap
,
invalidDet
,
invalidDet
, invalidDet};
18
19
bool
isBarrel
(
GeomDetEnumerators::SubDetector
m
);
20
bool
isEndcap
(
GeomDetEnumerators::SubDetector
m);
21
22
bool
isTrackerPixel
(
GeomDetEnumerators::SubDetector
m);
23
bool
isTrackerStrip
(
GeomDetEnumerators::SubDetector
m);
24
bool
isTracker
(
GeomDetEnumerators::SubDetector
m);
25
bool
isDT
(
GeomDetEnumerators::SubDetector
m);
26
bool
isCSC
(
GeomDetEnumerators::SubDetector
m);
27
bool
isRPC
(
GeomDetEnumerators::SubDetector
m);
28
bool
isGEM
(
GeomDetEnumerators::SubDetector
m);
29
bool
isME0
(
GeomDetEnumerators::SubDetector
m);
30
bool
isMuon
(
GeomDetEnumerators::SubDetector
m);
31
bool
isTiming
(
GeomDetEnumerators::SubDetector
m);
32
33
}
34
35
/* overload << for correct output of the enumerators
36
* (e.g. to get "barrel" instead of "0")
37
*/
38
std::ostream&
operator<<
( std::ostream&
s
,
GeomDetEnumerators::Location
l
);
39
std::ostream&
operator<<
( std::ostream&
s
,
GeomDetEnumerators::SubDetector
m
);
40
41
42
#endif
GeomDetEnumerators::TimingBarrel
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::endcap
Definition:
GeomDetEnumerators.h:10
GeomDetEnumerators::ME0
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::TID
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isBarrel
bool isBarrel(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:35
GeomDetEnumerators::Location
Location
Definition:
GeomDetEnumerators.h:10
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
GeomDetEnumerators::CSC
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isME0
bool isME0(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:86
GeomDetEnumerators::invalidLoc
Definition:
GeomDetEnumerators.h:10
GeomDetEnumerators::P1PXB
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::TOB
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isDT
bool isDT(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:65
GeomDetEnumerators::TIB
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::invalidDet
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::subDetId
unsigned int subDetId[21]
Definition:
GeomDetEnumerators.h:13
GeomDetEnumerators::GEM
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isTiming
bool isTiming(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:97
GeomDetEnumerators::SubDetector
SubDetector
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators
Definition:
GeomDetEnumerators.h:9
GeomDetEnumerators::isGEM
bool isGEM(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:81
GeomDetEnumerators::RPCBarrel
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::P2PXB
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::subDetGeom
SubDetector subDetGeom[21]
Definition:
GeomDetEnumerators.h:17
GeomDetEnumerators::tkDetEnum
SubDetector tkDetEnum[8]
Definition:
GeomDetEnumerators.h:15
GeomDetEnumerators::isEndcap
bool isEndcap(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:40
GeomDetEnumerators::P2PXEC
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isTrackerStrip
bool isTrackerStrip(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:46
GeomDetEnumerators::TimingEndcap
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isMuon
bool isMuon(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:92
GeomDetEnumerators::TEC
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isRPC
bool isRPC(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:76
operator<<
std::ostream & operator<<(std::ostream &s, GeomDetEnumerators::Location l)
Definition:
GeomDetEnumerators.cc:5
GeomDetEnumerators::PixelBarrel
Definition:
GeomDetEnumerators.h:11
funct::m
m
Definition:
Factorize.h:56
GCC11Compatibility.h
GeomDetEnumerators::PixelEndcap
Definition:
GeomDetEnumerators.h:11
checklumidiff.l
l
Definition:
checklumidiff.py:65
GeomDetEnumerators::isCSC
bool isCSC(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:70
GeomDetEnumerators::RPCEndcap
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isTracker
bool isTracker(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:59
GeomDetEnumerators::P1PXEC
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::P2OTB
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isTrackerPixel
bool isTrackerPixel(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:52
GeomDetEnumerators::DT
Definition:
GeomDetEnumerators.h:11
constexpr
#define constexpr
Definition:
GCC11Compatibility.h:35
GeomDetEnumerators::barrel
Definition:
GeomDetEnumerators.h:10
GeomDetEnumerators::P2OTEC
Definition:
GeomDetEnumerators.h:11
Generated for CMSSW Reference Manual by
1.8.11