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 
14  return std::make_pair(id, CSCDetIdSameChamberCompare());
15 }
16 
17 std::pair<CSCDetId,CSCDetIdSameDetLayerCompare> CSCRangeMapForRecHit::cscDetLayer(CSCDetId id) {
18 
19  return std::make_pair(id, CSCDetIdSameDetLayerCompare());
20 }
21 
23  if (i1.chamberId() == i2.chamberId()) return false; // this removes layer bit and then uses DetId::op==
24  return (i1<i2);
25 }
26 
28  if (i1 == i2 ) return false; // use DetId::op==
29  return (i1<i2);
30 }
31 
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:53
static std::pair< CSCDetId, CSCDetIdSameDetLayerCompare > cscDetLayer(CSCDetId id)
virtual ~CSCRangeMapForRecHit()
Destructor.