CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Static Private Attributes
GEMDetId Class Reference

#include <GEMDetId.h>

Inheritance diagram for GEMDetId:
DetId

Public Member Functions

constexpr int chamber () const
 
constexpr GEMDetId chamberId () const
 
constexpr GEMDetId ()
 
constexpr GEMDetId (uint32_t id)
 
constexpr GEMDetId (DetId id)
 
constexpr GEMDetId (int region, int ring, int station, int layer, int chamber, int ieta)
 Construct from fully qualified identifier. More...
 
constexpr int ieta () const
 
bool isGE11 () const
 
bool isGE21 () const
 
bool isME0 () const
 
constexpr int layer () const
 
constexpr GEMDetId layerId () const
 
constexpr int nlayers () const
 
constexpr bool operator!= (const GEMDetId &gen) const
 
constexpr bool operator< (const GEMDetId &r) const
 
constexpr GEMDetIdoperator= (const DetId &gen)
 
constexpr bool operator== (const GEMDetId &gen) const
 
constexpr int region () const
 
constexpr int ring () const
 
constexpr int roll () const
 
constexpr int station () const
 
GEMSubDetId::Station subsystem () const
 
constexpr GEMDetId superChamberId () const
 
constexpr bool v11Format () const
 
constexpr 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 constexpr uint32_t v12Form (const uint32_t &inpid)
 

Static Public Attributes

static constexpr uint32_t chamberIdMask = ~(EtaPartitionMask << EtaPartitionStartBit)
 
static constexpr int32_t maxChamberId = 36
 
static constexpr int32_t maxEtaPartitionId = 16
 
static constexpr int32_t maxLayerId = 2
 
static constexpr int32_t maxLayerId0 = 6
 
static constexpr int32_t maxRegionId = 1
 
static constexpr int32_t maxRingId = 3
 
static constexpr int32_t maxRollId = maxEtaPartitionId
 
static constexpr int32_t maxStationId = 2
 
static constexpr int32_t minChamberId = 0
 
static constexpr int32_t minEtaPartitionId = 0
 
static constexpr int32_t minLayerId = 0
 
static constexpr int32_t minRegionId = -1
 
static constexpr int32_t minRingId = 1
 
static constexpr int32_t minRollId = minEtaPartitionId
 
static constexpr int32_t minStationId = 1
 
static constexpr int32_t minStationId0 = 0
 
static constexpr uint32_t superChamberIdMask = chamberIdMask + ~(LayerMask << LayerStartBit)
 
- 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

constexpr void v12FromV11 (const uint32_t &rawid)
 

Static Private Member Functions

static constexpr void unpackId (const uint32_t &rawid, int &region, int &ring, int &station, int &layer, int &chamber, int &ieta)
 

Static Private Attributes

static constexpr uint32_t ChamberMask = 0x3F
 
static constexpr uint32_t ChamberNumBits = 6
 
static constexpr uint32_t ChamberStartBit = StationStartBit + StationNumBits
 
static constexpr uint32_t ChamberStartBitM = RegionStartBit + RegionNumBits
 
static constexpr uint32_t EtaPartitionMask = 0x1F
 
static constexpr uint32_t EtaPartitionNumBits = 5
 
static constexpr uint32_t EtaPartitionStartBit = LayerStartBit + LayerNumBits
 
static constexpr uint32_t EtaPartitionStartBitM = LayerStartBitM + LayerNumBits
 
static constexpr uint32_t EtaPartitionStartBitP = LayerStartBit + LayerNumBitsP
 
static constexpr uint32_t FormatMask = 0x1
 
static constexpr uint32_t FormatNumBits = 1
 
static constexpr uint32_t FormatStartBit = EtaPartitionStartBit + EtaPartitionNumBits
 
static constexpr uint32_t kGEMIdFormat = 0x1000000
 
static constexpr uint32_t kMuonIdMask = 0xF0000000
 
static constexpr uint32_t LayerMask = 0x1F
 
static constexpr uint32_t LayerMaskP = 0x3
 
static constexpr uint32_t LayerNumBits = 5
 
static constexpr uint32_t LayerNumBitsP = 2
 
static constexpr uint32_t LayerStartBit = ChamberStartBit + ChamberNumBits
 
static constexpr uint32_t LayerStartBitM = ChamberStartBitM + ChamberNumBits
 
static constexpr uint32_t RegionMask = 0x3
 
static constexpr uint32_t RegionNumBits = 2
 
static constexpr uint32_t RegionStartBit = 0
 
static constexpr uint32_t RingMask = 0x7
 
static constexpr uint32_t RingNumBits = 3
 
static constexpr uint32_t RingStartBit = RegionStartBit + RegionNumBits
 
static constexpr uint32_t StationMask = 0x7
 
static constexpr uint32_t StationNumBits = 3
 
static constexpr uint32_t 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, VeryForward = 7, HGCalEE = 8,
  HGCalHSi = 9, HGCalHSc = 10, HGCalTrigger = 11
}
 
- Protected Attributes inherited from DetId
uint32_t id_
 

Detailed Description

DetUnit identifier for GEMs

Definition at line 18 of file GEMDetId.h.

Constructor & Destructor Documentation

◆ GEMDetId() [1/4]

constexpr GEMDetId::GEMDetId ( )
inline

Create a null detId

Definition at line 75 of file GEMDetId.h.

Referenced by chamberId(), layerId(), and superChamberId().

static constexpr int GEM
Definition: MuonSubdetId.h:14
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

◆ GEMDetId() [2/4]

constexpr GEMDetId::GEMDetId ( uint32_t  id)
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 78 of file GEMDetId.h.

References DetId::det(), Exception, MuonSubdetId::GEM, DetId::id_, MuonSubdetId::ME0, DetId::Muon, DetId::subdetId(), v11Format(), and v12Form().

78  : DetId(id) {
80  throw cms::Exception("InvalidDetId")
81  << "GEMDetId ctor: det: " << det() << " subdet: " << subdetId() << " is not a valid GEM id\n";
82 
83  if (v11Format())
84  id_ = v12Form(id);
85  }
static constexpr int GEM
Definition: MuonSubdetId.h:14
constexpr bool v11Format() const
Definition: GEMDetId.h:168
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
constexpr uint32_t v12Form() const
Definition: GEMDetId.h:217
static constexpr int ME0
Definition: MuonSubdetId.h:15
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
uint32_t id_
Definition: DetId.h:69
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

