CMS 3D CMS Logo

List of all members | Public Member Functions
CSCDetIdSameChamberCompare Class Reference

#include <CSCRangeMapForRecHit.h>

Public Member Functions

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

Detailed Description

Definition at line 17 of file CSCRangeMapForRecHit.h.

Member Function Documentation

◆ operator()()

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

Definition at line 20 of file CSCRangeMapForRecHit.cc.

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

References testProducerWithPsetDescEmpty_cfi::i1, and testProducerWithPsetDescEmpty_cfi::i2.

testProducerWithPsetDescEmpty_cfi.i2
i2
Definition: testProducerWithPsetDescEmpty_cfi.py:46
testProducerWithPsetDescEmpty_cfi.i1
i1
Definition: testProducerWithPsetDescEmpty_cfi.py:45