CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTSuperLayerId.h
Go to the documentation of this file.
1 #ifndef MuonDetId_DTSuperLayerId_H
2 #define MuonDetId_DTSuperLayerId_H
3 
13 
14 
15 class DTSuperLayerId : public DTChamberId {
16 public:
17 
21 
22 
28  explicit DTSuperLayerId(uint32_t id);
29 
30 
34  DTSuperLayerId(int wheel,
35  int station,
36  int sector,
37  int superlayer);
38 
39 
43  DTSuperLayerId(const DTSuperLayerId& slId);
44 
45 
47  DTSuperLayerId(const DTChamberId& chId, int superlayer);
48 
49 
51  int superLayer() const {
52  return ((id_>>slayerStartBit_)&slMask_);
53  }
54 
55 
57  int superlayer() const {
58  return superLayer();
59  }
60 
61 
64  return DTChamberId(id_ & chamberIdMask_);
65  }
66 
67  private:
68 
69 };
70 
71 std::ostream& operator<<( std::ostream& os, const DTSuperLayerId& id );
72 
73 #endif
74 
DTChamberId chamberId() const
Return the corresponding ChamberId.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
static const uint32_t slMask_
Definition: DTChamberId.h:114
int superLayer() const
Return the superlayer number.
int superlayer() const
Return the superlayer number (deprecated method name)
uint32_t id_
Definition: DetId.h:57
int sector() const
Definition: DTChamberId.h:63
static const uint32_t chamberIdMask_
Definition: DTChamberId.h:121
static const int slayerStartBit_
Definition: DTChamberId.h:101
int station() const
Return the station number.
Definition: DTChamberId.h:53
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:47