◆ GEMDetId() [3/4]

constexpr GEMDetId::GEMDetId ( DetId  id)
inline

Construct from a generic cell ID

Definition at line 87 of file GEMDetId.h.

References DetId::det(), Exception, MuonSubdetId::GEM, DetId::id_, MuonSubdetId::ME0, DetId::Muon, DetId::rawId(), DetId::subdetId(), v11Format(), and v12Form().

87  : DetId(id) {
89  throw cms::Exception("InvalidDetId")
90  << "GEMDetId ctor: det: " << det() << " subdet: " << subdetId() << " is not a valid GEM id\n";
91  if (v11Format())
92  id_ = v12Form(id.rawId());
93  }
static constexpr int GEM
Definition: MuonSubdetId.h:14
constexpr bool v11Format() const
Definition: GEMDetId.h:168
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
constexpr uint32_t v12Form() const
Definition: GEMDetId.h:217
static constexpr int ME0
Definition: MuonSubdetId.h:15
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
uint32_t id_
Definition: DetId.h:69
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

◆ GEMDetId() [4/4]

constexpr GEMDetId::GEMDetId ( int  region,
int  ring,
int  station,
int  layer,
int  chamber,
int  ieta 
)
inline

Construct from fully qualified identifier.

Definition at line 95 of file GEMDetId.h.

References chamber(), ChamberMask, ChamberStartBit, EtaPartitionStartBit, Exception, DetId::id_, ieta(), kGEMIdFormat, layer(), LayerMask, LayerStartBit, maxChamberId, maxEtaPartitionId, maxLayerId0, maxRegionId, maxRingId, maxStationId, minChamberId, minLayerId, minRegionId, minRingId, minStationId0, region(), RegionMask, RegionStartBit, ring(), RingMask, RingStartBit, station(), StationMask, and StationStartBit.

97  if (region < minRegionId || region > maxRegionId || ring < minRingId || ring > maxRingId ||
98  station < minStationId0 || station > maxStationId || layer < minLayerId || layer > maxLayerId0 ||
99  chamber < minChamberId || chamber > maxChamberId || ieta < minEtaPartitionId || ieta > maxEtaPartitionId)
100  throw cms::Exception("InvalidDetId")
101  << "GEMDetId ctor: Invalid parameters: region " << region << " ring " << ring << " station " << station
102  << " layer " << layer << " chamber " << chamber << " ieta " << ieta << std::endl;
103 
104  int regionInBits = region - minRegionId;
105  int ringInBits = ring - minRingId;
106  int stationInBits = station - minStationId0;
107  int layerInBits = layer - minLayerId;
108  int chamberInBits = chamber - (minChamberId + 1);
109  int ietaInBits = ieta;
110 
111  id_ |= ((regionInBits & RegionMask) << RegionStartBit | (ringInBits & RingMask) << RingStartBit |
112  (stationInBits & StationMask) << StationStartBit | (layerInBits & LayerMask) << LayerStartBit |
113  (chamberInBits & ChamberMask) << ChamberStartBit | (ietaInBits & EtaPartitionMask) << EtaPartitionStartBit |
114  kGEMIdFormat);
115  }
static constexpr uint32_t LayerMask
Definition: GEMDetId.h:56
constexpr int station() const
Definition: GEMDetId.h:179
static constexpr uint32_t StationStartBit
Definition: GEMDetId.h:46
constexpr int region() const
Definition: GEMDetId.h:171
static constexpr int GEM
Definition: MuonSubdetId.h:14
static constexpr int32_t maxRegionId
Definition: GEMDetId.h:21
static constexpr uint32_t RingMask
Definition: GEMDetId.h:44
constexpr int layer() const
Definition: GEMDetId.h:190
static constexpr int32_t maxRingId
Definition: GEMDetId.h:23
constexpr int chamber() const
Definition: GEMDetId.h:183
static constexpr int32_t maxLayerId0
Definition: GEMDetId.h:31
static constexpr uint32_t RegionMask
Definition: GEMDetId.h:41
static constexpr uint32_t ChamberStartBit
Definition: GEMDetId.h:49
static constexpr uint32_t LayerStartBit
Definition: GEMDetId.h:54
static constexpr uint32_t StationMask
Definition: GEMDetId.h:47
static constexpr int32_t minStationId0
Definition: GEMDetId.h:24
static constexpr uint32_t EtaPartitionStartBit
Definition: GEMDetId.h:59
static constexpr int32_t maxStationId
Definition: GEMDetId.h:27
std::bitset< maskSIZE > EtaPartitionMask
constexpr int ring() const
Definition: GEMDetId.h:176
static constexpr int32_t maxEtaPartitionId
Definition: GEMDetId.h:34
constexpr int ieta() const
Definition: GEMDetId.h:199
static constexpr int32_t minRingId
Definition: GEMDetId.h:22
static constexpr uint32_t kGEMIdFormat
Definition: GEMDetId.h:66
uint32_t id_
Definition: DetId.h:69
static constexpr uint32_t RegionStartBit
Definition: GEMDetId.h:40
static constexpr int32_t maxChamberId
Definition: GEMDetId.h:29
static constexpr int32_t minChamberId
Definition: GEMDetId.h:28
static constexpr uint32_t RingStartBit
Definition: GEMDetId.h:43
static constexpr int32_t minLayerId
Definition: GEMDetId.h:30
static constexpr uint32_t ChamberMask
Definition: GEMDetId.h:51
static constexpr int32_t minRegionId
Definition: GEMDetId.h:20
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

Member Function Documentation

◆ chamber()

constexpr int GEMDetId::chamber ( ) const
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 183 of file GEMDetId.h.

References ChamberMask, ChamberStartBit, DetId::id_, and minChamberId.

