CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/RecoLocalMuon/CSCRecHitD/src/CSCRangeMapForRecHit.cc

Go to the documentation of this file.
00001 
00006 #include <RecoLocalMuon/CSCRecHitD/src/CSCRangeMapForRecHit.h>
00007 
00008 CSCRangeMapForRecHit::CSCRangeMapForRecHit() {}
00009 
00010 CSCRangeMapForRecHit::~CSCRangeMapForRecHit() {}
00011 
00012 std::pair<CSCDetId,CSCDetIdSameChamberCompare> CSCRangeMapForRecHit::cscChamber(CSCDetId id) {
00013   
00014   return std::make_pair(id, CSCDetIdSameChamberCompare());
00015 }
00016 
00017 std::pair<CSCDetId,CSCDetIdSameDetLayerCompare> CSCRangeMapForRecHit::cscDetLayer(CSCDetId id) {
00018   
00019   return std::make_pair(id, CSCDetIdSameDetLayerCompare());
00020 }
00021 
00022 bool CSCDetIdSameChamberCompare::operator()(CSCDetId i1, CSCDetId i2) const {
00023   if (i1.chamberId() == i2.chamberId()) return false; // this removes layer bit and then uses DetId::op==
00024   return (i1<i2);
00025 }
00026 
00027 bool CSCDetIdSameDetLayerCompare::operator()(CSCDetId i1, CSCDetId i2) const {
00028   if (i1 == i2 ) return false; // use DetId::op==
00029   return (i1<i2);
00030 }
00031