CMS 3D CMS Logo

List of all members | Public Member Functions
TrackingLayer::hashfct Struct Reference

#include <TrackingLayer.h>

Public Member Functions

 hashfct ()
 
size_t operator() (const TrackingLayer &layerSpec) const
 

Detailed Description

Definition at line 11 of file TrackingLayer.h.

Constructor & Destructor Documentation

◆ hashfct()

TrackingLayer::hashfct::hashfct ( )
inline

Definition at line 12 of file TrackingLayer.h.

12 {};

Member Function Documentation

◆ operator()()

size_t TrackingLayer::hashfct::operator() ( const TrackingLayer layerSpec) const
inline

Definition at line 14 of file TrackingLayer.h.

14  {
15  return (layerSpec.getSubDetNumber() * 10000 + layerSpec.getLayerNumber() * 100 + layerSpec.getSideNumber() + 1);
16  }

References TrackingLayer::getLayerNumber(), TrackingLayer::getSideNumber(), and TrackingLayer::getSubDetNumber().

TrackingLayer::getSideNumber
unsigned int getSideNumber() const
Definition: TrackingLayer.h:57
TrackingLayer::getSubDetNumber
unsigned int getSubDetNumber() const
Definition: TrackingLayer.h:55
TrackingLayer::getLayerNumber
unsigned int getLayerNumber() const
Definition: TrackingLayer.h:59