CMS 3D CMS Logo

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 
15 public:
16  // Operations
18  bool operator()(DTSuperLayerId sl1, DTSuperLayerId sl2) const {
19  if (sl1 == sl2) return false;
20  return (sl1 < sl2);
21  }
22 
23 private:
24 
25 };
26 
27 
28 
36 public:
37  // Operations
39  bool operator()(DTChamberId ch1, DTChamberId ch2) const {
40  if (ch1 == ch2) return false;
41  return (ch1<ch2);
42  }
43 
44 private:
45 
46 };
47 
55  public:
56  bool operator() (DTChamberId ch1, DTChamberId ch2) const {
57 
58  if (ch1.station() == ch2.station())
59  return false;
60 
61  return (ch1.station() < ch2.station());
62  }
63 };
64 
65 
73 public:
76 
78  virtual ~DTRangeMapAccessor();
79 
80  // Operations
81 
83  static std::pair<DTLayerId, DTSuperLayerIdComparator>
84  layersBySuperLayer(DTSuperLayerId slId);
85 
87  static std::pair<DTLayerId, DTChamberIdComparator>
88  layersByChamber(DTChamberId chamberId);
89 
91  static std::pair<DTSuperLayerId, DTChamberIdComparator>
92  superLayersByChamber(DTChamberId chamberId);
93 
95  static std::pair<DTChamberId, DTChamberIdDetLayerComparator>
96  chambersByDetLayer(DTChamberId id);
97 
98 private:
99 
100 };
101 
102 #endif
103 
bool operator()(DTChamberId ch1, DTChamberId ch2) const
Compare two ChamberId.
int station() const
Return the station number.
Definition: DTChamberId.h:51
bool operator()(DTSuperLayerId sl1, DTSuperLayerId sl2) const
Compare two superLayerId.