Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
,
invalidDet
};
12
// gives subdetId in DetId conrrepsonding to the above
13
constexpr
unsigned
int
subDetId
[12]={1,2,3,5,4,6, 0,0,0,0,0, 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
17
}
18
19
/* overload << for correct output of the enumerators
20
* (e.g. to get "barrel" instead of "0")
21
*/
22
std::ostream&
operator<<
( std::ostream&
s
,
GeomDetEnumerators::Location
l
);
23
std::ostream&
operator<<
( std::ostream&
s
,
GeomDetEnumerators::SubDetector
m
);
24
25
26
#endif
GeomDetEnumerators::endcap
Definition:
GeomDetEnumerators.h:10
GeomDetEnumerators::TID
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::Location
Location
Definition:
GeomDetEnumerators.h:10
GeomDetEnumerators::CSC
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::invalidLoc
Definition:
GeomDetEnumerators.h:10
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
GeomDetEnumerators::TOB
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::TIB
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::invalidDet
Definition:
GeomDetEnumerators.h:11
ConfigFiles.l
tuple l
Definition:
ConfigFiles.py:113
GeomDetEnumerators::GEM
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::subDetId
constexpr unsigned int subDetId[12]
Definition:
GeomDetEnumerators.h:13
GeomDetEnumerators::SubDetector
SubDetector
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::RPCBarrel
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::TEC
Definition:
GeomDetEnumerators.h:11
m
int m
Definition:
DTDataIntegrityTask.cc:30
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
GeomDetEnumerators::PixelBarrel
Definition:
GeomDetEnumerators.h:11
GCC11Compatibility.h
GeomDetEnumerators::PixelEndcap
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::RPCEndcap
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators::DT
Definition:
GeomDetEnumerators.h:11
constexpr
#define constexpr
Definition:
GCC11Compatibility.h:36
GeomDetEnumerators::tkDetEnum
constexpr SubDetector tkDetEnum[8]
Definition:
GeomDetEnumerators.h:15
GeomDetEnumerators::barrel
Definition:
GeomDetEnumerators.h:10
Generated for CMSSW Reference Manual by
1.8.5