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 class DTWireId : public DTLayerId {
13 public:
16  DTWireId();
17 
22  explicit DTWireId(uint32_t id);
23 
27  DTWireId(int wheel, int station, int sector, int superlayer, int layer, int wire);
28 
30  DTWireId(const DTWireId& wireId);
31 
33  DTWireId& operator=(const DTWireId& wireId) = default;
34 
36  DTWireId(const DTChamberId& chId, int superlayer, int layer, int wire);
37 
39  DTWireId(const DTSuperLayerId& slId, int layer, int wire);
40 
42  DTWireId(const DTLayerId& layerId, int wire);
43 
45  int wire() const { return ((id_ >> wireStartBit_) & wireMask_); }
46 
48  DTLayerId layerId() const { return DTLayerId(id_ & layerIdMask_); }
49 
50 private:
51 };
52 
53 std::ostream& operator<<(std::ostream& os, const DTWireId& id);
54 
55 #endif
DTWireId & operator=(const DTWireId &wireId)=default
Assignment Operator.
int station() const
Return the station number.
Definition: DTChamberId.h:45
int wire() const
Return the wire number.
Definition: DTWireId.h:45
static const uint32_t layerIdMask_
Definition: DTChamberId.h:102
static const int wireStartBit_
Definition: DTChamberId.h:82
std::ostream & operator<<(std::ostream &os, const DTWireId &id)
Definition: DTWireId.cc:68
int superlayer() const
Return the superlayer number (deprecated method name)
uint32_t id_
Definition: DetId.h:69
int layer() const
Return the layer number.
Definition: DTLayerId.h:45
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:42
int sector() const
Definition: DTChamberId.h:52
static const uint32_t wireMask_
Definition: DTChamberId.h:100
DTLayerId layerId() const
Return the corresponding LayerId.
Definition: DTWireId.h:48
DTWireId()
Definition: DTWireId.cc:12