test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:
14 
17  DTLayerId();
18 
19 
25  explicit DTLayerId(uint32_t id);
26 
27 
31  DTLayerId(int wheel,
32  int station,
33  int sector,
34  int superlayer,
35  int layer);
36 
37 
41  DTLayerId(const DTLayerId& layerId);
42 
43 
45  DTLayerId(const DTChamberId& chId, int superlayer, int layer);
46 
47 
49  DTLayerId(const DTSuperLayerId& slId, int layer);
50 
51 
53  int layer() const {
54  return ((id_>>layerStartBit_)&lMask_);
55  }
56 
57 
60  return DTSuperLayerId(id_ & slIdMask_);
61  }
62 
63 
64 
65 };
66 
67 
68 std::ostream& operator<<( std::ostream& os, const DTLayerId& id );
69 
70 #endif
static const uint32_t slIdMask_
Definition: DTChamberId.h:117
int layer() const
Return the layer number.
Definition: DTLayerId.h:53
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
Definition: DTLayerId.h:59
static const int layerStartBit_
Definition: DTChamberId.h:97
int superlayer() const
Return the superlayer number (deprecated method name)
static const uint32_t lMask_
Definition: DTChamberId.h:113
uint32_t id_
Definition: DetId.h:55
int sector() const
Definition: DTChamberId.h:61
int station() const
Return the station number.
Definition: DTChamberId.h:51
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45