Referenced by CSCDigiToRaw::add(), GEMCoPadDigiValidation::analyze(), GEMPadDigiClusterValidation::analyze(), GEMPadDigiValidation::analyze(), GEMDAQStatusSource::analyze(), GEMEfficiencyAnalyzer::analyze(), GEMGeometryBuilderFromCondDB::build(), GEMGeometryBuilder::buildChamber(), GEMGeometryBuilder::buildEtaPartition(), GEMGeometryBuilder::buildSuperChamber(), GEMSuperChamber::chamber(), MuonHitHelper::chamber(), GEMEffByGEMCSCSegmentSource::checkCoincidenceGE11(), PrimitiveConversion::convert_gem(), CSCDigiFilter::filterDigis(), GEMDetId(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), fireworks::info(), MuonGEMDetLayerGeometryBuilder::isFront(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), GEMDigiSource::LoadROMap(), EMTFSubsystemCollector::make_copad_gem(), GEMDigiMatcher::matchPadsToSimTrack(), GEMDigiMatcher::nLayersWithClustersInSuperChamber(), GEMDigiMatcher::nLayersWithDigisInSuperChamber(), GEMDigiMatcher::nLayersWithPadsInSuperChamber(), operator!=(), operator==(), GEMDigiToRawModule::produce(), GEMRawToDigiModule::produce(), PrimitiveSelection::select_gem(), unpackId(), and v12Form().

183  {
184  return (static_cast<int>((id_ >> ChamberStartBit) & ChamberMask) + (minChamberId + 1));
185  }
static constexpr uint32_t ChamberStartBit
Definition: GEMDetId.h:49
uint32_t id_
Definition: DetId.h:69
static constexpr int32_t minChamberId
Definition: GEMDetId.h:28
static constexpr uint32_t ChamberMask
Definition: GEMDetId.h:51

◆ chamberId()

constexpr GEMDetId GEMDetId::chamberId ( ) const
inline

◆ ieta()

constexpr int GEMDetId::ieta ( ) const
inline

Return the corresponding EtaPartition id (same as roll)

Definition at line 199 of file GEMDetId.h.

References EtaPartitionStartBit, and DetId::id_.

Referenced by GEMPadDigiClusterValidation::analyze(), GEMPadDigiValidation::analyze(), GEMRecHitSource::analyze(), GEMDigiSource::analyze(), GEMEfficiencyAnalyzer::analyze(), GEMDetId(), GEMDQMBase::GenerateMEPerChamber(), operator!=(), operator==(), unpackId(), and v12Form().

199  {
200  return (static_cast<int>((id_ >> EtaPartitionStartBit) & EtaPartitionMask)); // value 0 is used as wild card
201  }
static constexpr uint32_t EtaPartitionStartBit
Definition: GEMDetId.h:59
std::bitset< maskSIZE > EtaPartitionMask
uint32_t id_
Definition: DetId.h:69

◆ isGE11()

bool GEMDetId::isGE11 ( ) const

◆ isGE21()

bool GEMDetId::isGE21 ( ) const

Definition at line 11 of file GEMDetId.cc.

References GEMSubDetId::GE21, and subsystem().

Referenced by GEMEtaPartition::isGE21(), and GEMDigiMatcher::matchPadsToSimTrack().

GEMSubDetId::Station subsystem() const
Definition: GEMDetId.cc:7

◆ isME0()

bool GEMDetId::isME0 ( ) const

Definition at line 13 of file GEMDetId.cc.

References GEMSubDetId::ME0, and subsystem().

Referenced by GEMEtaPartition::isME0(), and GEMDigiMatcher::matchPadsToSimTrack().

13 { return subsystem() == GEMSubDetId::Station::ME0; }
GEMSubDetId::Station subsystem() const
Definition: GEMDetId.cc:7

◆ layer()

constexpr int GEMDetId::layer ( ) const
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 190 of file GEMDetId.h.

References DetId::id_, LayerMask, LayerStartBit, and minLayerId.

Referenced by CSCEventData::add(), GEMCoPadDigiValidation::analyze(), GEMPadDigiClusterValidation::analyze(), GEMPadDigiValidation::analyze(), GEMDAQStatusSource::analyze(), GEMEffByGEMCSCSegmentSource::analyzeGE11ME11Segment(), GEMGeometryBuilderFromCondDB::build(), GEMGeometryBuilder::build(), GEMGeometryParsFromDD::buildGeometry(), GEMEfficiencyAnalyzer::buildStartingState(), GEMEffByGEMCSCSegmentSource::checkCoincidenceGE11(), GEMCSCSegFit::fit2(), GEMDetId(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), fireworks::info(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), GEMDigiSource::LoadROMap(), EMTFSubsystemCollector::make_copad_gem(), GEMDigiMatcher::matchPadsToSimTrack(), operator!=(), operator<(), operator==(), GEMDigiToRawModule::produce(), GEMRawToDigiModule::produce(), PrimitiveSelection::select_gem(), unpackId(), and v12Form().

190 { return (static_cast<int>((id_ >> LayerStartBit) & LayerMask) + minLayerId); }
static constexpr uint32_t LayerMask
Definition: GEMDetId.h:56
static constexpr uint32_t LayerStartBit
Definition: GEMDetId.h:54
uint32_t id_
Definition: DetId.h:69
static constexpr int32_t minLayerId
Definition: GEMDetId.h:30

◆ layerId()

constexpr GEMDetId GEMDetId::layerId ( ) const
inline

Return the corresponding LayerId (mask eta partition)

Definition at line 210 of file GEMDetId.h.

References chamberIdMask, GEMDetId(), and DetId::id_.

210 { return GEMDetId(id_ & chamberIdMask); }
static constexpr uint32_t chamberIdMask
Definition: GEMDetId.h:70
constexpr GEMDetId()
Definition: GEMDetId.h:75
uint32_t id_
Definition: DetId.h:69

◆ nlayers()

constexpr int GEMDetId::nlayers ( ) const
inline

Return total # of layers for this type of detector

Definition at line 213 of file GEMDetId.h.

References maxLayerId, maxLayerId0, maxStationId, and station().

Referenced by GEMCoPadDigiValidation::analyze(), GEMPadDigiValidation::analyze(), and GEMPadDigiClusterValidation::analyze().

213  {
214  return ((station() == 0) ? maxLayerId0 : ((station() > maxStationId) ? 0 : maxLayerId));
215  }
constexpr int station() const
Definition: GEMDetId.h:179
static constexpr int32_t maxLayerId0
Definition: GEMDetId.h:31
static constexpr int32_t maxStationId
Definition: GEMDetId.h:27
static constexpr int32_t maxLayerId
Definition: GEMDetId.h:32

