CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DTRangeMapAccessor.cc
Go to the documentation of this file.
1 
7 
8 using namespace std;
9 
11 
13 
14 // Access by SL objects written into a RangeMap by layer.
15 pair<DTLayerId, DTSuperLayerIdComparator> DTRangeMapAccessor::layersBySuperLayer(DTSuperLayerId slId) {
16  return make_pair(DTLayerId(slId, 0), DTSuperLayerIdComparator());
17 }
18 
19 // Access by chamber objects written into a RangeMap by layer.
20 pair<DTLayerId, DTChamberIdComparator> DTRangeMapAccessor::layersByChamber(DTChamberId chamberId) {
21  return make_pair(DTLayerId(chamberId, 0, 0), DTChamberIdComparator());
22 }
23 
24 // Access by chamber objects written into a RangeMap by SL.
25 pair<DTSuperLayerId, DTChamberIdComparator> DTRangeMapAccessor::superLayersByChamber(DTChamberId chamberId) {
26  return make_pair(DTSuperLayerId(chamberId, 0), DTChamberIdComparator());
27 }
28 
29 // Access by chamber objects written into a RangeMap by DetLayer.
30 pair<DTChamberId, DTChamberIdDetLayerComparator> DTRangeMapAccessor::chambersByDetLayer(DTChamberId chamberId) {
31  return make_pair(DTChamberId(chamberId), DTChamberIdDetLayerComparator());
32 }
virtual ~DTRangeMapAccessor()
Destructor.
static std::pair< DTLayerId, DTSuperLayerIdComparator > layersBySuperLayer(DTSuperLayerId slId)
Access by SL objects written into a RangeMap by layer.
static std::pair< DTChamberId, DTChamberIdDetLayerComparator > chambersByDetLayer(DTChamberId id)
Access chambers in a RangeMap by DetLayer.
DTSuperLayerId
static std::pair< DTLayerId, DTChamberIdComparator > layersByChamber(DTChamberId chamberId)
Access by chamber objects written into a RangeMap by layer.
static std::pair< DTSuperLayerId, DTChamberIdComparator > superLayersByChamber(DTChamberId chamberId)
Access by chamber objects written into a RangeMap by SL.
DTRangeMapAccessor()
Constructor.