CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/DataFormats/DTRecHit/src/DTRangeMapAccessor.cc

Go to the documentation of this file.
00001 
00008 #include "DataFormats/DTRecHit/interface/DTRangeMapAccessor.h"
00009 
00010 using namespace std;
00011 
00012 
00013 
00014 DTRangeMapAccessor::DTRangeMapAccessor(){}
00015 
00016 
00017 
00018 DTRangeMapAccessor::~DTRangeMapAccessor(){}
00019 
00020 
00021 
00022 // Access by SL objects written into a RangeMap by layer.
00023 pair<DTLayerId, DTSuperLayerIdComparator>
00024 DTRangeMapAccessor::layersBySuperLayer(DTSuperLayerId slId) {
00025   return make_pair(DTLayerId(slId,0), DTSuperLayerIdComparator());
00026 }
00027 
00028 
00029 
00030 // Access by chamber objects written into a RangeMap by layer.
00031 pair<DTLayerId, DTChamberIdComparator>
00032 DTRangeMapAccessor::layersByChamber(DTChamberId chamberId) {
00033   return make_pair(DTLayerId(chamberId,0,0), DTChamberIdComparator());
00034 }
00035 
00036 
00037 
00038 // Access by chamber objects written into a RangeMap by SL.
00039 pair<DTSuperLayerId, DTChamberIdComparator>
00040 DTRangeMapAccessor::superLayersByChamber(DTChamberId chamberId) {
00041   return make_pair(DTSuperLayerId(chamberId,0), DTChamberIdComparator());
00042 }
00043 
00044 
00045 // Access by chamber objects written into a RangeMap by DetLayer.
00046 pair<DTChamberId, DTChamberIdDetLayerComparator>
00047 DTRangeMapAccessor::chambersByDetLayer(DTChamberId chamberId) {
00048   return make_pair(DTChamberId(chamberId), DTChamberIdDetLayerComparator());
00049 }
00050