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 12 of file TrackingLayer.h.

Constructor & Destructor Documentation

TrackingLayer::hashfct::hashfct ( )
inline

Definition at line 14 of file TrackingLayer.h.

14 { };

Member Function Documentation

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

Definition at line 16 of file TrackingLayer.h.

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

17  {
18  return (layerSpec.getSubDetNumber() * 10000
19  + layerSpec.getLayerNumber() * 100
20  + layerSpec.getSideNumber() + 1);
21  }
unsigned int getSubDetNumber() const
Definition: TrackingLayer.h:75
unsigned int getLayerNumber() const
Definition: TrackingLayer.h:85
unsigned int getSideNumber() const
Definition: TrackingLayer.h:80