CMS 3D CMS Logo

DTSectCollId.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
13 //
14 //--------------------------------------------------
15 #ifndef DT_SECT_COLL_ID_H
16 #define DT_SECT_COLL_ID_H
17 
18 class DTSectCollId {
19 public:
20  // Constructor
21  DTSectCollId() : _wheel(0), _sector(0) {}
22 
23  DTSectCollId(int wheel_id, int sector_id) : _wheel(wheel_id), _sector(sector_id) {}
24 
25  DTSectCollId(const DTSectCollId& statId) : _wheel(statId._wheel), _sector(statId._sector) {}
26 
27  // Destructor
28 
29  // Operations
30  inline int wheel() const { return _wheel; }
31  inline int sector() const { return _sector; }
32 
33  inline bool operator==(const DTSectCollId&) const;
34  inline bool operator!=(const DTSectCollId&) const;
35  inline bool operator<(const DTSectCollId&) const;
36 
37  inline DTSectCollId& operator=(const DTSectCollId&);
38 
39 private:
40  int _wheel;
41  int _sector;
42 };
43 
44 #include <iosfwd>
45 std::ostream& operator<<(std::ostream& os, const DTSectCollId& id);
46 #include "DataFormats/MuonDetId/interface/DTSectCollId.icc"
47 
48 #endif
std::ostream & operator<<(std::ostream &os, const DTSectCollId &id)
Definition: DTSectCollId.cc:30
bool operator==(const DTSectCollId &) const
DTSectCollId(const DTSectCollId &statId)
Definition: DTSectCollId.h:25
bool operator<(const DTSectCollId &) const
DTSectCollId & operator=(const DTSectCollId &)
int sector() const
Definition: DTSectCollId.h:31
DTSectCollId(int wheel_id, int sector_id)
Definition: DTSectCollId.h:23
int wheel() const
Definition: DTSectCollId.h:30
bool operator!=(const DTSectCollId &) const