CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTLayerId.h
Go to the documentation of this file.
1 #ifndef MuonDetId_DTLayerId_h
2 #define MuonDetId_DTLayerId_h
3 
13 
14 class DTLayerId : public DTSuperLayerId {
15  public:
16 
19  DTLayerId();
20 
21 
27  explicit DTLayerId(uint32_t id);
28 
29 
33  DTLayerId(int wheel,
34  int station,
35  int sector,
36  int superlayer,
37  int layer);
38 
39 
43  DTLayerId(const DTLayerId& layerId);
44 
45 
47  DTLayerId(const DTChamberId& chId, int superlayer, int layer);
48 
49 
51  DTLayerId(const DTSuperLayerId& slId, int layer);
52 
53 
55  int layer() const {
56  return ((id_>>layerStartBit_)&lMask_);
57  }
58 
59 
62  return DTSuperLayerId(id_ & slIdMask_);
63  }
64 
65 
66 
67 };
68 
69 
70 std::ostream& operator<<( std::ostream& os, const DTLayerId& id );
71 
72 #endif
static const uint32_t slIdMask_
Definition: DTChamberId.h:119
int layer() const
Return the layer number.
Definition: DTLayerId.h:55
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
Definition: DTLayerId.h:61
static const int layerStartBit_
Definition: DTChamberId.h:99
int superlayer() const
Return the superlayer number (deprecated method name)
static const uint32_t lMask_
Definition: DTChamberId.h:115
uint32_t id_
Definition: DetId.h:57
int sector() const
Definition: DTChamberId.h:63
int station() const
Return the station number.
Definition: DTChamberId.h:53
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:47