Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
,
P2PXEC
,
invalidDet
};
12
// gives subdetId in DetId conrrepsonding to the above
13
constexpr
unsigned
int
subDetId
[18]={1,2,3,5,4,6, 0, 0,0,0,0,0,5,4,1,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
[18]={
PixelBarrel
,
PixelEndcap
,
TIB
,
TOB
,
TID
,
TEC
,
invalidDet
,
invalidDet
,
invalidDet
,
invalidDet
,
invalidDet
,
invalidDet
,
TOB
,
TID
,
PixelBarrel
,
PixelEndcap
,
PixelEndcap
, 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
32
}
33
34
/* overload << for correct output of the enumerators
35
* (e.g. to get "barrel" instead of "0")
36
*/
37
std::ostream&
operator<<
( std::ostream&
s
,
GeomDetEnumerators::Location
l
);
38
std::ostream&
operator<<
( std::ostream&
s
,
GeomDetEnumerators::SubDetector
m
);
39
40
41
#endif
GeomDetEnumerators::isTracker
bool isTracker(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:56
GeomDetEnumerators::endcap
Definition:
GeomDetEnumerators.h:10
GeomDetEnumerators::isGEM
bool isGEM(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:78
GeomDetEnumerators::ME0
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::TID
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isBarrel
bool isBarrel(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:32
GeomDetEnumerators::Location
Location
Definition:
GeomDetEnumerators.h:10
GeomDetEnumerators::CSC
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isRPC
bool isRPC(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:73
GeomDetEnumerators::isDT
bool isDT(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:62
GeomDetEnumerators::invalidLoc
Definition:
GeomDetEnumerators.h:10
GeomDetEnumerators::P1PXB
Definition:
GeomDetEnumerators.h:11
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
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:43
visualization-live-secondInstance_cfg.m
tuple m
Definition:
visualization-live-secondInstance_cfg.py:45
GeomDetEnumerators::GEM
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::subDetId
unsigned int subDetId[18]
Definition:
GeomDetEnumerators.h:13
GeomDetEnumerators::SubDetector
SubDetector
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::RPCBarrel
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::tkDetEnum
SubDetector tkDetEnum[8]
Definition:
GeomDetEnumerators.h:15
GeomDetEnumerators::isEndcap
bool isEndcap(GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:37
GeomDetEnumerators::P2PXEC
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::TEC
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isMuon
bool isMuon(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:89
GeomDetEnumerators::subDetGeom
SubDetector subDetGeom[18]
Definition:
GeomDetEnumerators.h:17
GeomDetEnumerators::isME0
bool isME0(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:83
prof2calltree.l
tuple l
Definition:
prof2calltree.py:116
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
GeomDetEnumerators::PixelBarrel
Definition:
GeomDetEnumerators.h:11
GCC11Compatibility.h
GeomDetEnumerators::isTrackerPixel
bool isTrackerPixel(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:49
GeomDetEnumerators::PixelEndcap
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::RPCEndcap
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::isCSC
bool isCSC(const GeomDetEnumerators::SubDetector m)
Definition:
GeomDetEnumerators.cc:67
GeomDetEnumerators::P1PXEC
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::P2OTB
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::DT
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::barrel
Definition:
GeomDetEnumerators.h:10
GeomDetEnumerators::P2OTEC
Definition:
GeomDetEnumerators.h:11
Generated for CMSSW Reference Manual by
1.8.5