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& operator=(const DTLayerId& layerId) = default;
37 
39  DTLayerId(const DTChamberId& chId, int superlayer, int layer);
40 
42  DTLayerId(const DTSuperLayerId& slId, int layer);
43 
45  int layer() const { return ((id_ >> layerStartBit_) & lMask_); }
46 
49 };
50 
51 std::ostream& operator<<(std::ostream& os, const DTLayerId& id);
52 
53 #endif
int station() const
Return the station number.
Definition: DTChamberId.h:45
std::ostream & operator<<(std::ostream &os, const DTLayerId &id)
Definition: DTLayerId.cc:60
static const uint32_t slIdMask_
Definition: DTChamberId.h:103
static const int layerStartBit_
Definition: DTChamberId.h:84
static const uint32_t lMask_
Definition: DTChamberId.h:99
int superlayer() const
Return the superlayer number (deprecated method name)
DTLayerId & operator=(const DTLayerId &layerId)=default
Assignment Operator.
uint32_t id_
Definition: DetId.h:69
int layer() const
Return the layer number.
Definition: DTLayerId.h:45
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:42
int sector() const
Definition: DTChamberId.h:52
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
Definition: DTLayerId.h:48