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 (DetId id)
 
constexpr GEMDetId (int region, int ring, int station, int layer, int chamber, int roll)
 Construct from fully qualified identifier. More...
 
constexpr GEMDetId (uint32_t id)
 
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 (Detector det, int subdet)
 Create an id, filling the detector and subdetector fields as specified. More...
 
constexpr DetId (uint32_t id)
 Create an id from a raw number. 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

constexpr static uint32_t v12Form (const uint32_t &inpid)
 

Static Public Attributes

static constexpr uint32_t chamberIdMask = ~(RollMask << RollStartBit)
 
static constexpr int32_t maxChamberId = 36
 
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 = 16
 
static constexpr int32_t maxStationId = 2
 
static constexpr int32_t minChamberId = 0
 
static constexpr int32_t minLayerId = 0
 
static constexpr int32_t minRegionId = -1
 
static constexpr int32_t minRingId = 1
 
static constexpr int32_t minRollId = 0
 
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

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

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 FormatMask = 0x1
 
static constexpr uint32_t FormatNumBits = 1
 
static constexpr uint32_t FormatStartBit = RollStartBit + RollNumBits
 
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 RollMask = 0x1F
 
static constexpr uint32_t RollNumBits = 5
 
static constexpr uint32_t RollStartBit = LayerStartBit + LayerNumBits
 
static constexpr uint32_t RollStartBitM = LayerStartBitM + LayerNumBits
 
static constexpr uint32_t RollStartBitP = LayerStartBit + LayerNumBitsP
 
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 ( )
inlineconstexpr

Create a null detId

Definition at line 73 of file GEMDetId.h.

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

◆ GEMDetId() [2/4]

constexpr GEMDetId::GEMDetId ( uint32_t  id)
inlineconstexpr

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 76 of file GEMDetId.h.

76  : DetId(id) {
78  throw cms::Exception("InvalidDetId")
79  << "GEMDetId ctor: det: " << det() << " subdet: " << subdetId() << " is not a valid GEM id\n";
80 
81  if (v11Format())
82  id_ = v12Form(id);
83  }

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

◆ GEMDetId() [3/4]

constexpr GEMDetId::GEMDetId ( DetId  id)
inlineconstexpr

Construct from a generic cell ID

Definition at line 85 of file GEMDetId.h.

85  : DetId(id) {
87  throw cms::Exception("InvalidDetId")
88  << "GEMDetId ctor: det: " << det() << " subdet: " << subdetId() << " is not a valid GEM id\n";
89  if (v11Format())
90  id_ = v12Form(id.rawId());
91  }

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

◆ GEMDetId() [4/4]

constexpr GEMDetId::GEMDetId ( int  region,
int  ring,
int  station,
int  layer,
int  chamber,
int  roll 
)
inlineconstexpr

Construct from fully qualified identifier.

Definition at line 93 of file GEMDetId.h.

95  if (region < minRegionId || region > maxRegionId || ring < minRingId || ring > maxRingId ||
96  station < minStationId0 || station > maxStationId || layer < minLayerId || layer > maxLayerId0 ||
97  chamber < minChamberId || chamber > maxChamberId || roll < minRollId || roll > maxRollId)
98  throw cms::Exception("InvalidDetId")
99  << "GEMDetId ctor: Invalid parameters: region " << region << " ring " << ring << " station " << station
100  << " layer " << layer << " chamber " << chamber << " roll " << roll << std::endl;
101 
102  int regionInBits = region - minRegionId;
103  int ringInBits = ring - minRingId;
104  int stationInBits = station - minStationId0;
105  int layerInBits = layer - minLayerId;
106  int chamberInBits = chamber - (minChamberId + 1);
107  int rollInBits = roll;
108 
109  id_ |= ((regionInBits & RegionMask) << RegionStartBit | (ringInBits & RingMask) << RingStartBit |
110  (stationInBits & StationMask) << StationStartBit | (layerInBits & LayerMask) << LayerStartBit |
111  (chamberInBits & ChamberMask) << ChamberStartBit | (rollInBits & RollMask) << RollStartBit | kGEMIdFormat);
112  }

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

