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(const DTChamberId& chId, int superlayer);
37 
39  int superLayer() const { return ((id_ >> slayerStartBit_) & slMask_); }
40 
42  int superlayer() const { return superLayer(); }
43 
46 
47 private:
48 };
49 
50 std::ostream& operator<<(std::ostream& os, const DTSuperLayerId& id);
51 
52 #endif
int station() const
Return the station number.
Definition: DTChamberId.h:42
int superLayer() const
Return the superlayer number.
DTChamberId chamberId() const
Return the corresponding ChamberId.
static const uint32_t slMask_
Definition: DTChamberId.h:95
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:39
int sector() const
Definition: DTChamberId.h:49
static const uint32_t chamberIdMask_
Definition: DTChamberId.h:101
static const int slayerStartBit_
Definition: DTChamberId.h:83