#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... | |
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 = 4 |
static const int | minChamberId = 0 |
static const int | minLayerId = 1 |
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_ = 0X1 |
static const int | LayerNumBits_ = 1 |
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_ |
Additional Inherited Members | |
Public Types inherited from DetId | |
enum | Detector { Tracker =1, Muon =2, Ecal =3, Hcal =4, Calo =5, Forward =6 } |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
DetUnit identifier for GEMs
Definition at line 16 of file GEMDetId.h.
GEMDetId::GEMDetId | ( | ) |
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_, and minChamberId.
Referenced by GEMSuperChamber::chamber(), geometryXMLparser.CSCAlignable::index(), fireworks::info(), MuonGEMDetLayerGeometryBuilder::isFront(), and GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex().
|
inline |
Return the corresponding ChamberId.
Definition at line 86 of file GEMDetId.h.
References chamberIdMask_, GEMDetId(), and DetId::id_.
Referenced by GlobalMuonRefitter::checkMuonHits(), 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_, LayerMask_, LayerStartBit_, and minLayerId.
Referenced by GEMCSCSegFit::fit2(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), fireworks::info(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), and operator<().
|
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_, minRegionId, RegionMask_, and RegionStartBit_.
Referenced by fireworks::info(), and GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex().
|
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_, minRingId, RingMask_, and RingStartBit_.
Referenced by geometryXMLparser.CSCAlignable::index(), fireworks::info(), and GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex().
|
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_, RollMask_, and RollStartBit_.
Referenced by CSCMotherboardME11GEM::correlateLCTsGEM(), init(), CSCMotherboardME21GEM::matchingGEMPads(), and CSCMotherboardME11GEM::matchingGEMPads().
|
inline |
Station id : the station is the pair of chambers at same disk.
Definition at line 64 of file GEMDetId.h.
References DetId::id_, minStationId, StationMask_, and StationStartBit_.
Referenced by GlobalMuonRefitter::getFirstHits(), GlobalMuonRefitter::getRidOfSelectStationHits(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), fireworks::info(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), and operator<().
|
staticprivate |
Definition at line 134 of file GEMDetId.h.
Referenced by chamberId().
|
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 128 of file GEMDetId.h.
|
staticprivate |
Definition at line 126 of file GEMDetId.h.
|
staticprivate |
Definition at line 127 of file GEMDetId.h.
|
static |
Definition at line 100 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), and init().
|
static |
Definition at line 103 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), init(), FWRPZViewGeometry::showGEM(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 91 of file GEMDetId.h.
Referenced by init(), FWRPZViewGeometry::showGEM(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 94 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), and init().
|
static |
Definition at line 106 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), and init().
|
static |
Definition at line 97 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), and init().
|
static |
Definition at line 99 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), chamber(), and init().
|
static |
Definition at line 102 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), init(), layer(), FWRPZViewGeometry::showGEM(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 90 of file GEMDetId.h.
Referenced by init(), region(), FWRPZViewGeometry::showGEM(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 93 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), init(), and ring().
|
static |
Definition at line 105 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), FWRPZViewGeometry::showGEM(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 96 of file GEMDetId.h.
Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), init(), FWRPZViewGeometry::showGEM(), FW3DViewGeometry::showMuonEndcap(), and station().
|
staticprivate |
Definition at line 111 of file GEMDetId.h.
|
staticprivate |
Definition at line 109 of file GEMDetId.h.
|
staticprivate |
Definition at line 110 of file GEMDetId.h.
|
staticprivate |
Definition at line 115 of file GEMDetId.h.
|
staticprivate |
Definition at line 113 of file GEMDetId.h.
|
staticprivate |
Definition at line 114 of file GEMDetId.h.
|
staticprivate |
Definition at line 132 of file GEMDetId.h.
|
staticprivate |
Definition at line 130 of file GEMDetId.h.
|
staticprivate |
Definition at line 131 of file GEMDetId.h.
|
staticprivate |
Definition at line 119 of file GEMDetId.h.
|
staticprivate |
Definition at line 117 of file GEMDetId.h.
|
staticprivate |
Definition at line 118 of file GEMDetId.h.
|
private |
Definition at line 144 of file GEMDetId.h.