Member Function Documentation

◆ chamber()

constexpr int GEMDetId::chamber ( ) const
inlineconstexpr

◆ chamberId()

constexpr GEMDetId GEMDetId::chamberId ( ) const
inlineconstexpr

◆ isGE11()

bool GEMDetId::isGE11 ( ) const

Definition at line 9 of file GEMDetId.cc.

References GEMSubDetId::GE11, and subsystem().

Referenced by GEMEtaPartition::isGE11().

◆ isGE21()

bool GEMDetId::isGE21 ( ) const

◆ isME0()

bool GEMDetId::isME0 ( ) const

Definition at line 13 of file GEMDetId.cc.

13 { return subsystem() == GEMSubDetId::Station::ME0; }

References GEMSubDetId::ME0, and subsystem().

Referenced by GEMEtaPartition::isME0().

◆ layer()

constexpr int GEMDetId::layer ( ) const
inlineconstexpr

◆ layerId()

constexpr GEMDetId GEMDetId::layerId ( ) const
inlineconstexpr

Return the corresponding LayerId (mask eta partition)

Definition at line 202 of file GEMDetId.h.

202 { return GEMDetId(id_ & chamberIdMask); }

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

◆ nlayers()

constexpr int GEMDetId::nlayers ( ) const
inlineconstexpr

Return total # of layers for this type of detector

Definition at line 205 of file GEMDetId.h.

205  {
206  return ((station() == 0) ? maxLayerId0 : ((station() > maxStationId) ? 0 : maxLayerId));
207  }

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

◆ operator!=()

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

Definition at line 141 of file GEMDetId.h.

141  {
142  uint32_t rawid = gen.rawId();
143  if (rawid == id_)
144  return false;
145  int reg(0), ri(0), stn(-1), lay(0), chamb(0), rol(0);
146  unpackId(rawid, reg, ri, stn, lay, chamb, rol);
147  return (((id_ & kMuonIdMask) != (rawid & kMuonIdMask)) || (reg != region()) || (ri != ring()) ||
148  (stn != station()) || (lay != layer()) || (chamb != chamber()) || (rol != roll()));
149  }

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

◆ operator<()

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

Sort Operator based on the raw detector id

Definition at line 152 of file GEMDetId.h.

152  {
153  if (r.station() == this->station()) {
154  if (this->layer() == r.layer()) {
155  return this->rawId() < r.rawId();
156  } else {
157  return (this->layer() < r.layer());
158  }
159  } else {
160  return this->station() < r.station();
161  }
162  }

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

◆ operator=()

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

Assignment from a generic cell id

Definition at line 115 of file GEMDetId.h.

115  {
116  if (!gen.null()) {
117  int subdet = gen.subdetId();
118  if (gen.det() != Muon || (subdet != MuonSubdetId::GEM && subdet != MuonSubdetId::ME0))
119  throw cms::Exception("InvalidDetId")
120  << "GEMDetId ctor: Cannot assign GEMDetID from " << std::hex << gen.rawId() << std::dec;
121  if (v11Format())
122  id_ = v12Form(gen.rawId());
123  else
124  id_ = gen.rawId();
125  } else {
126  id_ = gen.rawId();
127  }
128  return (*this);
129  }

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

◆ operator==()

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

Comparison operator

Definition at line 132 of file GEMDetId.h.

132  {
133  uint32_t rawid = gen.rawId();
134  if (rawid == id_)
135  return true;
136  int reg(0), ri(0), stn(-1), lay(0), chamb(0), rol(0);
137  unpackId(rawid, reg, ri, stn, lay, chamb, rol);
138  return (((id_ & kMuonIdMask) == (rawid & kMuonIdMask)) && (reg == region()) && (ri == ring()) &&
139  (stn == station()) && (lay == layer()) && (chamb == chamber()) && (rol == roll()));
140  }

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

◆ region()

constexpr int GEMDetId::region ( ) const
inlineconstexpr

◆ ring()

