CMS 3D CMS Logo

DTLayerId.h
Go to the documentation of this file.
1 #ifndef MuonDetId_DTLayerId_h
2 #define MuonDetId_DTLayerId_h
3 
11 
12 class DTLayerId : public DTSuperLayerId {
13 public:
16  DTLayerId();
17 
23  explicit DTLayerId(uint32_t id);
24 
28  DTLayerId(int wheel, int station, int sector, int superlayer, int layer);
29 
33  DTLayerId(const DTLayerId& layerId);
34 
36  DTLayerId(const DTChamberId& chId, int superlayer, int layer);
37 
39  DTLayerId(const DTSuperLayerId& slId, int layer);
40 
42  int layer() const { return ((id_ >> layerStartBit_) & lMask_); }
43 
46 };
47 
48 std::ostream& operator<<(std::ostream& os, const DTLayerId& id);
49 
50 #endif
int station() const
Return the station number.
Definition: DTChamberId.h:42
std::ostream & operator<<(std::ostream &os, const DTLayerId &id)
Definition: DTLayerId.cc:60
static const uint32_t slIdMask_
Definition: DTChamberId.h:100
static const int layerStartBit_
Definition: DTChamberId.h:81
static const uint32_t lMask_
Definition: DTChamberId.h:96
int superlayer() const
Return the superlayer number (deprecated method name)
uint32_t id_
Definition: DetId.h:69
int layer() const
Return the layer number.
Definition: DTLayerId.h:42
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
int sector() const
Definition: DTChamberId.h:49
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
Definition: DTLayerId.h:45