File indexing completed on 2023-11-30 01:54:32
0001 #ifndef MuonDetId_DTWireId_h
0002 #define MuonDetId_DTWireId_h
0003
0004
0005
0006
0007
0008
0009
0010 #include <DataFormats/MuonDetId/interface/DTLayerId.h>
0011
0012 class DTWireId : public DTLayerId {
0013 public:
0014
0015
0016 DTWireId();
0017
0018
0019
0020
0021
0022 explicit DTWireId(uint32_t id);
0023
0024
0025
0026
0027 DTWireId(int wheel, int station, int sector, int superlayer, int layer, int wire);
0028
0029
0030 DTWireId(const DTWireId& wireId);
0031
0032
0033 DTWireId& operator=(const DTWireId& wireId) = default;
0034
0035
0036 DTWireId(const DTChamberId& chId, int superlayer, int layer, int wire);
0037
0038
0039 DTWireId(const DTSuperLayerId& slId, int layer, int wire);
0040
0041
0042 DTWireId(const DTLayerId& layerId, int wire);
0043
0044
0045 int wire() const { return ((id_ >> wireStartBit_) & wireMask_); }
0046
0047
0048 DTLayerId layerId() const { return DTLayerId(id_ & layerIdMask_); }
0049
0050 private:
0051 };
0052
0053 std::ostream& operator<<(std::ostream& os, const DTWireId& id);
0054
0055 #endif