constexpr int GEMDetId::ring ( ) const
inlineconstexpr

◆ roll()

constexpr int GEMDetId::roll ( ) const
inlineconstexpr

◆ station()

constexpr int GEMDetId::station ( ) const
inlineconstexpr

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

Definition at line 176 of file GEMDetId.h.

176 { return (static_cast<int>((id_ >> StationStartBit) & StationMask) + minStationId0); }

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

Referenced by CSCDigiToRaw::add(), GEMCoPadDigiValidation::analyze(), GEMPadDigiClusterValidation::analyze(), GEMPadDigiValidation::analyze(), GEMRecHitSource::analyze(), GEMDigiSource::analyze(), GEMDAQStatusSource::analyze(), CSCGEMMotherboard::bestMatchingPad(), GEMGeometryBuilder::build(), GEMGeometryBuilder::buildChamber(), GEMGeometryBuilder::buildSuperChamber(), GEMSimHitMatcher::chamberIds(), PrimitiveConversion::convert_gem(), GEMSimHitMatcher::detIds(), GEMOfflineMonitor::doDigiOccupancy(), GEMDetId(), GEMDQMBase::GenerateMEPerChamber(), GlobalMuonRefitter::getFirstHits(), GlobalMuonRefitter::getRidOfSelectStationHits(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), fireworks::info(), GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), EMTFSubsystemCollector::make_copad_gem(), CSCGEMMotherboard::matchingPads(), nlayers(), GEMDigiMatcher::nLayersWithClustersInSuperChamber(), GEMDigiMatcher::nLayersWithDigisInSuperChamber(), GEMDigiMatcher::nLayersWithPadsInSuperChamber(), operator!=(), operator<(), operator==(), PrimitiveSelection::select_gem(), GEMDigiMatcher::selectDetIds(), TAMuonChamberMatch::station(), reco::MuonChamberMatch::station(), subsystem(), unpackId(), and v12Form().

◆ subsystem()

GEMSubDetId::Station GEMDetId::subsystem ( ) const

Definition at line 7 of file GEMDetId.cc.

7 { return GEMSubDetId::station(station()); }

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

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

◆ superChamberId()

constexpr GEMDetId GEMDetId::superChamberId ( ) const
inlineconstexpr

◆ unpackId()

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

Definition at line 241 of file GEMDetId.h.

242  {
243  if (((rawid >> DetId::kDetOffset) & DetId::kDetMask) == DetId::Muon) {
244  int subdet = ((rawid >> DetId::kSubdetOffset) & DetId::kSubdetMask);
245  if (subdet == MuonSubdetId::GEM) {
246  region = static_cast<int>(((rawid >> RegionStartBit) & RegionMask) + minRegionId);
247  ring = (static_cast<int>((rawid >> RingStartBit) & RingMask) + minRingId);
248  chamber = (static_cast<int>((rawid >> ChamberStartBit) & ChamberMask) + (minChamberId + 1));
249  if ((rawid & kGEMIdFormat) == 0) {
250  station = (static_cast<int>((rawid >> StationStartBit) & StationMask) + minStationId);
251  layer = (static_cast<int>((rawid >> LayerStartBit) & LayerMaskP) + minLayerId);
252  roll = (static_cast<int>((rawid >> RollStartBitP) & RollMask));
253  } else {
254  station = (static_cast<int>((rawid >> StationStartBit) & StationMask) + minStationId0);
255  layer = (static_cast<int>((rawid >> LayerStartBit) & LayerMask) + minLayerId);
256  roll = (static_cast<int>((rawid >> RollStartBit) & RollMask));
257  }
258  } else if (subdet == MuonSubdetId::ME0) {
259  region = static_cast<int>(((rawid >> RegionStartBit) & RegionMask) + minRegionId);
260  ring = 1;
261  station = 0;
262  chamber = (static_cast<int>((rawid >> ChamberStartBitM) & ChamberMask) + (minChamberId));
263  layer = (static_cast<int>((rawid >> LayerStartBitM) & LayerMask) + minLayerId);
264  roll = (static_cast<int>((rawid >> RollStartBitM) & RollMask));
265  }
266  }
267  }