◆ operator!=()

constexpr bool GEMDetId::operator!= ( const GEMDetId gen) const
inline

Definition at line 144 of file GEMDetId.h.

References chamber(), DetId::id_, ieta(), kMuonIdMask, layer(), region(), ring(), station(), and unpackId().

144  {
145  uint32_t rawid = gen.rawId();
146  if (rawid == id_)
147  return false;
148  int reg(0), ri(0), stn(-1), lay(0), chamb(0), iet(0);
149  unpackId(rawid, reg, ri, stn, lay, chamb, iet);
150  return (((id_ & kMuonIdMask) != (rawid & kMuonIdMask)) || (reg != region()) || (ri != ring()) ||
151  (stn != station()) || (lay != layer()) || (chamb != chamber()) || (iet != ieta()));
152  }
constexpr int station() const
Definition: GEMDetId.h:179
constexpr int region() const
Definition: GEMDetId.h:171
static constexpr void unpackId(const uint32_t &rawid, int &region, int &ring, int &station, int &layer, int &chamber, int &ieta)
Definition: GEMDetId.h:249
constexpr int layer() const
Definition: GEMDetId.h:190
constexpr int chamber() const
Definition: GEMDetId.h:183
constexpr int ring() const
Definition: GEMDetId.h:176
static constexpr uint32_t kMuonIdMask
Definition: GEMDetId.h:67
constexpr int ieta() const
Definition: GEMDetId.h:199
uint32_t id_
Definition: DetId.h:69

◆ operator<()

constexpr bool GEMDetId::operator< ( const GEMDetId r) const
inline

Sort Operator based on the raw detector id

Definition at line 155 of file GEMDetId.h.

References layer(), alignCSCRings::r, DetId::rawId(), and station().

155  {
156  if (r.station() == this->station()) {
157  if (this->layer() == r.layer()) {
158  return this->rawId() < r.rawId();
159  } else {
160  return (this->layer() < r.layer());
161  }
162  } else {
163  return this->station() < r.station();
164  }
165  }
constexpr int station() const
Definition: GEMDetId.h:179
constexpr int layer() const
Definition: GEMDetId.h:190
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57

◆ operator=()

constexpr GEMDetId& GEMDetId::operator= ( const DetId gen)
inline

Assignment from a generic cell id

Definition at line 118 of file GEMDetId.h.

References TauDecayModes::dec, Exception, MuonSubdetId::GEM, DetId::id_, MuonSubdetId::ME0, v11Format(), and v12Form().

118  {
119  if (!gen.null()) {
120  int subdet = gen.subdetId();
121  if (gen.det() != Muon || (subdet != MuonSubdetId::GEM && subdet != MuonSubdetId::ME0))
122  throw cms::Exception("InvalidDetId")
123  << "GEMDetId ctor: Cannot assign GEMDetID from " << std::hex << gen.rawId() << std::dec;
124  if (v11Format())
125  id_ = v12Form(gen.rawId());
126  else
127  id_ = gen.rawId();
128  } else {
129  id_ = gen.rawId();
130  }
131  return (*this);
132  }
static constexpr int GEM
Definition: MuonSubdetId.h:14
constexpr bool v11Format() const
Definition: GEMDetId.h:168
constexpr uint32_t v12Form() const
Definition: GEMDetId.h:217
Definition: Muon.py:1
static constexpr int ME0
Definition: MuonSubdetId.h:15
uint32_t id_
Definition: DetId.h:69

◆ operator==()

constexpr bool GEMDetId::operator== ( const GEMDetId gen) const
inline

Comparison operator

Definition at line 135 of file GEMDetId.h.

References chamber(), DetId::id_, ieta(), kMuonIdMask, layer(), region(), ring(), station(), and unpackId().

135  {
136  uint32_t rawid = gen.rawId();
137  if (rawid == id_)
138  return true;
139  int reg(0), ri(0), stn(-1), lay(0), chamb(0), iet(0);
140  unpackId(rawid, reg, ri, stn, lay, chamb, iet);
141  return (((id_ & kMuonIdMask) == (rawid & kMuonIdMask)) && (reg == region()) && (ri == ring()) &&
142  (stn == station()) && (lay == layer()) && (chamb == chamber()) && (iet == ieta()));
143  }
constexpr int station() const
Definition: GEMDetId.h:179
constexpr int region() const
Definition: GEMDetId.h:171
static constexpr void unpackId(const uint32_t &rawid, int &region, int &ring, int &station, int &layer, int &chamber, int &ieta)
Definition: GEMDetId.h:249
constexpr int layer() const
Definition: GEMDetId.h:190
constexpr int chamber() const
Definition: GEMDetId.h:183
constexpr int ring() const
Definition: GEMDetId.h:176
static constexpr uint32_t kMuonIdMask
Definition: GEMDetId.h:67
constexpr int ieta() const
Definition: GEMDetId.h:199
uint32_t id_
Definition: DetId.h:69

◆ region()

constexpr int GEMDetId::region ( ) const
inline

Region id: 0 for Barrel Not in use, +/-1 For +/- Endcap

Definition at line 171 of file GEMDetId.h.

References DetId::id_, minRegionId, RegionMask, and RegionStartBit.

Referenced by CSCDigiToRaw::add(), GEMCoPadDigiValidation::analyze(), GEMPadDigiClusterValidation::analyze(), GEMPadDigiValidation::analyze(), GEMStripDigiValidation::analyze(), GEMRecHitValidation::analyze(), GEMDAQStatusSource::analyze(), AlignableMuon::buildGEMEndcap(), GEMEfficiencyAnalyzer::buildStartingState(), GEMEffByGEMCSCSegmentSource::checkCoincidenceGE11(), PrimitiveConversion::convert_gem(), CSCDigiFilter::filterDigis(), GEMDetId(), GEMDQMEfficiencySourceBase::getKey(), GEMDQMEfficiencySourceBase::getReStEtKey(), GEMDQMEfficiencySourceBase::getReStLaChKey(), GEMDQMEfficiencySourceBase::getReStLaKey(), DetIdInfo::info(), fireworks::info(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), GEMDAQStatusSource::LoadROMap(), EMTFSubsystemCollector::make_copad_gem(), GEMDigiMatcher::matchPadsToSimTrack(), GEMDigiMatcher::nLayersWithClustersInSuperChamber(), GEMDigiMatcher::nLayersWithDigisInSuperChamber(), GEMDigiMatcher::nLayersWithPadsInSuperChamber(), operator!=(), operator==(), GEMDigiToRawModule::produce(), GEMRawToDigiModule::produce(), PrimitiveSelection::select_gem(), unpackId(), and v12Form().

