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
(
const
GeomDetEnumerators::SubDetector
m);
23
bool
isTrackerStrip
(
const
GeomDetEnumerators::SubDetector
m);
24
bool
isTracker
(
const
GeomDetEnumerators::SubDetector
m);
25
bool
isDT
(
const
GeomDetEnumerators::SubDetector
m);
26
bool
isCSC
(
const
GeomDetEnumerators::SubDetector
m);
27
bool
isRPC
(
const
GeomDetEnumerators::SubDetector
m);
28
bool
isGEM
(
const
GeomDetEnumerators::SubDetector
m);
29
bool
isME0
(
const
GeomDetEnumerators::SubDetector
m);
30
bool
isMuon
(
const
GeomDetEnumerators::SubDetector
m);
31
bool
isTiming
(
const
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::isTracker
bool isTracker(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:59
GeomDetEnumerators::TimingBarrel
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::endcap
Definition:
GeomDetEnumerators.h:10
GeomDetEnumerators::isGEM
bool isGEM(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:81
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:91
GeomDetEnumerators::CSC
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isRPC
bool isRPC(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:76
GeomDetEnumerators::isDT
bool isDT(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:65
GeomDetEnumerators::invalidLoc
Definition:
GeomDetEnumerators.h:10
GeomDetEnumerators::P1PXB
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::TOB
Definition:
GeomDetEnumerators.h:11
constexpr
#define constexpr
GeomDetEnumerators::TIB
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::invalidDet
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isTrackerStrip
bool isTrackerStrip(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:46
GeomDetEnumerators::subDetId
unsigned int subDetId[21]
Definition:
GeomDetEnumerators.h:13
GeomDetEnumerators::GEM
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::SubDetector
SubDetector
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators
Definition:
GeomDetEnumerators.h:9
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::TimingEndcap
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::TEC
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isMuon
bool isMuon(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:92
operator<<
std::ostream & operator<<(std::ostream &s, GeomDetEnumerators::Location l)
Definition:
GeomDetEnumerators.cc:5
GeomDetEnumerators::isME0
bool isME0(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:86
GeomDetEnumerators::PixelBarrel
Definition:
GeomDetEnumerators.h:11
funct::m
m
Definition:
Factorize.h:54
GCC11Compatibility.h
GeomDetEnumerators::isTrackerPixel
bool isTrackerPixel(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:52
GeomDetEnumerators::PixelEndcap
Definition:
GeomDetEnumerators.h:11
checklumidiff.l
l
Definition:
checklumidiff.py:65
GeomDetEnumerators::RPCEndcap
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isCSC
bool isCSC(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:70
GeomDetEnumerators::P1PXEC
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::P2OTB
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::DT
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isTiming
bool isTiming(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:97
GeomDetEnumerators::barrel
Definition:
GeomDetEnumerators.h:10
GeomDetEnumerators::P2OTEC
Definition:
GeomDetEnumerators.h:11
Generated for CMSSW Reference Manual by
1.8.11