References chamber(), ChamberMask, ChamberStartBit, ChamberStartBitM, MuonSubdetId::GEM, 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, roll(), RollStartBit, RollStartBitM, RollStartBitP, station(), StationMask, and StationStartBit.

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

◆ v11Format()

constexpr bool GEMDetId::v11Format ( ) const
inlineconstexpr

Check the format

Definition at line 165 of file GEMDetId.h.

165 { return ((id_ & kGEMIdFormat) == 0); }

References DetId::id_, and kGEMIdFormat.

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

◆ v12Form() [1/2]

constexpr uint32_t GEMDetId::v12Form ( ) const
inlineconstexpr

Definition at line 209 of file GEMDetId.h.

209 { return v12Form(id_); }

References DetId::id_, and v12Form().

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

◆ v12Form() [2/2]

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

Definition at line 211 of file GEMDetId.h.

211  {
212  uint32_t rawid(inpid);
213  if ((rawid & kGEMIdFormat) == 0) {
214  int region(0), ring(0), station(-1), layer(0), chamber(0), roll(0);
216  int regionInBits = region - minRegionId;
217  int ringInBits = ring - minRingId;
218  int stationInBits = station - minStationId0;
219  int layerInBits = layer - minLayerId;
220  int chamberInBits = chamber - (minChamberId + 1);
221  int rollInBits = roll;
222  rawid = (((DetId::Muon & DetId::kDetMask) << DetId::kDetOffset) |
224  ((regionInBits & RegionMask) << RegionStartBit) | ((ringInBits & RingMask) << RingStartBit) |
225  ((stationInBits & StationMask) << StationStartBit) | ((layerInBits & LayerMask) << LayerStartBit) |
226  ((chamberInBits & ChamberMask) << ChamberStartBit) | ((rollInBits & RollMask) << RollStartBit) |
227  kGEMIdFormat);
228  }
229  return rawid;
230  }

References chamber(), ChamberMask, ChamberStartBit, MuonSubdetId::GEM, 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, roll(), RollMask, RollStartBit, station(), StationMask, StationStartBit, and unpackId().

◆ v12FromV11()

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

Definition at line 239 of file GEMDetId.h.

239 { id_ = v12Form(rawid); }

References DetId::id_, and v12Form().

Member Data Documentation

◆ chamberIdMask

constexpr uint32_t GEMDetId::chamberIdMask = ~(RollMask << RollStartBit)
staticconstexpr

Definition at line 68 of file GEMDetId.h.

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

◆ ChamberMask

constexpr uint32_t GEMDetId::ChamberMask = 0x3F
staticconstexprprivate

Definition at line 49 of file GEMDetId.h.

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

◆ ChamberNumBits

constexpr uint32_t GEMDetId::ChamberNumBits = 6
staticconstexprprivate

Definition at line 46 of file GEMDetId.h.

◆ ChamberStartBit

constexpr uint32_t GEMDetId::ChamberStartBit = StationStartBit + StationNumBits
staticconstexprprivate

Definition at line 47 of file GEMDetId.h.

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

◆ ChamberStartBitM

constexpr uint32_t GEMDetId::ChamberStartBitM = RegionStartBit + RegionNumBits
staticconstexprprivate

Definition at line 48 of file GEMDetId.h.

Referenced by unpackId().

◆ FormatMask

constexpr uint32_t GEMDetId::FormatMask = 0x1
staticconstexprprivate

Definition at line 63 of file GEMDetId.h.

◆ FormatNumBits

constexpr uint32_t GEMDetId::FormatNumBits = 1
staticconstexprprivate

Definition at line 61 of file GEMDetId.h.

◆ FormatStartBit

constexpr uint32_t GEMDetId::FormatStartBit = RollStartBit + RollNumBits
staticconstexprprivate

Definition at line 62 of file GEMDetId.h.

◆ kGEMIdFormat

constexpr uint32_t GEMDetId::kGEMIdFormat = 0x1000000
staticconstexprprivate

