CMS 3D CMS Logo

Namespaces | Enumerations | Functions | Variables
GeomDetEnumerators.h File Reference
#include <iosfwd>

Go to the source code of this file.

Namespaces

 GeomDetEnumerators
 

Enumerations

enum  GeomDetEnumerators::Location { GeomDetEnumerators::barrel, GeomDetEnumerators::endcap, GeomDetEnumerators::invalidLoc }
 
enum  GeomDetEnumerators::SubDetector {
  GeomDetEnumerators::PixelBarrel, GeomDetEnumerators::PixelEndcap, GeomDetEnumerators::TIB, GeomDetEnumerators::TOB,
  GeomDetEnumerators::TID, GeomDetEnumerators::TEC, GeomDetEnumerators::CSC, GeomDetEnumerators::DT,
  GeomDetEnumerators::RPCBarrel, GeomDetEnumerators::RPCEndcap, GeomDetEnumerators::GEM, GeomDetEnumerators::ME0,
  GeomDetEnumerators::P2OTB, GeomDetEnumerators::P2OTEC, GeomDetEnumerators::P1PXB, GeomDetEnumerators::P1PXEC,
  GeomDetEnumerators::P2PXB, GeomDetEnumerators::P2PXEC, GeomDetEnumerators::TimingBarrel, GeomDetEnumerators::TimingEndcap,
  GeomDetEnumerators::invalidDet
}
 

Functions

bool GeomDetEnumerators::isBarrel (GeomDetEnumerators::SubDetector m)
 
bool GeomDetEnumerators::isCSC (GeomDetEnumerators::SubDetector m)
 
bool GeomDetEnumerators::isDT (GeomDetEnumerators::SubDetector m)
 
bool GeomDetEnumerators::isEndcap (GeomDetEnumerators::SubDetector m)
 
bool GeomDetEnumerators::isGEM (GeomDetEnumerators::SubDetector m)
 
bool GeomDetEnumerators::isInnerTracker (GeomDetEnumerators::SubDetector m)
 
bool GeomDetEnumerators::isME0 (GeomDetEnumerators::SubDetector m)
 
bool GeomDetEnumerators::isMuon (GeomDetEnumerators::SubDetector m)
 
bool GeomDetEnumerators::isOuterTracker (GeomDetEnumerators::SubDetector m)
 
bool GeomDetEnumerators::isRPC (GeomDetEnumerators::SubDetector m)
 
bool GeomDetEnumerators::isTiming (GeomDetEnumerators::SubDetector m)
 
bool GeomDetEnumerators::isTracker (GeomDetEnumerators::SubDetector m)
 
bool GeomDetEnumerators::isTrackerPixel (GeomDetEnumerators::SubDetector m)
 
bool GeomDetEnumerators::isTrackerStrip (GeomDetEnumerators::SubDetector m)
 
std::ostream & operator<< (std::ostream &s, GeomDetEnumerators::Location l)
 
std::ostream & operator<< (std::ostream &s, GeomDetEnumerators::SubDetector m)
 

Variables

constexpr SubDetector GeomDetEnumerators::subDetGeom [21]
 
constexpr unsigned int GeomDetEnumerators::subDetId [21]
 
constexpr SubDetector GeomDetEnumerators::tkDetEnum [8]
 

Function Documentation

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  s,
GeomDetEnumerators::Location  l 
)

Definition at line 5 of file GeomDetEnumerators.cc.

5  {
6  if (l == barrel)
7  return s << "barrel";
8  else
9  return s << "endcap";
10 }

References GeomDetEnumerators::barrel, cmsLHEtoEOSManager::l, and alignCSCRings::s.

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  s,
GeomDetEnumerators::SubDetector  m 
)

Definition at line 12 of file GeomDetEnumerators.cc.