171 { return (static_cast<int>((id_ >> RegionStartBit) & RegionMask) + minRegionId); }
static constexpr uint32_t RegionMask
Definition: GEMDetId.h:41
uint32_t id_
Definition: DetId.h:69
static constexpr uint32_t RegionStartBit
Definition: GEMDetId.h:40
static constexpr int32_t minRegionId
Definition: GEMDetId.h:20

◆ ring()

constexpr int GEMDetId::ring ( ) const
inline

◆ roll()

constexpr int GEMDetId::roll ( ) const
inline

EtaPartition id (also known as eta partition): each chamber is divided along the strip direction in several parts (ietas) GEM up to 12

Definition at line 194 of file GEMDetId.h.

References EtaPartitionStartBit, and DetId::id_.

Referenced by CSCEventData::add(), GEMTnPEfficiencyTask::analyze(), GEMGeometryBuilderFromCondDB::build(), PrimitiveConversion::convert_gem(), GEMSimHitMatcher::hitPartitions(), EMTFSubsystemCollector::make_copad_gem(), GEMDigiMatcher::matchPadsToSimTrack(), GEMRecHitMatcher::partitionNumbers(), GEMDigiMatcher::partitionNumbers(), GEMDigiMatcher::partitionNumbersWithCoPads(), GEMInternalCluster::roll1(), GEMInternalCluster::roll2(), and PrimitiveSelection::select_gem().

194  {
195  return (static_cast<int>((id_ >> EtaPartitionStartBit) & EtaPartitionMask)); // value 0 is used as wild card
196  }
static constexpr uint32_t EtaPartitionStartBit
Definition: GEMDetId.h:59
std::bitset< maskSIZE > EtaPartitionMask
uint32_t id_
Definition: DetId.h:69

◆ station()

constexpr int GEMDetId::station ( ) const
inline

Station id : the station is the set of chambers at same disk

Definition at line 179 of file GEMDetId.h.

References DetId::id_, minStationId0, StationMask, and StationStartBit.

Referenced by CSCDigiToRaw::add(), GEMCoPadDigiValidation::analyze(), GEMPadDigiClusterValidation::analyze(), GEMPadDigiValidation::analyze(), GEMDAQStatusSource::analyze(), GEMEfficiencyAnalyzer::analyze(), GEMRecHitProducer::beginRun(), GEMGeometryBuilder::build(), GEMGeometryBuilder::buildChamber(), AlignableMuon::buildGEMEndcap(), GEMGeometryParsFromDD::buildGeometry(), GEMEfficiencyAnalyzer::buildStartingState(), GEMGeometryBuilder::buildSuperChamber(), GEMSimHitMatcher::chamberIds(), GEMEffByGEMCSCSegmentSource::checkCoincidenceGE11(), PrimitiveConversion::convert_gem(), GEMSimHitMatcher::detIds(), CSCDigiFilter::filterDigis(), GEMEfficiencyAnalyzer::findCSCSegmentBeam(), GEMEfficiencyAnalyzer::findCSCSegmentCosmics(), GEMDetId(), GlobalMuonRefitter::getFirstHits(), GlobalMuonRefitter::getRidOfSelectStationHits(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), fireworks::info(), MuonGEMDetLayerGeometryBuilder::isFront(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), GEMDigiSource::LoadROMap(), GEMDAQStatusSource::LoadROMap(), EMTFSubsystemCollector::make_copad_gem(), GEMDigiMatcher::matchPadsToSimTrack(), nlayers(), GEMDigiMatcher::nLayersWithClustersInSuperChamber(), GEMDigiMatcher::nLayersWithDigisInSuperChamber(), GEMDigiMatcher::nLayersWithPadsInSuperChamber(), operator!=(), operator<(), operator==(), GEMDigiToRawModule::produce(), GEMRawToDigiModule::produce(), GEMRecHitProducer::produce(), PrimitiveSelection::select_gem(), GEMDigiMatcher::selectDetIds(), TAMuonChamberMatch::station(), reco::MuonChamberMatch::station(), subsystem(), unpackId(), and v12Form().

179 { return (static_cast<int>((id_ >> StationStartBit) & StationMask) + minStationId0); }
static constexpr uint32_t StationStartBit
Definition: GEMDetId.h:46
static constexpr uint32_t StationMask
Definition: GEMDetId.h:47
static constexpr int32_t minStationId0
Definition: GEMDetId.h:24
uint32_t id_
Definition: DetId.h:69

◆ subsystem()

GEMSubDetId::Station GEMDetId::subsystem ( ) const

Definition at line 7 of file GEMDetId.cc.

References GEMSubDetId::station(), and station().

Referenced by isGE11(), isGE21(), isME0(), and GEMEtaPartition::subsystem().

7 { return GEMSubDetId::station(station()); }
constexpr int station() const
Definition: GEMDetId.h:179
static Station station(uint16_t st)
Definition: GEMSubDetId.h:13

◆ superChamberId()

constexpr GEMDetId GEMDetId::superChamberId ( ) const
inline

◆ unpackId()

static constexpr void GEMDetId::unpackId ( const uint32_t &  rawid,
int &  region,
int &  ring,
int &  station,
int &  layer,
int &  chamber,
int &  ieta 
)
inlinestaticprivate

Definition at line 249 of file GEMDetId.h.

References chamber(), ChamberMask, ChamberStartBit, ChamberStartBitM, EtaPartitionStartBit, EtaPartitionStartBitM, EtaPartitionStartBitP, MuonSubdetId::GEM, ieta(), DetId::kDetMask, DetId::kDetOffset, kGEMIdFormat, DetId::kSubdetMask, DetId::kSubdetOffset, layer(), LayerMask, LayerMaskP, LayerStartBit, LayerStartBitM, MuonSubdetId::ME0, minChamberId, minLayerId, minRegionId, minRingId, minStationId, minStationId0, DetId::Muon, region(), RegionMask, RegionStartBit, ring(), RingMask, RingStartBit, station(), StationMask, and StationStartBit.

