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.

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

14  {
15  return (layerSpec.getSubDetNumber() * 10000 + layerSpec.getLayerNumber() * 100 + layerSpec.getSideNumber() + 1);
16  }
unsigned int getLayerNumber() const
Definition: TrackingLayer.h:59
unsigned int getSubDetNumber() const
Definition: TrackingLayer.h:55
unsigned int getSideNumber() const
Definition: TrackingLayer.h:57