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.

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

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

◆ operator<<() [2/2]

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

Definition at line 12 of file GeomDetEnumerators.cc.

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.

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 }
ME0 Data Record : block->header().getID() = 6.
Definition: Block.h:23