CMS 3D CMS Logo

Functions
GeomDetEnumerators.cc File Reference
#include "Geometry/CommonTopologies/interface/GeomDetEnumerators.h"
#include <ostream>

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  s,
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,
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.

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
GeomDetEnumerators::TimingEndcap
Definition: GeomDetEnumerators.h:30
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:193
SectorBuilder_Tid_cff.TID
TID
Definition: SectorBuilder_Tid_cff.py:16
GeomDetEnumerators::GEM
Definition: GeomDetEnumerators.h:21
GeomDetEnumerators::PixelEndcap
Definition: GeomDetEnumerators.h:12
GeomDetEnumerators::RPCBarrel
Definition: GeomDetEnumerators.h:19
GeomDetEnumerators::P2PXB
Definition: GeomDetEnumerators.h:27
GeomDetEnumerators::ME0
Definition: GeomDetEnumerators.h:22
SectorBuilder_Tob_cff.TOB
TOB
Definition: SectorBuilder_Tob_cff.py:16
GeomDetEnumerators::P2PXEC
Definition: GeomDetEnumerators.h:28