CMS 3D CMS Logo

DTWireId.h
Go to the documentation of this file.
1 #ifndef MuonDetId_DTWireId_h
2 #define MuonDetId_DTWireId_h
3 
11 
12 
13 class DTWireId :public DTLayerId {
14  public:
15 
18  DTWireId();
19 
20 
25  explicit DTWireId(uint32_t id);
26 
27 
31  DTWireId(int wheel,
32  int station,
33  int sector,
34  int superlayer,
35  int layer,
36  int wire);
37 
38 
40  DTWireId(const DTWireId& wireId);
41 
42 
44  DTWireId(const DTChamberId& chId, int superlayer, int layer, int wire);
45 
46 
48  DTWireId(const DTSuperLayerId& slId, int layer, int wire);
49 
50 
52  DTWireId(const DTLayerId& layerId, int wire);
53 
54 
56  int wire() const {
57  return ((id_>>wireStartBit_)&wireMask_);
58  }
59 
60 
62  DTLayerId layerId() const {
63  return DTLayerId(id_ & layerIdMask_);
64  }
65 
66 
67  private:
68 
69 
70 };
71 
72 std::ostream& operator<<( std::ostream& os, const DTWireId& id );
73 
74 #endif
int layer() const
Return the layer number.
Definition: DTLayerId.h:53
static const uint32_t layerIdMask_
Definition: DTChamberId.h:116
static const int wireStartBit_
Definition: DTChamberId.h:95
std::ostream & operator<<(std::ostream &os, const DTWireId &id)
Definition: DTWireId.cc:101
int wire() const
Return the wire number.
Definition: DTWireId.h:56
int superlayer() const
Return the superlayer number (deprecated method name)
uint32_t id_
Definition: DetId.h:59
DTLayerId layerId() const
Return the corresponding LayerId.
Definition: DTWireId.h:62
int sector() const
Definition: DTChamberId.h:61
static const uint32_t wireMask_
Definition: DTChamberId.h:114
int station() const
Return the station number.
Definition: DTChamberId.h:51
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45
DTWireId()
Definition: DTWireId.cc:15