|
|
Go to the documentation of this file. 1 #ifndef DataFormats_MuonDetId_GEMDetId_h
2 #define DataFormats_MuonDetId_GEMDetId_h
81 <<
"GEMDetId ctor: det: " <<
det() <<
" subdet: " <<
subdetId() <<
" is not a valid GEM id\n";
90 <<
"GEMDetId ctor: det: " <<
det() <<
" subdet: " <<
subdetId() <<
" is not a valid GEM id\n";
101 <<
"GEMDetId ctor: Invalid parameters: region " <<
region <<
" ring " <<
ring <<
" station " <<
station
102 <<
" layer " <<
layer <<
" chamber " <<
chamber <<
" ieta " <<
ieta << std::endl;
109 int ietaInBits =
ieta;
120 int subdet =
gen.subdetId();
123 <<
"GEMDetId ctor: Cannot assign GEMDetID from " << std::hex <<
gen.rawId() <<
std::dec;
136 uint32_t rawid =
gen.rawId();
139 int reg(0), ri(0), stn(-1), lay(0), chamb(0), iet(0);
140 unpackId(rawid, reg, ri, stn, lay, chamb, iet);
145 uint32_t rawid =
gen.rawId();
148 int reg(0), ri(0), stn(-1), lay(0), chamb(0), iet(0);
149 unpackId(rawid, reg, ri, stn, lay, chamb, iet);
156 if (
r.station() == this->
station()) {
219 constexpr
static uint32_t
v12Form(
const uint32_t& inpid) {
220 uint32_t rawid(inpid);
229 int ietaInBits =
ieta;
static constexpr uint32_t RegionStartBit
constexpr bool v11Format() const
constexpr bool operator==(const GEMDetId &gen) const
static constexpr uint32_t EtaPartitionNumBits
constexpr int ring() const
constexpr int layer() const
static constexpr uint32_t RingMask
constexpr int region() const
GEMSubDetId::Station subsystem() const
constexpr Detector det() const
get the detector field from this detid
std::ostream & operator<<(std::ostream &os, const GEMDetId &id)
static constexpr uint32_t EtaPartitionStartBitP
static constexpr uint32_t EtaPartitionMask
static constexpr uint32_t LayerMask
constexpr GEMDetId superChamberId() const
static constexpr int32_t maxStationId
static constexpr uint32_t ChamberMask
static constexpr int32_t minChamberId
static constexpr uint32_t StationStartBit
static constexpr uint32_t LayerNumBits
static constexpr uint32_t RegionMask
static constexpr int32_t minLayerId
static constexpr uint32_t FormatNumBits
constexpr bool operator<(const GEMDetId &r) const
constexpr int nlayers() const
static const int kSubdetMask
constexpr GEMDetId(DetId id)
static constexpr uint32_t EtaPartitionStartBitM
constexpr void v12FromV11(const uint32_t &rawid)
constexpr uint32_t v12Form() const
static constexpr uint32_t FormatMask
static constexpr uint32_t RingStartBit
static constexpr int32_t maxRollId
static constexpr uint32_t LayerStartBit
static const int kSubdetOffset
constexpr GEMDetId layerId() const
static constexpr uint32_t StationNumBits
static constexpr uint32_t ChamberNumBits
static constexpr int32_t minStationId0
static constexpr int32_t maxRingId
static constexpr int32_t maxChamberId
static constexpr int32_t minRingId
static constexpr int32_t maxEtaPartitionId
static constexpr uint32_t RegionNumBits
constexpr GEMDetId(int region, int ring, int station, int layer, int chamber, int ieta)
Construct from fully qualified identifier.
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
static constexpr uint32_t chamberIdMask
constexpr int chamber() const
GEM Data Record : block->header().getID() = 7.
static constexpr int32_t maxLayerId0
static const int kDetMask
static constexpr uint32_t kMuonIdMask
constexpr int roll() const
static constexpr uint32_t LayerMaskP
static constexpr uint32_t superChamberIdMask
static constexpr uint32_t ChamberStartBit
static constexpr int32_t minRegionId
static constexpr uint32_t LayerStartBitM
constexpr static void unpackId(const uint32_t &rawid, int ®ion, int &ring, int &station, int &layer, int &chamber, int &ieta)
static constexpr int32_t maxRegionId
static constexpr uint32_t FormatStartBit
static const int kDetOffset
constexpr uint32_t rawId() const
get the raw id
static constexpr uint32_t ChamberStartBitM
static constexpr int32_t maxLayerId
constexpr GEMDetId chamberId() const
static constexpr uint32_t StationMask
constexpr static uint32_t v12Form(const uint32_t &inpid)
constexpr GEMDetId & operator=(const DetId &gen)
static constexpr uint32_t kGEMIdFormat
static constexpr int32_t minEtaPartitionId
static constexpr int32_t minRollId
static constexpr uint32_t RingNumBits
static constexpr uint32_t LayerNumBitsP
constexpr int station() const
static constexpr int32_t minStationId
constexpr GEMDetId(uint32_t id)
constexpr int ieta() const
static constexpr uint32_t EtaPartitionStartBit
constexpr bool operator!=(const GEMDetId &gen) const