CMS 3D CMS Logo

Public Member Functions

CSCDetIdSameChamberCompare Class Reference

#include <CSCRangeMapForRecHit.h>

List of all members.

Public Member Functions

bool operator() (CSCDetId i1, CSCDetId i2) const

Detailed Description

Definition at line 17 of file CSCRangeMapForRecHit.h.


Member Function Documentation

bool CSCDetIdSameChamberCompare::operator() ( CSCDetId  i1,
CSCDetId  i2 
) const

Definition at line 22 of file CSCRangeMapForRecHit.cc.

References CSCDetId::chamberId().

                                                                          {
  if (i1.chamberId() == i2.chamberId()) return false; // this removes layer bit and then uses DetId::op==
  return (i1<i2);
}