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 
20  public:
21  // Constructor
23  _wheel( 0),
24  _sector( 0) {}
25 
26  DTSectCollId(int wheel_id,
27  int sector_id):
28  _wheel(wheel_id),
29  _sector(sector_id) {}
30 
31 
32  DTSectCollId(const DTSectCollId& statId) :
33  _wheel(statId._wheel),
34  _sector(statId._sector) {}
35 
36 
37  // Destructor
38 
39  // Operations
40  inline int wheel() const { return _wheel; }
41  inline int sector() const { return _sector; }
42 
43  inline bool operator == ( const DTSectCollId & ) const;
44  inline bool operator != ( const DTSectCollId & ) const;
45  inline bool operator < ( const DTSectCollId& ) const;
46 
47  inline DTSectCollId & operator = ( const DTSectCollId& );
48 
49  private:
50  int _wheel;
51  int _sector;
52 
53 };
54 
55 #include <iosfwd>
56 std::ostream& operator<<(std::ostream &os, const DTSectCollId& id) ;
57 #include "DataFormats/MuonDetId/interface/DTSectCollId.icc"
58 
59 #endif
60 
61 
62 
63 
64 
65 
66 
67 
68 
std::ostream & operator<<(std::ostream &os, const DTSectCollId &id)
Definition: DTSectCollId.cc:34
bool operator==(const DTSectCollId &) const
DTSectCollId(const DTSectCollId &statId)
Definition: DTSectCollId.h:32
bool operator<(const DTSectCollId &) const
DTSectCollId & operator=(const DTSectCollId &)
int sector() const
Definition: DTSectCollId.h:41
DTSectCollId(int wheel_id, int sector_id)
Definition: DTSectCollId.h:26
int wheel() const
Definition: DTSectCollId.h:40
bool operator!=(const DTSectCollId &) const