#include <GEMDetId.h>
Public Member Functions | |
int | chamber () const |
GEMDetId | chamberId () const |
GEMDetId () | |
GEMDetId (uint32_t id) | |
GEMDetId (DetId id) | |
GEMDetId (int region, int ring, int station, int layer, int chamber, int roll) | |
Construct from fully qualified identifier. More... | |
int | layer () const |
GEMDetId | layerId () const |
int | nlayers () const |
bool | operator!= (const GEMDetId &gen) const |
bool | operator< (const GEMDetId &r) const |
GEMDetId & | operator= (const DetId &gen) |
bool | operator== (const GEMDetId &gen) const |
int | region () const |
int | ring () const |
int | roll () const |
int | station () const |
GEMDetId | superChamberId () const |
bool | v11Format () const |
uint32_t | v12Form () const |
Public Member Functions inherited from DetId | |
constexpr Detector | det () const |
get the detector field from this detid More... | |
constexpr | DetId () |
Create an empty or null id (also for persistence) More... | |
constexpr | DetId (uint32_t id) |
Create an id from a raw number. More... | |
constexpr | DetId (Detector det, int subdet) |
Create an id, filling the detector and subdetector fields as specified. More... | |
constexpr bool | null () const |
is this a null id ? More... | |
constexpr | operator uint32_t () const |
constexpr bool | operator!= (DetId id) const |
inequality More... | |
constexpr uint32_t | operator() () const |
constexpr bool | operator< (DetId id) const |
comparison More... | |
constexpr bool | operator== (DetId id) const |
equality More... | |
constexpr uint32_t | rawId () const |
get the raw id More... | |
constexpr int | subdetId () const |
get the contents of the subdetector field (not cast into any detector's numbering enum) More... | |
Static Public Member Functions | |
static uint32_t | v12Form (const uint32_t &inpid) |
Static Public Attributes | |
static int32_t | maxChamberId = 36 |
static int32_t | maxLayerId = 2 |
static int32_t | maxLayerId0 = 6 |
static int32_t | maxRegionId = 1 |
static int32_t | maxRingId = 3 |
static int32_t | maxRollId = 15 |
static int32_t | maxStationId = 2 |
static int32_t | minChamberId = 0 |
static int32_t | minLayerId = 0 |
static int32_t | minRegionId = -1 |
static int32_t | minRingId = 1 |
static int32_t | minRollId = 0 |
static int32_t | minStationId = 1 |
static int32_t | minStationId0 = 0 |
Static Public Attributes inherited from DetId | |
static const int | kDetMask = 0xF |
static const int | kDetOffset = 28 |
static const int | kSubdetMask = 0x7 |
static const int | kSubdetOffset = 25 |
Private Member Functions | |
void | v12FromV11 (const uint32_t &rawid) |
Static Private Member Functions | |
static void | unpackId (const uint32_t &rawid, int ®ion, int &ring, int &station, int &layer, int &chamber, int &roll) |
Static Private Attributes | |
static uint32_t | chamberIdMask = ~(RollMask << RollStartBit) |
static uint32_t | ChamberMask = 0x3F |
static uint32_t | ChamberNumBits = 6 |
static uint32_t | ChamberStartBit = StationStartBit + StationNumBits |
static uint32_t | ChamberStartBitM = RegionStartBit + RegionNumBits |
static uint32_t | FormatMask = 0x1 |
static uint32_t | FormatNumBits = 1 |
static uint32_t | FormatStartBit = RollStartBit + RollNumBits |
static uint32_t | kGEMIdFormat = 0x1000000 |
static uint32_t | kMuonIdMask = 0xF0000000 |
static uint32_t | LayerMask = 0x1F |
static uint32_t | LayerMaskP = 0x3 |
static uint32_t | LayerNumBits = 5 |
static uint32_t | LayerNumBitsP = 2 |
static uint32_t | LayerStartBit = ChamberStartBit + ChamberNumBits |
static uint32_t | LayerStartBitM = ChamberStartBitM + ChamberNumBits |
static uint32_t | RegionMask = 0x3 |
static uint32_t | RegionNumBits = 2 |
static uint32_t | RegionStartBit = 0 |
static uint32_t | RingMask = 0x7 |
static uint32_t | RingNumBits = 3 |
static uint32_t | RingStartBit = RegionStartBit + RegionNumBits |
static uint32_t | RollMask = 0x1F |
static uint32_t | RollNumBits = 5 |
static uint32_t | RollStartBit = LayerStartBit + LayerNumBits |
static uint32_t | RollStartBitM = LayerStartBitM + LayerNumBits |
static uint32_t | RollStartBitP = LayerStartBit + LayerNumBitsP |
static uint32_t | StationMask = 0x7 |
static uint32_t | StationNumBits = 3 |
static uint32_t | StationStartBit = RingStartBit + RingNumBits |
static uint32_t | superChamberIdMask = chamberIdMask + ~(LayerMask << LayerStartBit) |
Additional Inherited Members | |
Public Types inherited from DetId | |
enum | Detector { Tracker = 1, Muon = 2, Ecal = 3, Hcal = 4, Calo = 5, Forward = 6, VeryForward = 7, HGCalEE = 8, HGCalHSi = 9, HGCalHSc = 10, HGCalTrigger = 11 } |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
DetUnit identifier for GEMs
Definition at line 17 of file GEMDetId.h.
|
inline |
Create a null detId
Definition at line 70 of file GEMDetId.h.
Referenced by chamberId(), layerId(), and superChamberId().
|
inline |
Construct from a packed id. It is required that the Detector part of id is Muon and the SubDet part is GEM, otherwise an exception is thrown
Definition at line 73 of file GEMDetId.h.
References DetId::det(), Exception, MuonSubdetId::GEM, DetId::id_, MuonSubdetId::ME0, DetId::Muon, DetId::subdetId(), v11Format(), and v12Form().
|
inline |
Construct from a generic cell ID
Definition at line 82 of file GEMDetId.h.
References DetId::det(), Exception, MuonSubdetId::GEM, DetId::id_, MuonSubdetId::ME0, DetId::Muon, DetId::rawId(), DetId::subdetId(), v11Format(), and v12Form().
|
inline |
Construct from fully qualified identifier.
Definition at line 90 of file GEMDetId.h.
References ChamberMask, Exception, DetId::id_, kGEMIdFormat, minLayerId, minRegionId, minRingId, minStationId0, RegionMask, roll(), and StationMask.
|
inline |
Chamber id: it identifies a chamber in a ring it goes from 1 to 36 for GE1 and GE2 and 1 to 18 for ME0
Definition at line 177 of file GEMDetId.h.
References DetId::id_.
Referenced by GEMDQMStatusDigi::analyze(), GEMDQMSourceDigi::bookHistograms(), GEMDQMSource::bookHistograms(), GEMDQMStatusDigi::bookHistogramsChamberPart(), GEMGeometryBuilderFromCondDB::build(), GEMGeometryBuilderFromDDD::buildChamber(), GEMGeometryBuilderFromDDD::buildEtaPartition(), GEMGeometryBuilderFromDDD::buildSuperChamber(), EMTFGEMDetId::chamber(), GEMSuperChamber::chamber(), MuonHitHelper::chamber(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), fireworks::info(), MuonGEMDetLayerGeometryBuilder::isFront(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), GEMDigiMatcher::matchCoPadsToSimTrack(), GEMDigiMatcher::matchDigisToSimTrack(), GEMDigiMatcher::matchPadsToSimTrack(), GEMRecHitMatcher::matchRecHitsToSimTrack(), SimHitMatcher::matchSimHitsToSimTrack(), operator!=(), operator==(), GEMDQMStatusDigi::seekIdxSummary(), GEMDQMStatusDigi::SetInfoChambers(), and v12Form().
|
inline |
Return the corresponding ChamberId
Definition at line 193 of file GEMDetId.h.
References GEMDetId(), and DetId::id_.
Referenced by GEMDQMStatusDigi::analyze(), GEMGeometryBuilderFromCondDB::build(), GEMGeometryParsFromDD::buildChamber(), GEMGeometryBuilderFromDDD::buildChamber(), GlobalMuonRefitter::checkMuonHits(), GEMeMap::convert(), GEMeMap::convertDummy(), GEMDigiMatcher::matchDigisToSimTrack(), GEMDigiMatcher::matchPadsToSimTrack(), GEMRecHitMatcher::matchRecHitsToSimTrack(), GEMRawToDigiModule::produce(), and GlobalMuonRefitter::selectMuonHits().
|
inline |
Layer id: each station have two layers of chambers for GE1 and GE2: layer 1 is the inner chamber and layer 2 is the outer chamber For ME0 there are 6 layers of chambers
Definition at line 184 of file GEMDetId.h.
References DetId::id_.
Referenced by GEMDQMSource::analyze(), GEMDQMStatusDigi::analyze(), GEMDQMSourceDigi::bookHistograms(), GEMDQMSource::bookHistograms(), GEMDQMStatusDigi::bookHistogramsChamberPart(), GEMDQMStatusDigi::bookHistogramsStationPart(), GEMGeometryBuilderFromCondDB::build(), GEMGeometryBuilderFromDDD::build(), GEMGeometryParsFromDD::buildGeometry(), reco::HitPattern::encode(), GEMCSCSegFit::fit2(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), fireworks::info(), EMTFGEMDetId::layer(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), EMTFSubsystemCollector::make_copad_gem(), GEMSimHitMatcher::matchSimHitsToSimTrack(), SimHitMatcher::matchSimHitsToSimTrack(), GEMDigiMatcher::nLayersWithDigisInSuperChamber(), GEMDigiMatcher::nLayersWithPadsInSuperChamber(), operator!=(), operator<(), operator==(), GEMDQMStatusDigi::seekIdxSummary(), GEMDQMStatusDigi::SetInfoChambers(), and v12Form().
|
inline |
Return the corresponding LayerId (mask eta partition)
Definition at line 199 of file GEMDetId.h.
References GEMDetId(), and DetId::id_.
|
inline |
Return total # of layers for this type of detector
Definition at line 202 of file GEMDetId.h.
References station().
|
inline |
Definition at line 138 of file GEMDetId.h.
References chamber(), DetId::id_, layer(), DetId::rawId(), region(), ring(), roll(), station(), and unpackId().
|
inline |
Sort Operator based on the raw detector id
Definition at line 149 of file GEMDetId.h.
References layer(), DetId::rawId(), and station().
Assignment from a generic cell id
Definition at line 112 of file GEMDetId.h.
References TauDecayModes::dec, DetId::det(), Exception, MuonSubdetId::GEM, DetId::id_, MuonSubdetId::ME0, DetId::null(), DetId::rawId(), DetId::subdetId(), v11Format(), and v12Form().
|
inline |
Comparison operator
Definition at line 129 of file GEMDetId.h.
References chamber(), DetId::id_, layer(), DetId::rawId(), region(), ring(), roll(), station(), and unpackId().
|
inline |
Region id: 0 for Barrel Not in use, +/-1 For +/- Endcap
Definition at line 165 of file GEMDetId.h.
References DetId::id_.
Referenced by GEMCoPadDigiValidation::analyze(), GEMDQMSource::analyze(), GEMDQMStatusDigi::analyze(), GEMDQMSourceDigi::bookHistograms(), GEMDQMSource::bookHistograms(), GEMDQMStatusDigi::bookHistogramsChamberPart(), GEMDQMStatusDigi::bookHistogramsStationPart(), DetIdInfo::info(), fireworks::info(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), GEMDigiMatcher::matchCoPadsToSimTrack(), GEMDigiMatcher::matchDigisToSimTrack(), GEMDigiMatcher::matchPadsToSimTrack(), GEMRecHitMatcher::matchRecHitsToSimTrack(), GEMSimHitMatcher::matchSimHitsToSimTrack(), SimHitMatcher::matchSimHitsToSimTrack(), operator!=(), operator==(), EMTFGEMDetId::region(), GEMDQMStatusDigi::seekIdxSummary(), GEMDQMStatusDigi::SetInfoChambers(), and v12Form().
|
inline |
Ring id: GEM are installed only on ring 1 the ring is the group of chambers with same r (distance of beam axis) and increasing phi
Definition at line 170 of file GEMDetId.h.
References DetId::id_.
Referenced by GEMDQMSource::analyze(), GEMDQMStatusDigi::analyze(), GEMDQMSource::bookHistograms(), GEMSimHitMatcher::chamberIds(), GEMSimHitMatcher::detIds(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), fireworks::info(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), GEMDigiMatcher::matchCoPadsToSimTrack(), GEMDigiMatcher::matchDigisToSimTrack(), GEMDigiMatcher::matchPadsToSimTrack(), GEMRecHitMatcher::matchRecHitsToSimTrack(), GEMSimHitMatcher::matchSimHitsToSimTrack(), SimHitMatcher::matchSimHitsToSimTrack(), operator!=(), operator==(), EMTFGEMDetId::ring(), GEMDQMStatusDigi::seekIdxSummary(), GEMDQMStatusDigi::SetInfoChambers(), and v12Form().
|
inline |
Roll id (also known as eta partition): each chamber is divided along the strip direction in several parts (rolls) GEM up to 12
Definition at line 188 of file GEMDetId.h.
References DetId::id_.
Referenced by GEMDQMSourceDigi::analyze(), GEMDQMSource::analyze(), GEMDQMStatusDigi::analyze(), GEMGeometryBuilderFromCondDB::build(), GEMDetId(), CSCGEMMotherboard::getRoll(), GEMSimHitMatcher::hitPartitions(), SimHitMatcher::hitPartitions(), GEMSimHitMatcher::matchSimHitsToSimTrack(), SimHitMatcher::matchSimHitsToSimTrack(), operator!=(), operator==(), GEMRecHitMatcher::partitionNumbers(), GEMDigiMatcher::partitionNumbers(), GEMDigiMatcher::partitionNumbersWithCoPads(), EMTFGEMDetId::roll(), and v12Form().
|
inline |
Station id : the station is the set of chambers at same disk
Definition at line 173 of file GEMDetId.h.
References DetId::id_.
Referenced by GEMDQMSource::analyze(), GEMDQMStatusDigi::analyze(), CSCGEMMotherboard::bestMatchingPad(), GEMDQMSourceDigi::bookHistograms(), GEMDQMSource::bookHistograms(), GEMDQMStatusDigi::bookHistogramsChamberPart(), GEMDQMStatusDigi::bookHistogramsStationPart(), GEMSimHitMatcher::chamberIds(), GEMSimHitMatcher::detIds(), reco::HitPattern::encode(), GlobalMuonRefitter::getFirstHits(), GlobalMuonRefitter::getRidOfSelectStationHits(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), fireworks::info(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), GEMDigiMatcher::matchCoPadsToSimTrack(), GEMDigiMatcher::matchDigisToSimTrack(), CSCGEMMotherboard::matchingPads(), GEMDigiMatcher::matchPadsToSimTrack(), GEMRecHitMatcher::matchRecHitsToSimTrack(), GEMSimHitMatcher::matchSimHitsToSimTrack(), SimHitMatcher::matchSimHitsToSimTrack(), nlayers(), operator!=(), operator<(), operator==(), GEMDQMStatusDigi::seekIdxSummary(), GEMDQMStatusDigi::SetInfoChambers(), TAMuonChamberMatch::station(), EMTFGEMDetId::station(), reco::MuonChamberMatch::station(), and v12Form().
|
inline |
Return the corresponding superChamberId
Definition at line 196 of file GEMDetId.h.
References GEMDetId(), and DetId::id_.
Referenced by GEMGeometryBuilderFromCondDB::build(), GEMGeometryParsFromDD::buildSuperChamber(), GEMGeometryBuilderFromDDD::buildSuperChamber(), and GEMSimHitMatcher::superChamberIdsCoincidences().
|
inlinestaticprivate |
Definition at line 232 of file GEMDetId.h.
References ChamberStartBit, ChamberStartBitM, MuonSubdetId::GEM, DetId::kDetMask, DetId::kDetOffset, DetId::kSubdetMask, DetId::kSubdetOffset, LayerStartBit, LayerStartBitM, MuonSubdetId::ME0, minChamberId, minLayerId, minRegionId, minRingId, minStationId, minStationId0, DetId::Muon, operator<<(), RegionStartBit, RingStartBit, RollStartBit, RollStartBitM, RollStartBitP, and StationStartBit.
Referenced by operator!=(), operator==(), and v12Form().
|
inline |
Check the format
Definition at line 162 of file GEMDetId.h.
References DetId::id_.
Referenced by GEMDetId(), and operator=().
|
inline |
Definition at line 206 of file GEMDetId.h.
References DetId::id_, and v12Form().
Referenced by GEMDetId(), operator=(), v12Form(), and v12FromV11().
|
inlinestatic |
Definition at line 208 of file GEMDetId.h.
References chamber(), ChamberMask, MuonSubdetId::GEM, DetId::kDetMask, DetId::kDetOffset, kGEMIdFormat, DetId::kSubdetMask, DetId::kSubdetOffset, layer(), LayerMask, minLayerId, minRegionId, minRingId, minStationId0, DetId::Muon, region(), RegionMask, ring(), RingMask, roll(), RollMask, station(), StationMask, and unpackId().
|
inlineprivate |
|
staticprivate |
Definition at line 65 of file GEMDetId.h.
|
staticprivate |
Definition at line 48 of file GEMDetId.h.
Referenced by GEMDetId(), and v12Form().
|
staticprivate |
Definition at line 45 of file GEMDetId.h.
|
staticprivate |
Definition at line 46 of file GEMDetId.h.
Referenced by unpackId().
|
staticprivate |
Definition at line 47 of file GEMDetId.h.
Referenced by unpackId().
|
staticprivate |
Definition at line 62 of file GEMDetId.h.
|
staticprivate |
Definition at line 60 of file GEMDetId.h.
|
staticprivate |
Definition at line 61 of file GEMDetId.h.
|
staticprivate |
Definition at line 63 of file GEMDetId.h.
Referenced by GEMDetId(), and v12Form().
|
staticprivate |
Definition at line 64 of file GEMDetId.h.
|
staticprivate |
Definition at line 53 of file GEMDetId.h.
Referenced by v12Form().
|
staticprivate |
Definition at line 54 of file GEMDetId.h.
|
staticprivate |
Definition at line 49 of file GEMDetId.h.
|
staticprivate |
Definition at line 50 of file GEMDetId.h.
|
staticprivate |
Definition at line 51 of file GEMDetId.h.
Referenced by unpackId().
|
staticprivate |
Definition at line 52 of file GEMDetId.h.
Referenced by unpackId().
|
static |
Definition at line 28 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), GEMELMap::convertDummy(), and GEMeMap::convertDummy().
|
static |
Definition at line 31 of file GEMDetId.h.
Referenced by GEMGeometryBuilderFromCondDB::build(), MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), GEMeMap::convertDummy(), GEMELMap::convertDummy(), FWRPZViewGeometry::showGEM(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 30 of file GEMDetId.h.
|
static |
Definition at line 20 of file GEMDetId.h.
Referenced by FWRPZViewGeometry::showGEM(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 22 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers().
|
static |
Definition at line 33 of file GEMDetId.h.
Referenced by GEMGeometryBuilderFromCondDB::build(), MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), and GEMELMap::convertDummy().
|
static |
Definition at line 26 of file GEMDetId.h.
Referenced by GEMGeometryBuilderFromCondDB::build(), GEMGeometryBuilderFromDDD::build(), MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), GEMeMap::convertDummy(), GEMELMap::convertDummy(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 27 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), and unpackId().
|
static |
Definition at line 29 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), GEMDetId(), FWRPZViewGeometry::showGEM(), FW3DViewGeometry::showMuonEndcap(), unpackId(), and v12Form().
|
static |
Definition at line 19 of file GEMDetId.h.
Referenced by GEMDetId(), FWRPZViewGeometry::showGEM(), FW3DViewGeometry::showMuonEndcap(), unpackId(), and v12Form().
|
static |
Definition at line 21 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), GEMDetId(), unpackId(), and v12Form().
|
static |
Definition at line 32 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), FWRPZViewGeometry::showGEM(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 24 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), GEMeMap::convertDummy(), GEMELMap::convertDummy(), FWRPZViewGeometry::showGEM(), FW3DViewGeometry::showMuonEndcap(), and unpackId().
|
static |
Definition at line 23 of file GEMDetId.h.
Referenced by GEMDetId(), unpackId(), and v12Form().
|
staticprivate |
Definition at line 38 of file GEMDetId.h.
Referenced by GEMDetId(), and v12Form().
|
staticprivate |
Definition at line 36 of file GEMDetId.h.
|
staticprivate |
Definition at line 37 of file GEMDetId.h.
Referenced by unpackId().
|
staticprivate |
Definition at line 41 of file GEMDetId.h.
Referenced by v12Form().
|
staticprivate |
Definition at line 39 of file GEMDetId.h.
|
staticprivate |
Definition at line 40 of file GEMDetId.h.
Referenced by unpackId().
|
staticprivate |
Definition at line 59 of file GEMDetId.h.
Referenced by v12Form().
|
staticprivate |
Definition at line 55 of file GEMDetId.h.
|
staticprivate |
Definition at line 56 of file GEMDetId.h.
Referenced by unpackId().
|
staticprivate |
Definition at line 58 of file GEMDetId.h.
Referenced by unpackId().
|
staticprivate |
Definition at line 57 of file GEMDetId.h.
Referenced by unpackId().
|
staticprivate |
Definition at line 44 of file GEMDetId.h.
Referenced by GEMDetId(), and v12Form().
|
staticprivate |
Definition at line 42 of file GEMDetId.h.
|
staticprivate |
Definition at line 43 of file GEMDetId.h.
Referenced by unpackId().
|
staticprivate |
Definition at line 66 of file GEMDetId.h.