CMS 3D CMS Logo

Namespaces | Enumerations | Functions | Variables
GeomDetEnumerators.h File Reference
#include "FWCore/Utilities/interface/GCC11Compatibility.h"
#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::isME0 (GeomDetEnumerators::SubDetector m)
 
bool GeomDetEnumerators::isMuon (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

SubDetector GeomDetEnumerators::subDetGeom [21] ={PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, invalidDet, invalidDet, invalidDet, invalidDet, invalidDet, invalidDet, TOB, TID, PixelBarrel, PixelEndcap, PixelBarrel, PixelEndcap, invalidDet, invalidDet, invalidDet}
 
unsigned int GeomDetEnumerators::subDetId [21] ={1,2,3,5,4,6, 0, 0,0,0,0,0,5,4,1,2,1,2, 2,2, 0}
 
SubDetector GeomDetEnumerators::tkDetEnum [8] ={invalidDet, PixelBarrel, PixelEndcap, TIB, TID, TOB, TEC, invalidDet}
 

Function Documentation

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

Definition at line 5 of file GeomDetEnumerators.cc.

References GeomDetEnumerators::barrel.

5  {
6  if (l == barrel) return s << "barrel";
7  else return s << "endcap";
8 }
std::ostream& operator<< ( std::ostream &  s,
GeomDetEnumerators::SubDetector  m 
)

Definition at line 10 of file GeomDetEnumerators.cc.

References GeomDetEnumerators::CSC, GeomDetEnumerators::DT, GeomDetEnumerators::GEM, GeomDetEnumerators::ME0, GeomDetEnumerators::P1PXB, GeomDetEnumerators::P1PXEC, GeomDetEnumerators::P2OTB, GeomDetEnumerators::P2OTEC, GeomDetEnumerators::P2PXB, GeomDetEnumerators::P2PXEC, GeomDetEnumerators::PixelBarrel, GeomDetEnumerators::PixelEndcap, GeomDetEnumerators::RPCBarrel, GeomDetEnumerators::RPCEndcap, GeomDetEnumerators::TEC, GeomDetEnumerators::TIB, GeomDetEnumerators::TID, GeomDetEnumerators::TimingBarrel, GeomDetEnumerators::TimingEndcap, and GeomDetEnumerators::TOB.

10  {
11  if ( m == PixelBarrel ) return s << "PixelBarrel";
12  else if ( m == PixelEndcap ) return s << "PixelEndcap";
13  else if ( m == TIB) return s << "TIB";
14  else if (m == TOB) return s << "TOB";
15  else if (m == TID) return s << "TID";
16  else if (m == TEC) return s << "TEC";
17  else if ( m == DT ) return s << "DT";
18  else if ( m == CSC ) return s << "CSC";
19  else if ( m == RPCBarrel ) return s << "RPCBarrel";
20  else if ( m == RPCEndcap ) return s << "RPCEndcap";
21  else if ( m == GEM) return s << "GEM";
22  else if ( m == ME0 ) return s << "ME0";
23  else if ( m == P2OTB ) return s << "Phase2OTBarrel";
24  else if ( m == P2OTEC ) return s << "Phase2OTEndcap";
25  else if ( m == P1PXB ) return s << "Phase1PixelBarrel";
26  else if ( m == P2PXB ) return s << "Phase2PixelBarrel";
27  else if ( m == P1PXEC ) return s << "Phase1PixelEndcap";
28  else if ( m == P2PXEC ) return s << "Phase2PixelEndcap";
29  else if ( m == TimingBarrel ) return s << "Phase2TimingBarrel";
30  else if ( m == TimingEndcap ) return s << "Phase2TimingEndcap";
31  else return s << "?";
32 }