CMS 3D CMS Logo

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

#include <TrackerLayerIdAccessor.h>

Inheritance diagram for DetIdPXFSameDiskComparator:
DetIdComparator

Public Member Functions

virtual bool operator() (uint32_t i1, uint32_t i2) const
 
- Public Member Functions inherited from DetIdComparator
bool operator() (DetId i1, DetId i2) const
 

Detailed Description

Definition at line 59 of file TrackerLayerIdAccessor.h.

Member Function Documentation

virtual bool DetIdPXFSameDiskComparator::operator() ( uint32_t  i1,
uint32_t  i2 
) const
inlinevirtual

Implements DetIdComparator.

Definition at line 61 of file TrackerLayerIdAccessor.h.

References DetId::det(), PXFDetId::disk(), PXFDetId::side(), and DetId::subdetId().

61  {
62  PXFDetId id1(i1);
63  PXFDetId id2(i2);
64  if ((id1.det() == id2.det()) &&
65  (id1.subdetId() == id2.subdetId()) &&
66  (id1.side() == id2.side()) &&
67  (id1.disk() == id2.disk())) return false;
68  return (id1<id2);
69  }