#include <GEMDetId.h>
Public Member Functions | |
int | chamber () const |
Chamber id: it identifies a chamber in a ring it goes from 1 to 36. More... | |
GEMDetId | chamberId () const |
Return the corresponding ChamberId. More... | |
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 |
Layer id: each station have two layers of chambers: layer 1 is the inner chamber and layer 2 is the outer chamber (when present) More... | |
bool | operator< (const GEMDetId &r) const |
Sort Operator based on the raw detector id. More... | |
int | region () const |
Region id: 0 for Barrel Not in use, +/-1 For +/- Endcap. More... | |
int | ring () const |
int | roll () const |
int | station () const |
Station id : the station is the pair of chambers at same disk. More... | |
GEMDetId | superChamberId () const |
Return the corresponding superChamberId. More... | |
Public Member Functions inherited from DetId | |
Detector | det () const |
get the detector field from this detid More... | |
DetId () | |
Create an empty or null id (also for persistence) More... | |
DetId (uint32_t id) | |
Create an id from a raw number. More... | |
DetId (Detector det, int subdet) | |
Create an id, filling the detector and subdetector fields as specified. More... | |
bool | null () const |
is this a null id ? More... | |
operator uint32_t () const | |
bool | operator!= (DetId id) const |
inequality More... | |
uint32_t | operator() () const |
bool | operator< (DetId id) const |
comparison More... | |
bool | operator== (DetId id) const |
equality More... | |
uint32_t | rawId () const |
get the raw id More... | |
int | subdetId () const |
get the contents of the subdetector field (not cast into any detector's numbering enum) More... | |
Static Public Attributes | |
static const int | maxChamberId = 36 |
static const int | maxLayerId = 2 |
static const int | maxRegionId = 1 |
static const int | maxRingId = 3 |
static const int | maxRollId = 15 |
static const int | maxStationId = 2 |
static const int | minChamberId = 0 |
static const int | minLayerId = 0 |
static const int | minRegionId = -1 |
static const int | minRingId = 1 |
static const int | minRollId = 0 |
static const int | minStationId = 1 |
Static Public Attributes inherited from DetId | |
static const int | kDetOffset = 28 |
static const int | kSubdetOffset = 25 |
Private Member Functions | |
void | init (int region, int ring, int station, int layer, int chamber, int roll) |
Private Attributes | |
int | trind |
Static Private Attributes | |
static const uint32_t | chamberIdMask_ = ~(RollMask_<<RollStartBit_) |
static const unsigned int | ChamberMask_ = 0X3F |
static const int | ChamberNumBits_ = 6 |
static const int | ChamberStartBit_ = StationStartBit_+StationNumBits_ |
static const unsigned int | LayerMask_ = 0X3 |
static const int | LayerNumBits_ = 2 |
static const int | LayerStartBit_ = ChamberStartBit_+ChamberNumBits_ |
static const int | RegionMask_ = 0X3 |
static const int | RegionNumBits_ = 2 |
static const int | RegionStartBit_ = 0 |
static const unsigned int | RingMask_ = 0X7 |
static const int | RingNumBits_ = 3 |
static const int | RingStartBit_ = RegionStartBit_+RegionNumBits_ |
static const unsigned int | RollMask_ = 0X1F |
static const int | RollNumBits_ = 5 |
static const int | RollStartBit_ = LayerStartBit_+LayerNumBits_ |
static const unsigned int | StationMask_ = 0X7 |
static const int | StationNumBits_ = 3 |
static const int | StationStartBit_ = RingStartBit_+RingNumBits_ |
static const 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 } |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
DetUnit identifier for GEMs
Definition at line 16 of file GEMDetId.h.
GEMDetId::GEMDetId | ( | ) |
Definition at line 8 of file GEMDetId.cc.
Referenced by chamberId(), and superChamberId().
GEMDetId::GEMDetId | ( | uint32_t | id | ) |
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 11 of file GEMDetId.cc.
References DetId::det(), Exception, MuonSubdetId::GEM, DetId::Muon, and DetId::subdetId().
GEMDetId::GEMDetId | ( | DetId | id | ) |
Definition at line 20 of file GEMDetId.cc.
References DetId::det(), Exception, MuonSubdetId::GEM, DetId::Muon, and DetId::subdetId().
GEMDetId::GEMDetId | ( | int | region, |
int | ring, | ||
int | station, | ||
int | layer, | ||
int | chamber, | ||
int | roll | ||
) |
Construct from fully qualified identifier.
Definition at line 29 of file GEMDetId.cc.
References init().
|
inline |
Chamber id: it identifies a chamber in a ring it goes from 1 to 36.
Definition at line 74 of file GEMDetId.h.
References ChamberMask_, ChamberStartBit_, DetId::id_, createfilelist::int, and minChamberId.
Referenced by GEMGeometryBuilderFromCondDB::build(), GEMGeometryBuilderFromDDD::buildChamber(), GEMGeometryBuilderFromDDD::buildEtaPartition(), GEMGeometryBuilderFromDDD::buildSuperChamber(), GEMSuperChamber::chamber(), PrimitiveConversion::convert_gem(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), fireworks::info(), MuonGEMDetLayerGeometryBuilder::isFront(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), GEMDigiMatcher::matchCoPadsToSimTrack(), GEMDigiMatcher::matchDigisToSimTrack(), GEMDigiMatcher::matchPadsToSimTrack(), GEMRecHitMatcher::matchRecHitsToSimTrack(), SimHitMatcher::matchSimHitsToSimTrack(), and PrimitiveSelection::select_gem().
|
inline |
Return the corresponding ChamberId.
Definition at line 85 of file GEMDetId.h.
References chamberIdMask_, GEMDetId(), and DetId::id_.
Referenced by GEMGeometryBuilderFromDDD::buildChamber(), GlobalMuonRefitter::checkMuonHits(), GEMDigiMatcher::matchDigisToSimTrack(), GEMDigiMatcher::matchPadsToSimTrack(), GEMRecHitMatcher::matchRecHitsToSimTrack(), and GlobalMuonRefitter::selectMuonHits().
|
private |
Definition at line 36 of file GEMDetId.cc.
References ChamberMask_, ChamberStartBit_, Exception, DetId::id_, LayerMask_, LayerStartBit_, maxChamberId, maxLayerId, maxRegionId, maxRingId, maxRollId, maxStationId, minChamberId, minLayerId, minRegionId, minRingId, minStationId, RegionMask_, RegionStartBit_, RingMask_, RingStartBit_, roll(), RollMask_, RollStartBit_, StationMask_, and StationStartBit_.
Referenced by GEMDetId().
|
inline |
Layer id: each station have two layers of chambers: layer 1 is the inner chamber and layer 2 is the outer chamber (when present)
Definition at line 69 of file GEMDetId.h.
References DetId::id_, createfilelist::int, LayerMask_, LayerStartBit_, and minLayerId.
Referenced by GEMGeometryBuilderFromCondDB::build(), GEMGeometryBuilderFromDDD::build(), reco::HitPattern::encode(), GEMCSCSegFit::fit2(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), fireworks::info(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), SimHitMatcher::matchSimHitsToSimTrack(), GEMDigiMatcher::nLayersWithDigisInSuperChamber(), GEMDigiMatcher::nLayersWithPadsInSuperChamber(), operator<(), and PrimitiveSelection::select_gem().
|
inline |
Sort Operator based on the raw detector id.
Definition at line 38 of file GEMDetId.h.
References layer(), DetId::rawId(), and station().
|
inline |
Region id: 0 for Barrel Not in use, +/-1 For +/- Endcap.
Definition at line 53 of file GEMDetId.h.
References DetId::id_, createfilelist::int, minRegionId, RegionMask_, and RegionStartBit_.
Referenced by GEMCoPadDigiValidation::analyze(), GEMGeometryBuilderFromCondDB::build(), PrimitiveConversion::convert_gem(), DetIdInfo::info(), fireworks::info(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), GEMDigiMatcher::matchCoPadsToSimTrack(), GEMDigiMatcher::matchDigisToSimTrack(), GEMDigiMatcher::matchPadsToSimTrack(), GEMRecHitMatcher::matchRecHitsToSimTrack(), SimHitMatcher::matchSimHitsToSimTrack(), and PrimitiveSelection::select_gem().
|
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 59 of file GEMDetId.h.
References DetId::id_, createfilelist::int, minRingId, RingMask_, and RingStartBit_.
Referenced by GEMGeometryBuilderFromCondDB::build(), PrimitiveConversion::convert_gem(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), fireworks::info(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), GEMDigiMatcher::matchCoPadsToSimTrack(), GEMDigiMatcher::matchDigisToSimTrack(), GEMDigiMatcher::matchPadsToSimTrack(), GEMRecHitMatcher::matchRecHitsToSimTrack(), SimHitMatcher::matchSimHitsToSimTrack(), and PrimitiveSelection::select_gem().
|
inline |
Roll id (also known as eta partition): each chamber is divided along the strip direction in several parts (rolls) GEM up to 10
Definition at line 80 of file GEMDetId.h.
References DetId::id_, createfilelist::int, RollMask_, and RollStartBit_.
Referenced by PrimitiveConversion::convert_gem(), CSCMotherboardME11GEM::correlateLCTsGEM(), CSCGEMMotherboard::getRoll(), SimHitMatcher::hitPartitions(), init(), CSCMotherboardME21GEM::matchingGEMPads(), CSCMotherboardME11GEM::matchingGEMPads(), SimHitMatcher::matchSimHitsToSimTrack(), GEMRecHitMatcher::partitionNumbers(), GEMDigiMatcher::partitionNumbers(), GEMDigiMatcher::partitionNumbersWithCoPads(), and PrimitiveSelection::select_gem().
|
inline |
Station id : the station is the pair of chambers at same disk.
Definition at line 64 of file GEMDetId.h.
References DetId::id_, createfilelist::int, minStationId, StationMask_, and StationStartBit_.
Referenced by GEMGeometryBuilderFromCondDB::build(), PrimitiveConversion::convert_gem(), reco::HitPattern::encode(), GlobalMuonRefitter::getFirstHits(), GlobalMuonRefitter::getRidOfSelectStationHits(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), fireworks::info(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), GEMDigiMatcher::matchCoPadsToSimTrack(), GEMDigiMatcher::matchDigisToSimTrack(), GEMDigiMatcher::matchPadsToSimTrack(), GEMRecHitMatcher::matchRecHitsToSimTrack(), SimHitMatcher::matchSimHitsToSimTrack(), operator<(), PrimitiveSelection::select_gem(), TAMuonChamberMatch::station(), and reco::MuonChamberMatch::station().
|
inline |
Return the corresponding superChamberId.
Definition at line 90 of file GEMDetId.h.
References GEMDetId(), DetId::id_, and superChamberIdMask_.
Referenced by GEMGeometryBuilderFromDDD::buildSuperChamber().
|
staticprivate |
Definition at line 139 of file GEMDetId.h.
Referenced by chamberId().
|
staticprivate |
Definition at line 129 of file GEMDetId.h.
|
staticprivate |
Definition at line 127 of file GEMDetId.h.
|
staticprivate |
Definition at line 128 of file GEMDetId.h.
|
staticprivate |
Definition at line 133 of file GEMDetId.h.
|
staticprivate |
Definition at line 131 of file GEMDetId.h.
|
staticprivate |
Definition at line 132 of file GEMDetId.h.
|
static |
Definition at line 104 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), and init().
|
static |
Definition at line 108 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), init(), FWRPZViewGeometry::showGEM(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 95 of file GEMDetId.h.
Referenced by init(), FWRPZViewGeometry::showGEM(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 98 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), and init().
|
static |
Definition at line 111 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), and init().
|
static |
Definition at line 101 of file GEMDetId.h.
Referenced by GEMGeometryBuilderFromCondDB::build(), GEMGeometryBuilderFromDDD::build(), MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), init(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 103 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), chamber(), and init().
|
static |
Definition at line 107 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), init(), layer(), FWRPZViewGeometry::showGEM(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 94 of file GEMDetId.h.
Referenced by init(), region(), FWRPZViewGeometry::showGEM(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 97 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), init(), and ring().
|
static |
Definition at line 110 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), FWRPZViewGeometry::showGEM(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 100 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), init(), FWRPZViewGeometry::showGEM(), FW3DViewGeometry::showMuonEndcap(), and station().
|
staticprivate |
Definition at line 116 of file GEMDetId.h.
|
staticprivate |
Definition at line 114 of file GEMDetId.h.
|
staticprivate |
Definition at line 115 of file GEMDetId.h.
|
staticprivate |
Definition at line 120 of file GEMDetId.h.
|
staticprivate |
Definition at line 118 of file GEMDetId.h.
|
staticprivate |
Definition at line 119 of file GEMDetId.h.
|
staticprivate |
Definition at line 137 of file GEMDetId.h.
|
staticprivate |
Definition at line 135 of file GEMDetId.h.
|
staticprivate |
Definition at line 136 of file GEMDetId.h.
|
staticprivate |
Definition at line 124 of file GEMDetId.h.
|
staticprivate |
Definition at line 122 of file GEMDetId.h.
|
staticprivate |
Definition at line 123 of file GEMDetId.h.
|
staticprivate |
Definition at line 141 of file GEMDetId.h.
Referenced by superChamberId().
|
private |
Definition at line 151 of file GEMDetId.h.