CMS 3D CMS Logo

EMTFGEMDetId.h
Go to the documentation of this file.
1 #ifndef L1TMuonEndCap_EMTFGEMDetId_h
2 #define L1TMuonEndCap_EMTFGEMDetId_h
3 
6 
7 #include <cstdint>
8 #include <iosfwd>
9 
10 
11 class GEMDetId;
12 class ME0DetId;
13 
14 class EMTFGEMDetId {
15 public:
16  explicit EMTFGEMDetId(const GEMDetId& id);
17  explicit EMTFGEMDetId(const ME0DetId& id);
18 
20  bool operator < (const EMTFGEMDetId& r) const;
21 
23  int region() const;
24  int ring() const; // NOTE: use ME0 --> ring 4 convention
25  int station() const; // NOTE: use ME0 --> station 1 convention
26  int layer() const;
27  int chamber() const;
28  int roll() const;
29 
30  bool isME0() const { return isME0_; }
31 
32  GEMDetId getGEMDetId() const { return gemDetId_; }
33 
34  ME0DetId getME0DetId() const { return me0DetId_; }
35 
36 private:
39  bool isME0_;
40 };
41 
42 std::ostream& operator<<( std::ostream& os, const EMTFGEMDetId& id );
43 
44 #endif
std::ostream & operator<<(std::ostream &os, const EMTFGEMDetId &id)
Definition: EMTFGEMDetId.cc:76
ME0DetId me0DetId_
Definition: EMTFGEMDetId.h:38
int layer() const
Definition: EMTFGEMDetId.cc:55
int roll() const
Definition: EMTFGEMDetId.cc:69
int region() const
The identifiers.
Definition: EMTFGEMDetId.cc:32
int chamber() const
Definition: EMTFGEMDetId.cc:62
bool operator<(const EMTFGEMDetId &r) const
Sort Operator based on the raw detector id.
Definition: EMTFGEMDetId.cc:21
bool isME0() const
Definition: EMTFGEMDetId.h:30
int station() const
Definition: EMTFGEMDetId.cc:47
ME0DetId getME0DetId() const
Definition: EMTFGEMDetId.h:34
EMTFGEMDetId(const GEMDetId &id)
Definition: EMTFGEMDetId.cc:4
GEMDetId getGEMDetId() const
Definition: EMTFGEMDetId.h:32
GEMDetId gemDetId_
Definition: EMTFGEMDetId.h:37
int ring() const
Definition: EMTFGEMDetId.cc:39