Definition at line 64 of file GEMDetId.h.

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

◆ kMuonIdMask

constexpr uint32_t GEMDetId::kMuonIdMask = 0xF0000000
staticconstexprprivate

Definition at line 65 of file GEMDetId.h.

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

◆ LayerMask

constexpr uint32_t GEMDetId::LayerMask = 0x1F
staticconstexprprivate

Definition at line 54 of file GEMDetId.h.

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

◆ LayerMaskP

constexpr uint32_t GEMDetId::LayerMaskP = 0x3
staticconstexprprivate

Definition at line 55 of file GEMDetId.h.

Referenced by unpackId().

◆ LayerNumBits

constexpr uint32_t GEMDetId::LayerNumBits = 5
staticconstexprprivate

Definition at line 50 of file GEMDetId.h.

◆ LayerNumBitsP

constexpr uint32_t GEMDetId::LayerNumBitsP = 2
staticconstexprprivate

Definition at line 51 of file GEMDetId.h.

◆ LayerStartBit

constexpr uint32_t GEMDetId::LayerStartBit = ChamberStartBit + ChamberNumBits
staticconstexprprivate

Definition at line 52 of file GEMDetId.h.

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

◆ LayerStartBitM

constexpr uint32_t GEMDetId::LayerStartBitM = ChamberStartBitM + ChamberNumBits
staticconstexprprivate

Definition at line 53 of file GEMDetId.h.

Referenced by unpackId().

◆ maxChamberId

constexpr int32_t GEMDetId::maxChamberId = 36
staticconstexpr

◆ maxLayerId

constexpr int32_t GEMDetId::maxLayerId = 2
staticconstexpr

◆ maxLayerId0

constexpr int32_t GEMDetId::maxLayerId0 = 6
staticconstexpr

◆ maxRegionId

constexpr int32_t GEMDetId::maxRegionId = 1
staticconstexpr

◆ maxRingId

constexpr int32_t GEMDetId::maxRingId = 3
staticconstexpr

Definition at line 23 of file GEMDetId.h.

Referenced by MuonGEMDetLayerGeometryBuilder::buildEndcapLayers(), and GEMDetId().

◆ maxRollId

constexpr int32_t GEMDetId::maxRollId = 16
staticconstexpr

◆ maxStationId

constexpr int32_t GEMDetId::maxStationId = 2
staticconstexpr

◆ minChamberId

constexpr int32_t GEMDetId::minChamberId = 0
staticconstexpr

◆ minLayerId

constexpr int32_t GEMDetId::minLayerId = 0
staticconstexpr

◆ minRegionId

constexpr int32_t GEMDetId::minRegionId = -1
staticconstexpr

◆ minRingId

constexpr int32_t GEMDetId::minRingId = 1
staticconstexpr

◆ minRollId

constexpr int32_t GEMDetId::minRollId = 0
staticconstexpr

◆ minStationId

constexpr int32_t GEMDetId::minStationId = 1
staticconstexpr

◆ minStationId0

constexpr int32_t GEMDetId::minStationId0 = 0
staticconstexpr

◆ RegionMask

constexpr uint32_t GEMDetId::RegionMask = 0x3
staticconstexprprivate

Definition at line 39 of file GEMDetId.h.

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

◆ RegionNumBits

constexpr uint32_t GEMDetId::RegionNumBits = 2
staticconstexprprivate

Definition at line 37 of file GEMDetId.h.

◆ RegionStartBit

constexpr uint32_t GEMDetId::RegionStartBit = 0
staticconstexprprivate

Definition at line 38 of file GEMDetId.h.

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

◆ RingMask

constexpr uint32_t GEMDetId::RingMask = 0x7
staticconstexprprivate

Definition at line 42 of file GEMDetId.h.

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

◆ RingNumBits

constexpr uint32_t GEMDetId::RingNumBits = 3
staticconstexprprivate

Definition at line 40 of file GEMDetId.h.

◆ RingStartBit

constexpr uint32_t GEMDetId::RingStartBit = RegionStartBit + RegionNumBits
staticconstexprprivate

