CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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(const DTChamberId& chId, int superlayer, int layer, int wire);
34 
36  DTWireId(const DTSuperLayerId& slId, int layer, int wire);
37 
39  DTWireId(const DTLayerId& layerId, int wire);
40 
42  int wire() const { return ((id_ >> wireStartBit_) & wireMask_); }
43 
45  DTLayerId layerId() const { return DTLayerId(id_ & layerIdMask_); }
46 
47 private:
48 };
49 
50 std::ostream& operator<<(std::ostream& os, const DTWireId& id);
51 
52 #endif
int layer() const
Return the layer number.
Definition: DTLayerId.h:42
static const uint32_t layerIdMask_
Definition: DTChamberId.h:99
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
static const int wireStartBit_
Definition: DTChamberId.h:79
int wire() const
Return the wire number.
Definition: DTWireId.h:42
int superlayer() const
Return the superlayer number (deprecated method name)
uint32_t id_
Definition: DetId.h:69
DTLayerId layerId() const
Return the corresponding LayerId.
Definition: DTWireId.h:45
int sector() const
Definition: DTChamberId.h:49
static const uint32_t wireMask_
Definition: DTChamberId.h:97
int station() const
Return the station number.
Definition: DTChamberId.h:42
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
DTWireId()
Definition: DTWireId.cc:12