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.

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,
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