test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTSuperLayerId.h
Go to the documentation of this file.
1 #ifndef MuonDetId_DTSuperLayerId_H
2 #define MuonDetId_DTSuperLayerId_H
3 
11 
12 
13 class DTSuperLayerId : public DTChamberId {
14 public:
15 
19 
20 
26  explicit DTSuperLayerId(uint32_t id);
27 
28 
32  DTSuperLayerId(int wheel,
33  int station,
34  int sector,
35  int superlayer);
36 
37 
41  DTSuperLayerId(const DTSuperLayerId& slId);
42 
43 
45  DTSuperLayerId(const DTChamberId& chId, int superlayer);
46 
47 
49  int superLayer() const {
50  return ((id_>>slayerStartBit_)&slMask_);
51  }
52 
53 
55  int superlayer() const {
56  return superLayer();
57  }
58 
59 
62  return DTChamberId(id_ & chamberIdMask_);
63  }
64 
65  private:
66 
67 };
68 
69 std::ostream& operator<<( std::ostream& os, const DTSuperLayerId& id );
70 
71 #endif
72 
DTChamberId chamberId() const
Return the corresponding ChamberId.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
static const uint32_t slMask_
Definition: DTChamberId.h:112
int superLayer() const
Return the superlayer number.
int superlayer() const
Return the superlayer number (deprecated method name)
uint32_t id_
Definition: DetId.h:55
int sector() const
Definition: DTChamberId.h:61
static const uint32_t chamberIdMask_
Definition: DTChamberId.h:119
static const int slayerStartBit_
Definition: DTChamberId.h:99
int station() const
Return the station number.
Definition: DTChamberId.h:51
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45