Referenced by operator!=(), operator==(), and v12Form().

250  {
251  if (((rawid >> DetId::kDetOffset) & DetId::kDetMask) == DetId::Muon) {
252  int subdet = ((rawid >> DetId::kSubdetOffset) & DetId::kSubdetMask);
253  if (subdet == MuonSubdetId::GEM) {
254  region = static_cast<int>(((rawid >> RegionStartBit) & RegionMask) + minRegionId);
255  ring = (static_cast<int>((rawid >> RingStartBit) & RingMask) + minRingId);
256  chamber = (static_cast<int>((rawid >> ChamberStartBit) & ChamberMask) + (minChamberId + 1));
257  if ((rawid & kGEMIdFormat) == 0) {
258  station = (static_cast<int>((rawid >> StationStartBit) & StationMask) + minStationId);
259  layer = (static_cast<int>((rawid >> LayerStartBit) & LayerMaskP) + minLayerId);
260  ieta = (static_cast<int>((rawid >> EtaPartitionStartBitP) & EtaPartitionMask));
261  } else {
262  station = (static_cast<int>((rawid >> StationStartBit) & StationMask) + minStationId0);
263  layer = (static_cast<int>((rawid >> LayerStartBit) & LayerMask) + minLayerId);
264  ieta = (static_cast<int>((rawid >> EtaPartitionStartBit) & EtaPartitionMask));
265  }
266  } else if (subdet == MuonSubdetId::ME0) {
267  region = static_cast<int>(((rawid >> RegionStartBit) & RegionMask) + minRegionId);
268  ring = 1;
269  station = 0;
270  chamber = (static_cast<int>((rawid >> ChamberStartBitM) & ChamberMask) + (minChamberId));
271  layer = (static_cast<int>((rawid >> LayerStartBitM) & LayerMask) + minLayerId);
272  ieta = (static_cast<int>((rawid >> EtaPartitionStartBitM) & EtaPartitionMask));
273  }
274  }
275  }
static constexpr uint32_t LayerMask
Definition: GEMDetId.h:56
constexpr int station() const
Definition: GEMDetId.h:179
static constexpr uint32_t StationStartBit
Definition: GEMDetId.h:46
constexpr int region() const
Definition: GEMDetId.h:171
static constexpr int GEM
Definition: MuonSubdetId.h:14
static constexpr uint32_t LayerStartBitM
Definition: GEMDetId.h:55
static constexpr uint32_t LayerMaskP
Definition: GEMDetId.h:57
static constexpr uint32_t RingMask
Definition: GEMDetId.h:44
static const int kSubdetOffset
Definition: DetId.h:22
constexpr int layer() const
Definition: GEMDetId.h:190
constexpr int chamber() const
Definition: GEMDetId.h:183
static constexpr uint32_t RegionMask
Definition: GEMDetId.h:41
static constexpr uint32_t ChamberStartBit
Definition: GEMDetId.h:49
static constexpr uint32_t LayerStartBit
Definition: GEMDetId.h:54
static const int kSubdetMask
Definition: DetId.h:20
static constexpr uint32_t StationMask
Definition: GEMDetId.h:47
static constexpr uint32_t EtaPartitionStartBitP
Definition: GEMDetId.h:60
static constexpr int32_t minStationId0
Definition: GEMDetId.h:24
static constexpr uint32_t EtaPartitionStartBit
Definition: GEMDetId.h:59
std::bitset< maskSIZE > EtaPartitionMask
constexpr int ring() const
Definition: GEMDetId.h:176
static constexpr int ME0
Definition: MuonSubdetId.h:15
constexpr int ieta() const
Definition: GEMDetId.h:199
static constexpr int32_t minRingId
Definition: GEMDetId.h:22
static const int kDetMask
Definition: DetId.h:19
static constexpr uint32_t kGEMIdFormat
Definition: GEMDetId.h:66
static constexpr uint32_t RegionStartBit
Definition: GEMDetId.h:40
static const int kDetOffset
Definition: DetId.h:21
static constexpr uint32_t ChamberStartBitM
Definition: GEMDetId.h:50
static constexpr int32_t minChamberId
Definition: GEMDetId.h:28
static constexpr uint32_t EtaPartitionStartBitM
Definition: GEMDetId.h:61
static constexpr int32_t minStationId
Definition: GEMDetId.h:25
static constexpr uint32_t RingStartBit
Definition: GEMDetId.h:43
static constexpr int32_t minLayerId
Definition: GEMDetId.h:30
static constexpr uint32_t ChamberMask
Definition: GEMDetId.h:51
static constexpr int32_t minRegionId
Definition: GEMDetId.h:20

◆ v11Format()

constexpr bool GEMDetId::v11Format ( ) const
inline

Check the format

Definition at line 168 of file GEMDetId.h.

References DetId::id_, and kGEMIdFormat.

Referenced by GEMDetId(), and operator=().

168 { return ((id_ & kGEMIdFormat) == 0); }
static constexpr uint32_t kGEMIdFormat
Definition: GEMDetId.h:66
uint32_t id_
Definition: DetId.h:69

◆ v12Form() [1/2]

constexpr uint32_t GEMDetId::v12Form ( ) const
inline

Definition at line 217 of file GEMDetId.h.

References DetId::id_, and v12Form().

Referenced by GEMDetId(), operator=(), v12Form(), and v12FromV11().

217 { return v12Form(id_); }
constexpr uint32_t v12Form() const
Definition: GEMDetId.h:217
uint32_t id_
Definition: DetId.h:69

◆ v12Form() [2/2]

static constexpr uint32_t GEMDetId::v12Form ( const uint32_t &  inpid)
inlinestatic

Definition at line 219 of file GEMDetId.h.

References chamber(), ChamberMask, ChamberStartBit, EtaPartitionMask, EtaPartitionStartBit, MuonSubdetId::GEM, ieta(), DetId::kDetMask, DetId::kDetOffset, kGEMIdFormat, DetId::kSubdetMask, DetId::kSubdetOffset, layer(), LayerMask, LayerStartBit, minChamberId, minLayerId, minRegionId, minRingId, minStationId0, DetId::Muon, region(), RegionMask, RegionStartBit, ring(), RingMask, RingStartBit, station(), StationMask, StationStartBit, and unpackId().

