CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
TrackingLayer Class Reference

#include <TrackingLayer.h>

Classes

struct  eqfct
 
struct  hashfct
 

Public Types

enum  Det {
  Det::UNKNOWN, Det::PXB, Det::PXD, Det::TIB,
  Det::TID, Det::TOB, Det::TEC
}
 
enum  Side { Side::BARREL, Side::NEG_ENDCAP, Side::POS_ENDCAP }
 

Public Member Functions

unsigned int getLayerNumber () const
 
TrackingLayer::Side getSide () const
 
unsigned int getSideNumber () const
 
TrackingLayer::Det getSubDet () const
 
unsigned int getSubDetNumber () const
 
bool operator!= (const TrackingLayer &layer) const
 
bool operator< (const TrackingLayer &layer) const
 
bool operator== (const TrackingLayer &layer) const
 
std::string toIdString () const
 
std::string toString () const
 
 TrackingLayer ()
 

Static Public Member Functions

static TrackingLayer createFromDetId (const DetId &detId, const TrackerTopology &trackerTopology)
 
static TrackingLayer createFromString (std::string layerSpecification)
 

Public Attributes

unsigned int _layerNumber
 
Side _side
 
Det _subDet
 

Static Public Attributes

static const eqfct _eqfct
 
static const hashfct _hashfct
 

Detailed Description

Definition at line 9 of file TrackingLayer.h.

Member Enumeration Documentation

enum TrackingLayer::Det
strong
Enumerator
UNKNOWN 
PXB 
PXD 
TIB 
TID 
TOB 
TEC 

Definition at line 36 of file TrackingLayer.h.

36  {
37  UNKNOWN,
38  PXB, //pixel barrel
39  PXD, //pixel disk
40  TIB, //tracker inner barrel
41  TID, //tracker inner disk
42  TOB, //tracker outer barrel
43  TEC //tracker endcap
44  };
0: Unidentified isolated particle
Definition: ParticleCode.h:19
enum TrackingLayer::Side
strong
Enumerator
BARREL 
NEG_ENDCAP 
POS_ENDCAP 

Definition at line 45 of file TrackingLayer.h.

45  {
46  BARREL, NEG_ENDCAP, POS_ENDCAP
47  };

Constructor & Destructor Documentation

TrackingLayer::TrackingLayer ( )

Definition at line 5 of file TrackingLayer.cc.

Member Function Documentation

TrackingLayer TrackingLayer::createFromDetId ( const DetId detId,
const TrackerTopology trackerTopology 
)
static

Definition at line 13 of file TrackingLayer.cc.

Referenced by TrajectorySeedHitCandidate::init().

TrackingLayer TrackingLayer::createFromString ( std::string  layerSpecification)
static

Definition at line 103 of file TrackingLayer.cc.

unsigned int TrackingLayer::getLayerNumber ( ) const
inline
TrackingLayer::Side TrackingLayer::getSide ( ) const
inline

Definition at line 70 of file TrackingLayer.h.

References _side.

71  {
72  return _side;
73  }
unsigned int TrackingLayer::getSideNumber ( ) const
inline

Definition at line 80 of file TrackingLayer.h.

References _side.

Referenced by TrackingLayer::hashfct::operator()(), and TrackingLayer::eqfct::operator()().

81  {
82  return static_cast<unsigned int>(_side);
83  }
TrackingLayer::Det TrackingLayer::getSubDet ( ) const
inline

Definition at line 65 of file TrackingLayer.h.

References _subDet.

66  {
67  return _subDet;
68  }
unsigned int TrackingLayer::getSubDetNumber ( ) const
inline

Definition at line 75 of file TrackingLayer.h.

References _subDet.

Referenced by TrackingLayer::hashfct::operator()(), TrackingLayer::eqfct::operator()(), and TrajectorySeedHitCandidate::subDetId().

76  {
77  return static_cast<unsigned int>(_subDet);
78  }
bool TrackingLayer::operator!= ( const TrackingLayer layer) const
inline

Definition at line 95 of file TrackingLayer.h.

References _eqfct.

96  {
97  return not _eqfct(*this, layer);
98  }
static const eqfct _eqfct
Definition: TrackingLayer.h:52
bool TrackingLayer::operator< ( const TrackingLayer layer) const
inline

Definition at line 100 of file TrackingLayer.h.

References _hashfct.

101  {
102  return _hashfct(*this)<_hashfct(layer);
103  }
static const hashfct _hashfct
Definition: TrackingLayer.h:53
bool TrackingLayer::operator== ( const TrackingLayer layer) const
inline

Definition at line 90 of file TrackingLayer.h.

References _eqfct.

91  {
92  return _eqfct(*this, layer);
93  }
static const eqfct _eqfct
Definition: TrackingLayer.h:52
std::string TrackingLayer::toIdString ( ) const

Definition at line 284 of file TrackingLayer.cc.

std::string TrackingLayer::toString ( ) const

Definition at line 241 of file TrackingLayer.cc.

Member Data Documentation

const TrackingLayer::eqfct TrackingLayer::_eqfct
static

Definition at line 52 of file TrackingLayer.h.

Referenced by operator!=(), and operator==().

const hashfct TrackingLayer::_hashfct
static

Definition at line 53 of file TrackingLayer.h.

Referenced by operator<().

unsigned int TrackingLayer::_layerNumber

Definition at line 54 of file TrackingLayer.h.

Referenced by getLayerNumber().

Side TrackingLayer::_side

Definition at line 51 of file TrackingLayer.h.

Referenced by getSide(), and getSideNumber().

Det TrackingLayer::_subDet

Definition at line 50 of file TrackingLayer.h.

Referenced by getSubDet(), and getSubDetNumber().