CMS 3D CMS Logo

CSCRangeMapForRecHit.cc
Go to the documentation of this file.
1 
7 
9 
11 
12 std::pair<CSCDetId, CSCDetIdSameChamberCompare> CSCRangeMapForRecHit::cscChamber(CSCDetId id) {
13  return std::make_pair(id, CSCDetIdSameChamberCompare());
14 }
15 
16 std::pair<CSCDetId, CSCDetIdSameDetLayerCompare> CSCRangeMapForRecHit::cscDetLayer(CSCDetId id) {
17  return std::make_pair(id, CSCDetIdSameDetLayerCompare());
18 }
19 
21  if (i1.chamberId() == i2.chamberId())
22  return false; // this removes layer bit and then uses DetId::op==
23  return (i1 < i2);
24 }
25 
27  if (i1 == i2)
28  return false; // use DetId::op==
29  return (i1 < i2);
30 }
bool operator()(CSCDetId i1, CSCDetId i2) const
static std::pair< CSCDetId, CSCDetIdSameChamberCompare > cscChamber(CSCDetId id)
Returns a valid DetId + a valid comparator for the RangeMap.
bool operator()(CSCDetId i1, CSCDetId i2) const
CSCRangeMapForRecHit()
Constructor.
CSCDetId chamberId() const
Definition: CSCDetId.h:47
static std::pair< CSCDetId, CSCDetIdSameDetLayerCompare > cscDetLayer(CSCDetId id)
virtual ~CSCRangeMapForRecHit()
Destructor.