CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTWireId.h
Go to the documentation of this file.
1 #ifndef MuonDetId_DTWireId_h
2 #define MuonDetId_DTWireId_h
3 
13 
14 
15 class DTWireId :public DTLayerId {
16  public:
17 
20  DTWireId();
21 
22 
27  explicit DTWireId(uint32_t id);
28 
29 
33  DTWireId(int wheel,
34  int station,
35  int sector,
36  int superlayer,
37  int layer,
38  int wire);
39 
40 
42  DTWireId(const DTWireId& wireId);
43 
44 
46  DTWireId(const DTChamberId& chId, int superlayer, int layer, int wire);
47 
48 
50  DTWireId(const DTSuperLayerId& slId, int layer, int wire);
51 
52 
54  DTWireId(const DTLayerId& layerId, int wire);
55 
56 
58  int wire() const {
59  return ((id_>>wireStartBit_)&wireMask_);
60  }
61 
62 
64  DTLayerId layerId() const {
65  return DTLayerId(id_ & layerIdMask_);
66  }
67 
68 
69  private:
70 
71 
72 };
73 
74 std::ostream& operator<<( std::ostream& os, const DTWireId& id );
75 
76 #endif
int layer() const
Return the layer number.
Definition: DTLayerId.h:55
static const uint32_t layerIdMask_
Definition: DTChamberId.h:118
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
static const int wireStartBit_
Definition: DTChamberId.h:97
int wire() const
Return the wire number.
Definition: DTWireId.h:58
int superlayer() const
Return the superlayer number (deprecated method name)
uint32_t id_
Definition: DetId.h:57
DTLayerId layerId() const
Return the corresponding LayerId.
Definition: DTWireId.h:64
int sector() const
Definition: DTChamberId.h:63
static const uint32_t wireMask_
Definition: DTChamberId.h:116
int station() const
Return the station number.
Definition: DTChamberId.h:53
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:47
DTWireId()
Definition: DTWireId.cc:16