12  {
13  if (m == PixelBarrel)
14  return s << "PixelBarrel";
15  else if (m == PixelEndcap)
16  return s << "PixelEndcap";
17  else if (m == TIB)
18  return s << "TIB";
19  else if (m == TOB)
20  return s << "TOB";
21  else if (m == TID)
22  return s << "TID";
23  else if (m == TEC)
24  return s << "TEC";
25  else if (m == DT)
26  return s << "DT";
27  else if (m == CSC)
28  return s << "CSC";
29  else if (m == RPCBarrel)
30  return s << "RPCBarrel";
31  else if (m == RPCEndcap)
32  return s << "RPCEndcap";
33  else if (m == GEM)
34  return s << "GEM";
35  else if (m == ME0)
36  return s << "ME0";
37  else if (m == P2OTB)
38  return s << "Phase2OTBarrel";
39  else if (m == P2OTEC)
40  return s << "Phase2OTEndcap";
41  else if (m == P1PXB)
42  return s << "Phase1PixelBarrel";
43  else if (m == P2PXB)
44  return s << "Phase2PixelBarrel";
45  else if (m == P1PXEC)
46  return s << "Phase1PixelEndcap";
47  else if (m == P2PXEC)
48  return s << "Phase2PixelEndcap";
49  else if (m == TimingBarrel)
50  return s << "Phase2TimingBarrel";
51  else if (m == TimingEndcap)
52  return s << "Phase2TimingEndcap";
53  else
54  return s << "?";
55 }

References GeomDetEnumerators::CSC, GeomDetEnumerators::DT, GeomDetEnumerators::GEM, visualization-live-secondInstance_cfg::m, GeomDetEnumerators::ME0, GeomDetEnumerators::P1PXB, GeomDetEnumerators::P1PXEC, GeomDetEnumerators::P2OTB, GeomDetEnumerators::P2OTEC, GeomDetEnumerators::P2PXB, GeomDetEnumerators::P2PXEC, GeomDetEnumerators::PixelBarrel, GeomDetEnumerators::PixelEndcap, GeomDetEnumerators::RPCBarrel, GeomDetEnumerators::RPCEndcap, alignCSCRings::s, GeomDetEnumerators::TEC, GeomDetEnumerators::TIB, GeomDetEnumerators::TID, GeomDetEnumerators::TimingBarrel, GeomDetEnumerators::TimingEndcap, and GeomDetEnumerators::TOB.

l1t::mtf7::ME0
ME0 Data Record : block->header().getID() = 6.
Definition: Block.h:23
SectorBuilder_Tib_cff.TIB
TIB
Definition: SectorBuilder_Tib_cff.py:16
Reference_intrackfit_cff.barrel
list barrel
Definition: Reference_intrackfit_cff.py:37
GeomDetEnumerators::RPCEndcap
Definition: GeomDetEnumerators.h:20
SectorBuilder_Tec_cff.TEC
TEC
Definition: SectorBuilder_Tec_cff.py:16
GeomDetEnumerators::P2OTB
Definition: GeomDetEnumerators.h:23
GeomDetEnumerators::PixelBarrel
Definition: GeomDetEnumerators.h:11
alignCSCRings.s
s
Definition: alignCSCRings.py:92
GeomDetEnumerators::P1PXEC
Definition: GeomDetEnumerators.h:26
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
GeomDetEnumerators::TimingBarrel
Definition: GeomDetEnumerators.h:29
GeomDetEnumerators::P2OTEC
Definition: GeomDetEnumerators.h:24
GeomDetEnumerators::CSC
Definition: GeomDetEnumerators.h:17
GeomDetEnumerators::P1PXB
Definition: GeomDetEnumerators.h:25
GeomDetEnumerators::DT
Definition: GeomDetEnumerators.h:18
l1t::mtf7::GEM
GEM Data Record : block->header().getID() = 7.
Definition: Block.h:21
GeomDetEnumerators::TimingEndcap
Definition: GeomDetEnumerators.h:30
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:204
SectorBuilder_Tid_cff.TID
TID
Definition: SectorBuilder_Tid_cff.py:16
GeomDetEnumerators::PixelEndcap
Definition: GeomDetEnumerators.h:12
GeomDetEnumerators::RPCBarrel
Definition: GeomDetEnumerators.h:19
GeomDetEnumerators::P2PXB
Definition: GeomDetEnumerators.h:27
SectorBuilder_Tob_cff.TOB
TOB
Definition: SectorBuilder_Tob_cff.py:16
GeomDetEnumerators::P2PXEC
Definition: GeomDetEnumerators.h:28