CMS 3D CMS Logo

Public Member Functions

DetIdPXFSameDiskComparator Class Reference

#include <TrackerLayerIdAccessor.h>

Inheritance diagram for DetIdPXFSameDiskComparator:
DetIdComparator

List of all members.

Public Member Functions

virtual bool operator() (uint32_t i1, uint32_t 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 [inline, virtual]

Implements DetIdComparator.

Definition at line 61 of file TrackerLayerIdAccessor.h.

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

                                                          {
    PXFDetId id1(i1);
    PXFDetId id2(i2);
    if ((id1.det() == id2.det()) &&
        (id1.subdetId() == id2.subdetId()) &&
        (id1.side() == id2.side()) &&
        (id1.disk() == id2.disk())) return false;
    return (id1<id2);
  }