219  {
220  uint32_t rawid(inpid);
221  if ((rawid & kGEMIdFormat) == 0) {
222  int region(0), ring(0), station(-1), layer(0), chamber(0), ieta(0);
224  int regionInBits = region - minRegionId;
225  int ringInBits = ring - minRingId;
226  int stationInBits = station - minStationId0;
227  int layerInBits = layer - minLayerId;
228  int chamberInBits = chamber - (minChamberId + 1);
229  int ietaInBits = ieta;
230  rawid = (((DetId::Muon & DetId::kDetMask) << DetId::kDetOffset) |
232  ((regionInBits & RegionMask) << RegionStartBit) | ((ringInBits & RingMask) << RingStartBit) |
233  ((stationInBits & StationMask) << StationStartBit) | ((layerInBits & LayerMask) << LayerStartBit) |
234  ((chamberInBits & ChamberMask) << ChamberStartBit) |
235  ((ietaInBits & EtaPartitionMask) << EtaPartitionStartBit) | kGEMIdFormat);
236  }
237  return rawid;
238  }
static constexpr uint32_t LayerMask
Definition: GEMDetId.h:56
constexpr int station() const
Definition: GEMDetId.h:179
static constexpr uint32_t StationStartBit
Definition: GEMDetId.h:46
constexpr int region() const
Definition: GEMDetId.h:171
static constexpr int GEM
Definition: MuonSubdetId.h:14
static constexpr void unpackId(const uint32_t &rawid, int &region, int &ring, int &station, int &layer, int &chamber, int &ieta)
Definition: GEMDetId.h:249
static constexpr uint32_t RingMask
Definition: GEMDetId.h:44
static const int kSubdetOffset
Definition: DetId.h:22
constexpr int layer() const
Definition: GEMDetId.h:190
constexpr int chamber() const
Definition: GEMDetId.h:183
static constexpr uint32_t RegionMask
Definition: GEMDetId.h:41
static constexpr uint32_t ChamberStartBit
Definition: GEMDetId.h:49
static constexpr uint32_t LayerStartBit
Definition: GEMDetId.h:54
static const int kSubdetMask
Definition: DetId.h:20
static constexpr uint32_t StationMask
Definition: GEMDetId.h:47
static constexpr int32_t minStationId0
Definition: GEMDetId.h:24
static constexpr uint32_t EtaPartitionStartBit
Definition: GEMDetId.h:59
constexpr int ring() const
Definition: GEMDetId.h:176
constexpr int ieta() const
Definition: GEMDetId.h:199
static constexpr uint32_t EtaPartitionMask
Definition: GEMDetId.h:62
static constexpr int32_t minRingId
Definition: GEMDetId.h:22
static const int kDetMask
Definition: DetId.h:19
static constexpr uint32_t kGEMIdFormat
Definition: GEMDetId.h:66
static constexpr uint32_t RegionStartBit
Definition: GEMDetId.h:40
static const int kDetOffset
Definition: DetId.h:21
static constexpr int32_t minChamberId
Definition: GEMDetId.h:28
static constexpr uint32_t RingStartBit
Definition: GEMDetId.h:43
static constexpr int32_t minLayerId
Definition: GEMDetId.h:30
static constexpr uint32_t ChamberMask
Definition: GEMDetId.h:51
static constexpr int32_t minRegionId
Definition: GEMDetId.h:20

◆ v12FromV11()

constexpr void GEMDetId::v12FromV11 ( const uint32_t &  rawid)
inlineprivate

Definition at line 247 of file GEMDetId.h.

References DetId::id_, and v12Form().

247 { id_ = v12Form(rawid); }
constexpr uint32_t v12Form() const
Definition: GEMDetId.h:217
uint32_t id_
Definition: DetId.h:69

Member Data Documentation

◆ chamberIdMask

constexpr uint32_t GEMDetId::chamberIdMask = ~(EtaPartitionMask << EtaPartitionStartBit)
static

Definition at line 70 of file GEMDetId.h.

Referenced by GEMGeometryBuilder::build(), chamberId(), and layerId().

◆ ChamberMask

constexpr uint32_t GEMDetId::ChamberMask = 0x3F
staticprivate

Definition at line 51 of file GEMDetId.h.

Referenced by chamber(), GEMDetId(), unpackId(), and v12Form().

◆ ChamberNumBits

constexpr uint32_t GEMDetId::ChamberNumBits = 6
staticprivate

Definition at line 48 of file GEMDetId.h.

◆ ChamberStartBit

constexpr uint32_t GEMDetId::ChamberStartBit = StationStartBit + StationNumBits
staticprivate

Definition at line 49 of file GEMDetId.h.

Referenced by chamber(), GEMDetId(), unpackId(), and v12Form().

◆ ChamberStartBitM

constexpr uint32_t GEMDetId::ChamberStartBitM = RegionStartBit + RegionNumBits
staticprivate

Definition at line 50 of file GEMDetId.h.

Referenced by unpackId().

◆ EtaPartitionMask

constexpr uint32_t GEMDetId::EtaPartitionMask = 0x1F
staticprivate

Definition at line 62 of file GEMDetId.h.

Referenced by v12Form().

◆ EtaPartitionNumBits

constexpr uint32_t GEMDetId::EtaPartitionNumBits = 5
staticprivate

Definition at line 58 of file GEMDetId.h.

◆ EtaPartitionStartBit

constexpr uint32_t GEMDetId::EtaPartitionStartBit = LayerStartBit + LayerNumBits
staticprivate

Definition at line 59 of file GEMDetId.h.

Referenced by GEMDetId(), ieta(), roll(), unpackId(), and v12Form().

◆ EtaPartitionStartBitM

constexpr uint32_t GEMDetId::EtaPartitionStartBitM = LayerStartBitM + LayerNumBits
staticprivate

Definition at line 61 of file GEMDetId.h.

Referenced by unpackId().

◆ EtaPartitionStartBitP

constexpr uint32_t GEMDetId::EtaPartitionStartBitP = LayerStartBit + LayerNumBitsP
staticprivate

Definition at line 60 of file GEMDetId.h.