Definition at line 41 of file GEMDetId.h.

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

◆ RollMask

constexpr uint32_t GEMDetId::RollMask = 0x1F
staticconstexprprivate

Definition at line 60 of file GEMDetId.h.

Referenced by v12Form().

◆ RollNumBits

constexpr uint32_t GEMDetId::RollNumBits = 5
staticconstexprprivate

Definition at line 56 of file GEMDetId.h.

◆ RollStartBit

constexpr uint32_t GEMDetId::RollStartBit = LayerStartBit + LayerNumBits
staticconstexprprivate

Definition at line 57 of file GEMDetId.h.

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

◆ RollStartBitM

constexpr uint32_t GEMDetId::RollStartBitM = LayerStartBitM + LayerNumBits
staticconstexprprivate

Definition at line 59 of file GEMDetId.h.

Referenced by unpackId().

◆ RollStartBitP

constexpr uint32_t GEMDetId::RollStartBitP = LayerStartBit + LayerNumBitsP
staticconstexprprivate

Definition at line 58 of file GEMDetId.h.

Referenced by unpackId().

◆ StationMask

constexpr uint32_t GEMDetId::StationMask = 0x7
staticconstexprprivate

Definition at line 45 of file GEMDetId.h.

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

◆ StationNumBits

constexpr uint32_t GEMDetId::StationNumBits = 3
staticconstexprprivate

Definition at line 43 of file GEMDetId.h.

◆ StationStartBit

constexpr uint32_t GEMDetId::StationStartBit = RingStartBit + RingNumBits
staticconstexprprivate

Definition at line 44 of file GEMDetId.h.

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

◆ superChamberIdMask

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

Definition at line 69 of file GEMDetId.h.

Referenced by superChamberId().

