Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:14

0001 /** \file
0002  *
0003  *  \author G. Cerminara - INFN Torino
0004  */
0005 
0006 #include "DataFormats/DTRecHit/interface/DTRangeMapAccessor.h"
0007 
0008 using namespace std;
0009 
0010 DTRangeMapAccessor::DTRangeMapAccessor() {}
0011 
0012 DTRangeMapAccessor::~DTRangeMapAccessor() {}
0013 
0014 // Access by SL objects written into a RangeMap by layer.
0015 pair<DTLayerId, DTSuperLayerIdComparator> DTRangeMapAccessor::layersBySuperLayer(DTSuperLayerId slId) {
0016   return make_pair(DTLayerId(slId, 0), DTSuperLayerIdComparator());
0017 }
0018 
0019 // Access by chamber objects written into a RangeMap by layer.
0020 pair<DTLayerId, DTChamberIdComparator> DTRangeMapAccessor::layersByChamber(DTChamberId chamberId) {
0021   return make_pair(DTLayerId(chamberId, 0, 0), DTChamberIdComparator());
0022 }
0023 
0024 // Access by chamber objects written into a RangeMap by SL.
0025 pair<DTSuperLayerId, DTChamberIdComparator> DTRangeMapAccessor::superLayersByChamber(DTChamberId chamberId) {
0026   return make_pair(DTSuperLayerId(chamberId, 0), DTChamberIdComparator());
0027 }
0028 
0029 // Access by chamber objects written into a RangeMap by DetLayer.
0030 pair<DTChamberId, DTChamberIdDetLayerComparator> DTRangeMapAccessor::chambersByDetLayer(DTChamberId chamberId) {
0031   return make_pair(DTChamberId(chamberId), DTChamberIdDetLayerComparator());
0032 }