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 
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>
85 
87  static std::pair<DTLayerId, DTChamberIdComparator>
88  layersByChamber(DTChamberId chamberId);
89 
91  static std::pair<DTSuperLayerId, DTChamberIdComparator>
93 
95  static std::pair<DTChamberId, DTChamberIdDetLayerComparator>
97 
98 private:
99 
100 };
101 
102 #endif
103 
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:51
bool operator()(DTSuperLayerId sl1, DTSuperLayerId sl2) const
Compare two superLayerId.