MuonSubdetId::GEM
static constexpr int GEM
Definition: MuonSubdetId.h:14
GEMDetId::RegionStartBit
static constexpr uint32_t RegionStartBit
Definition: GEMDetId.h:38
GEMDetId::v11Format
constexpr bool v11Format() const
Definition: GEMDetId.h:165
RollMask
std::bitset< maskSIZE > RollMask
Definition: RPCRollMask.h:7
GEMSubDetId::Station::ME0
GEMDetId::ring
constexpr int ring() const
Definition: GEMDetId.h:173
GEMDetId::layer
constexpr int layer() const
Definition: GEMDetId.h:187
GEMDetId::RingMask
static constexpr uint32_t RingMask
Definition: GEMDetId.h:42
GEMDetId::region
constexpr int region() const
Definition: GEMDetId.h:168
GEMDetId::subsystem
GEMSubDetId::Station subsystem() const
Definition: GEMDetId.cc:7
DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
GEMDetId::LayerMask
static constexpr uint32_t LayerMask
Definition: GEMDetId.h:54
GEMDetId::maxStationId
static constexpr int32_t maxStationId
Definition: GEMDetId.h:27
GEMDetId::ChamberMask
static constexpr uint32_t ChamberMask
Definition: GEMDetId.h:49
GEMDetId::minChamberId
static constexpr int32_t minChamberId
Definition: GEMDetId.h:28
GEMDetId::StationStartBit
static constexpr uint32_t StationStartBit
Definition: GEMDetId.h:44
GEMDetId::RegionMask
static constexpr uint32_t RegionMask
Definition: GEMDetId.h:39
GEMDetId::minLayerId
static constexpr int32_t minLayerId
Definition: GEMDetId.h:30
GEMDetId::RollStartBitM
static constexpr uint32_t RollStartBitM
Definition: GEMDetId.h:59
DetId::kSubdetMask
static const int kSubdetMask
Definition: DetId.h:20
Muon
Definition: Muon.py:1
GEMDetId::v12Form
constexpr uint32_t v12Form() const
Definition: GEMDetId.h:209
GEMDetId::RingStartBit
static constexpr uint32_t RingStartBit
Definition: GEMDetId.h:41
GEMDetId::maxRollId
static constexpr int32_t maxRollId
Definition: GEMDetId.h:34
GEMDetId::LayerStartBit
static constexpr uint32_t LayerStartBit
Definition: GEMDetId.h:52
DetId::kSubdetOffset
static const int kSubdetOffset
Definition: DetId.h:22
GEMSubDetId::Station::GE21
GEMDetId::GEMDetId
constexpr GEMDetId()
Definition: GEMDetId.h:73
GEMDetId::minStationId0
static constexpr int32_t minStationId0
Definition: GEMDetId.h:24
GEMDetId::maxRingId
static constexpr int32_t maxRingId
Definition: GEMDetId.h:23
GEMDetId::maxChamberId
static constexpr int32_t maxChamberId
Definition: GEMDetId.h:29
GEMDetId::minRingId
static constexpr int32_t minRingId
Definition: GEMDetId.h:22
gen
Definition: PythiaDecays.h:13
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
GEMDetId::RollStartBitP
static constexpr uint32_t RollStartBitP
Definition: GEMDetId.h:58
GEMDetId::chamberIdMask
static constexpr uint32_t chamberIdMask
Definition: GEMDetId.h:68
GEMDetId::chamber
constexpr int chamber() const
Definition: GEMDetId.h:180
GEMDetId::maxLayerId0
static constexpr int32_t maxLayerId0
Definition: GEMDetId.h:31
GEMSubDetId::station
static Station station(uint16_t st)
Definition: GEMSubDetId.h:13
DetId::kDetMask
static const int kDetMask
Definition: DetId.h:19
GEMDetId::kMuonIdMask
static constexpr uint32_t kMuonIdMask
Definition: GEMDetId.h:65
DetId::id_
uint32_t id_
Definition: DetId.h:69
GEMDetId::roll
constexpr int roll() const
Definition: GEMDetId.h:191
GEMDetId::LayerMaskP
static constexpr uint32_t LayerMaskP
Definition: GEMDetId.h:55
GEMDetId::superChamberIdMask
static constexpr uint32_t superChamberIdMask
Definition: GEMDetId.h:69
GEMDetId::ChamberStartBit
static constexpr uint32_t ChamberStartBit
Definition: GEMDetId.h:47
GEMDetId::minRegionId
static constexpr int32_t minRegionId
Definition: GEMDetId.h:20
GEMDetId::LayerStartBitM
static constexpr uint32_t LayerStartBitM
Definition: GEMDetId.h:53
MuonSubdetId::ME0
static constexpr int ME0
Definition: MuonSubdetId.h:15
GEMDetId::unpackId
constexpr static void unpackId(const uint32_t &rawid, int &region, int &ring, int &station, int &layer, int &chamber, int &roll)
Definition: GEMDetId.h:241
GEMDetId::maxRegionId
static constexpr int32_t maxRegionId
Definition: GEMDetId.h:21
alignCSCRings.r
r
Definition: alignCSCRings.py:93
DetId::kDetOffset
static const int kDetOffset
Definition: DetId.h:21
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
GEMDetId::RollMask
static constexpr uint32_t RollMask
Definition: GEMDetId.h:60
GEMDetId::ChamberStartBitM
static constexpr uint32_t ChamberStartBitM
Definition: GEMDetId.h:48
GEMDetId::maxLayerId
static constexpr int32_t maxLayerId
Definition: GEMDetId.h:32
GEMDetId::StationMask
static constexpr uint32_t StationMask
Definition: GEMDetId.h:45
Exception
Definition: hltDiff.cc:246
GEMDetId::RollStartBit
static constexpr uint32_t RollStartBit
Definition: GEMDetId.h:57
GEMSubDetId::Station::GE11
DetId::DetId
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38
GEMDetId::kGEMIdFormat
static constexpr uint32_t kGEMIdFormat
Definition: GEMDetId.h:64
GEMDetId::station
constexpr int station() const
Definition: GEMDetId.h:176
GEMDetId::minStationId
static constexpr int32_t minStationId
Definition: GEMDetId.h:25
DetId::Muon
Definition: DetId.h:26
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143