Referenced by unpackId().

◆ FormatMask

constexpr uint32_t GEMDetId::FormatMask = 0x1
staticprivate

Definition at line 65 of file GEMDetId.h.

◆ FormatNumBits

constexpr uint32_t GEMDetId::FormatNumBits = 1
staticprivate

Definition at line 63 of file GEMDetId.h.

◆ FormatStartBit

constexpr uint32_t GEMDetId::FormatStartBit = EtaPartitionStartBit + EtaPartitionNumBits
staticprivate

Definition at line 64 of file GEMDetId.h.

◆ kGEMIdFormat

constexpr uint32_t GEMDetId::kGEMIdFormat = 0x1000000
staticprivate

Definition at line 66 of file GEMDetId.h.

Referenced by GEMDetId(), unpackId(), v11Format(), and v12Form().

◆ kMuonIdMask

constexpr uint32_t GEMDetId::kMuonIdMask = 0xF0000000
staticprivate

Definition at line 67 of file GEMDetId.h.

Referenced by operator!=(), and operator==().

◆ LayerMask

constexpr uint32_t GEMDetId::LayerMask = 0x1F
staticprivate

Definition at line 56 of file GEMDetId.h.

Referenced by GEMDetId(), layer(), unpackId(), and v12Form().

◆ LayerMaskP

constexpr uint32_t GEMDetId::LayerMaskP = 0x3
staticprivate

Definition at line 57 of file GEMDetId.h.

Referenced by unpackId().

◆ LayerNumBits

constexpr uint32_t GEMDetId::LayerNumBits = 5
staticprivate

Definition at line 52 of file GEMDetId.h.

◆ LayerNumBitsP

constexpr uint32_t GEMDetId::LayerNumBitsP = 2
staticprivate

Definition at line 53 of file GEMDetId.h.

◆ LayerStartBit

constexpr uint32_t GEMDetId::LayerStartBit = ChamberStartBit + ChamberNumBits
staticprivate

Definition at line 54 of file GEMDetId.h.

Referenced by GEMDetId(), layer(), unpackId(), and v12Form().

◆ LayerStartBitM

constexpr uint32_t GEMDetId::LayerStartBitM = ChamberStartBitM + ChamberNumBits
staticprivate

Definition at line 55 of file GEMDetId.h.

Referenced by unpackId().

◆ maxChamberId

constexpr int32_t GEMDetId::maxChamberId = 36
static

◆ maxEtaPartitionId

constexpr int32_t GEMDetId::maxEtaPartitionId = 16
static

Definition at line 34 of file GEMDetId.h.

Referenced by GEMDetId().

◆ maxLayerId

constexpr int32_t GEMDetId::maxLayerId = 2
static

◆ maxLayerId0

constexpr int32_t GEMDetId::maxLayerId0 = 6
static

◆ maxRegionId

constexpr int32_t GEMDetId::maxRegionId = 1
static

◆ maxRingId

constexpr int32_t GEMDetId::maxRingId = 3
static

Definition at line 23 of file GEMDetId.h.

Referenced by GEMDetId().

◆ maxRollId

constexpr int32_t GEMDetId::maxRollId = maxEtaPartitionId
static

◆ maxStationId

constexpr int32_t GEMDetId::maxStationId = 2
static

◆ minChamberId

constexpr int32_t GEMDetId::minChamberId = 0
static

◆ minEtaPartitionId

constexpr int32_t GEMDetId::minEtaPartitionId = 0
static

Definition at line 33 of file GEMDetId.h.

◆ minLayerId

constexpr int32_t GEMDetId::minLayerId = 0
static

◆ minRegionId

constexpr int32_t GEMDetId::minRegionId = -1
static

◆ minRingId

constexpr int32_t GEMDetId::minRingId = 1
static

◆ minRollId

constexpr int32_t GEMDetId::minRollId = minEtaPartitionId
static

◆ minStationId

constexpr int32_t GEMDetId::minStationId = 1
static

Definition at line 25 of file GEMDetId.h.

Referenced by GEMELMap::convertDummy(), and unpackId().

◆ minStationId0

constexpr int32_t GEMDetId::minStationId0 = 0
static

◆ RegionMask

constexpr uint32_t GEMDetId::RegionMask = 0x3
staticprivate

Definition at line 41 of file GEMDetId.h.

Referenced by GEMDetId(), region(), unpackId(), and v12Form().

◆ RegionNumBits

constexpr uint32_t GEMDetId::RegionNumBits = 2
staticprivate

Definition at line 39 of file GEMDetId.h.

◆ RegionStartBit

constexpr uint32_t GEMDetId::RegionStartBit = 0
staticprivate

Definition at line 40 of file GEMDetId.h.

Referenced by GEMDetId(), region(), unpackId(), and v12Form().

◆ RingMask

constexpr uint32_t GEMDetId::RingMask = 0x7
staticprivate

Definition at line 44 of file GEMDetId.h.

Referenced by GEMDetId(), ring(), unpackId(), and v12Form().

◆ RingNumBits

constexpr uint32_t GEMDetId::RingNumBits = 3
staticprivate

Definition at line 42 of file GEMDetId.h.

◆ RingStartBit

constexpr uint32_t GEMDetId::RingStartBit = RegionStartBit + RegionNumBits
staticprivate

Definition at line 43 of file GEMDetId.h.

Referenced by GEMDetId(), ring(), unpackId(), and v12Form().

◆ StationMask

constexpr uint32_t GEMDetId::StationMask = 0x7
staticprivate

Definition at line 47 of file GEMDetId.h.

Referenced by GEMDetId(), station(), unpackId(), and v12Form().

◆ StationNumBits

constexpr uint32_t GEMDetId::StationNumBits = 3
staticprivate

Definition at line 45 of file GEMDetId.h.

◆ StationStartBit

constexpr uint32_t GEMDetId::StationStartBit = RingStartBit + RingNumBits
staticprivate

Definition at line 46 of file GEMDetId.h.

Referenced by GEMDetId(), station(), unpackId(), and v12Form().

◆ superChamberIdMask

constexpr uint32_t GEMDetId::superChamberIdMask = chamberIdMask + ~(LayerMask << LayerStartBit)
static

Definition at line 71 of file GEMDetId.h.

Referenced by superChamberId().