CMS 3D CMS Logo

DTSuperLayerId.h
Go to the documentation of this file.
1 #ifndef MuonDetId_DTSuperLayerId_H
2 #define MuonDetId_DTSuperLayerId_H
3 
11 
12 class DTSuperLayerId : public DTChamberId {
13 public:
17 
23  explicit DTSuperLayerId(uint32_t id);
24 
28  DTSuperLayerId(int wheel, int station, int sector, int superlayer);
29 
33  DTSuperLayerId(const DTSuperLayerId& slId);
34 
36  DTSuperLayerId& operator=(const DTSuperLayerId& slId) = default;
37 
39  DTSuperLayerId(const DTChamberId& chId, int superlayer);
40 
42  int superLayer() const { return ((id_ >> slayerStartBit_) & slMask_); }
43 
45  int superlayer() const { return superLayer(); }
46 
49 
50 private:
51 };
52 
53 std::ostream& operator<<(std::ostream& os, const DTSuperLayerId& id);
54 
55 #endif
int station() const
Return the station number.
Definition: DTChamberId.h:45
int superLayer() const
Return the superlayer number.
DTSuperLayerId & operator=(const DTSuperLayerId &slId)=default
Assignment Operator.
DTChamberId chamberId() const
Return the corresponding ChamberId.
static const uint32_t slMask_
Definition: DTChamberId.h:98
std::ostream & operator<<(std::ostream &os, const DTSuperLayerId &id)
int superlayer() const
Return the superlayer number (deprecated method name)
uint32_t id_
Definition: DetId.h:69
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:42
int sector() const
Definition: DTChamberId.h:52
static const uint32_t chamberIdMask_
Definition: DTChamberId.h:104
static const int slayerStartBit_
Definition: DTChamberId.h:86