|
|
Go to the documentation of this file. 1 #ifndef DataFormats_MuonDetId_GEMDetId_h
2 #define DataFormats_MuonDetId_GEMDetId_h
76 <<
"GEMDetId ctor: det: " <<
det() <<
" subdet: " <<
subdetId() <<
" is not a valid GEM id\n";
85 <<
"GEMDetId ctor: det: " <<
det() <<
" subdet: " <<
subdetId() <<
" is not a valid GEM id\n";
96 <<
"GEMDetId ctor: Invalid parameters: region " <<
region <<
" ring " <<
ring <<
" station " <<
station
97 <<
" layer " <<
layer <<
" chamber " <<
chamber <<
" roll " <<
roll << std::endl;
104 int rollInBits =
roll;
114 int subdet =
gen.subdetId();
117 <<
"GEMDetId ctor: Cannot assign GEMDetID from " << std::hex <<
gen.rawId() <<
std::dec;
130 uint32_t rawid =
gen.rawId();
133 int reg(0), ri(0), stn(-1), lay(0), chamb(0), rol(0);
134 unpackId(rawid, reg, ri, stn, lay, chamb, rol);
139 uint32_t rawid =
gen.rawId();
142 int reg(0), ri(0), stn(-1), lay(0), chamb(0), rol(0);
143 unpackId(rawid, reg, ri, stn, lay, chamb, rol);
150 if (
r.station() == this->
station()) {
208 constexpr
static uint32_t
v12Form(
const uint32_t& inpid) {
209 uint32_t rawid(inpid);
218 int rollInBits =
roll;
static constexpr uint32_t RegionStartBit
constexpr bool v11Format() const
std::bitset< maskSIZE > RollMask
constexpr bool operator==(const GEMDetId &gen) const
constexpr int ring() const
constexpr int layer() const
static constexpr uint32_t RingMask
constexpr int region() 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 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 RollStartBitM
static constexpr uint32_t FormatNumBits
constexpr bool operator<(const GEMDetId &r) const
constexpr int nlayers() const
static const int kSubdetMask
constexpr GEMDetId(DetId id)
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 uint32_t RegionNumBits
constexpr GEMDetId(int region, int ring, int station, int layer, int chamber, int roll)
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 RollStartBitP
static constexpr uint32_t chamberIdMask
constexpr int chamber() const
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
static constexpr uint32_t RollNumBits
constexpr static void unpackId(const uint32_t &rawid, int ®ion, int &ring, int &station, int &layer, int &chamber, int &roll)
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 RollMask
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)
static constexpr uint32_t RollStartBit
constexpr GEMDetId & operator=(const DetId &gen)
static constexpr uint32_t kGEMIdFormat
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 bool operator!=(const GEMDetId &gen) const