CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTRangeMapAccessor.h
Go to the documentation of this file.
1 #ifndef DataFormats_DTRangeMapAccessor_H
2 #define DataFormats_DTRangeMapAccessor_H
3 
5 
6 #include <utility>
7 
17 public:
18  // Operations
20  bool operator()(DTSuperLayerId sl1, DTSuperLayerId sl2) const {
21  if (sl1 == sl2) return false;
22  return (sl1 < sl2);
23  }
24 
25 private:
26 
27 };
28 
29 
30 
40 public:
41  // Operations
43  bool operator()(DTChamberId ch1, DTChamberId ch2) const {
44  if (ch1 == ch2) return false;
45  return (ch1<ch2);
46  }
47 
48 private:
49 
50 };
51 
61  public:
62  bool operator() (DTChamberId ch1, DTChamberId ch2) const {
63 
64  if (ch1.station() == ch2.station())
65  return false;
66 
67  return (ch1.station() < ch2.station());
68  }
69 };
70 
71 
81 public:
84 
86  virtual ~DTRangeMapAccessor();
87 
88  // Operations
89 
91  static std::pair<DTLayerId, DTSuperLayerIdComparator>
93 
95  static std::pair<DTLayerId, DTChamberIdComparator>
96  layersByChamber(DTChamberId chamberId);
97 
99  static std::pair<DTSuperLayerId, DTChamberIdComparator>
101 
103  static std::pair<DTChamberId, DTChamberIdDetLayerComparator>
105 
106 private:
107 
108 };
109 
110 #endif
111 
virtual ~DTRangeMapAccessor()
Destructor.
bool operator()(DTChamberId ch1, DTChamberId ch2) const
Compare two ChamberId.
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.
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.
bool operator()(DTChamberId ch1, DTChamberId ch2) const
DTRangeMapAccessor()
Constructor.
int station() const
Return the station number.
Definition: DTChamberId.h:53
bool operator()(DTSuperLayerId sl1, DTSuperLayerId sl2) const
Compare two superLayerId.