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 ieta)
 Construct from fully qualified identifier. More...
 
constexpr GEMDetId (uint32_t id)
 
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 (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 = ~(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

constexpr static 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 ( )
inlineconstexpr

Create a null detId

Definition at line 75 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 78 of file GEMDetId.h.

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  }

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

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  }

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  ieta 
)
inlineconstexpr

Construct from fully qualified identifier.

Definition at line 95 of file GEMDetId.h.

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  }

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.

Member Function Documentation

◆ chamber()

constexpr int GEMDetId::chamber ( ) const
inlineconstexpr

◆ chamberId()

constexpr GEMDetId GEMDetId::chamberId ( ) const
inlineconstexpr

◆ ieta()

constexpr int GEMDetId::ieta ( ) const
inlineconstexpr

Return the corresponding EtaPartition id (same as roll)

Definition at line 199 of file GEMDetId.h.

199  {
200  return (static_cast<int>((id_ >> EtaPartitionStartBit) & EtaPartitionMask)); // value 0 is used as wild card
201  }

References EtaPartitionStartBit, and DetId::id_.

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

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

210 { 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 213 of file GEMDetId.h.

213  {
214  return ((station() == 0) ? maxLayerId0 : ((station() > maxStationId) ? 0 : maxLayerId));
215  }

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

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

◆ operator!=()

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

Definition at line 144 of file GEMDetId.h.

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  }

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

◆ operator<()

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

Sort Operator based on the raw detector id

Definition at line 155 of file GEMDetId.h.

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  }

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

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  }

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

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  }

References chamber(), DetId::id_, ieta(), kMuonIdMask, layer(), region(), ring(), 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 179 of file GEMDetId.h.

179 { 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(), AlignableMuon::buildGEMEndcap(), 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(), MuonGEMDetLayerGeometryBuilder::isFront(), 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 &  ieta 
)
inlinestaticconstexprprivate

Definition at line 249 of file GEMDetId.h.

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  }

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().

◆ v11Format()

constexpr bool GEMDetId::v11Format ( ) const
inlineconstexpr

Check the format

Definition at line 168 of file GEMDetId.h.

168 { 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 217 of file GEMDetId.h.

217 { 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 219 of file GEMDetId.h.

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  }

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().

◆ v12FromV11()

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

Definition at line 247 of file GEMDetId.h.

247 { id_ = v12Form(rawid); }

References DetId::id_, and v12Form().

Member Data Documentation

◆ chamberIdMask

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

Definition at line 70 of file GEMDetId.h.

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

◆ ChamberMask

constexpr uint32_t GEMDetId::ChamberMask = 0x3F
staticconstexprprivate

Definition at line 51 of file GEMDetId.h.

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

◆ ChamberNumBits

constexpr uint32_t GEMDetId::ChamberNumBits = 6
staticconstexprprivate

Definition at line 48 of file GEMDetId.h.

◆ ChamberStartBit

constexpr uint32_t GEMDetId::ChamberStartBit = StationStartBit + StationNumBits
staticconstexprprivate

Definition at line 49 of file GEMDetId.h.

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

◆ ChamberStartBitM

constexpr uint32_t GEMDetId::ChamberStartBitM = RegionStartBit + RegionNumBits
staticconstexprprivate

Definition at line 50 of file GEMDetId.h.

Referenced by unpackId().

◆ EtaPartitionMask

constexpr uint32_t GEMDetId::EtaPartitionMask = 0x1F
staticconstexprprivate

Definition at line 62 of file GEMDetId.h.

Referenced by v12Form().

◆ EtaPartitionNumBits

constexpr uint32_t GEMDetId::EtaPartitionNumBits = 5
staticconstexprprivate

Definition at line 58 of file GEMDetId.h.

◆ EtaPartitionStartBit

constexpr uint32_t GEMDetId::EtaPartitionStartBit = LayerStartBit + LayerNumBits
staticconstexprprivate

Definition at line 59 of file GEMDetId.h.

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

◆ EtaPartitionStartBitM

constexpr uint32_t GEMDetId::EtaPartitionStartBitM = LayerStartBitM + LayerNumBits
staticconstexprprivate

Definition at line 61 of file GEMDetId.h.

Referenced by unpackId().

◆ EtaPartitionStartBitP

constexpr uint32_t GEMDetId::EtaPartitionStartBitP = LayerStartBit + LayerNumBitsP
staticconstexprprivate

Definition at line 60 of file GEMDetId.h.

Referenced by unpackId().

◆ FormatMask

constexpr uint32_t GEMDetId::FormatMask = 0x1
staticconstexprprivate

Definition at line 65 of file GEMDetId.h.

◆ FormatNumBits

constexpr uint32_t GEMDetId::FormatNumBits = 1
staticconstexprprivate

Definition at line 63 of file GEMDetId.h.

◆ FormatStartBit

constexpr uint32_t GEMDetId::FormatStartBit = EtaPartitionStartBit + EtaPartitionNumBits
staticconstexprprivate

Definition at line 64 of file GEMDetId.h.

◆ kGEMIdFormat

constexpr uint32_t GEMDetId::kGEMIdFormat = 0x1000000
staticconstexprprivate

Definition at line 66 of file GEMDetId.h.

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

◆ kMuonIdMask

constexpr uint32_t GEMDetId::kMuonIdMask = 0xF0000000
staticconstexprprivate

Definition at line 67 of file GEMDetId.h.

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

◆ LayerMask

constexpr uint32_t GEMDetId::LayerMask = 0x1F
staticconstexprprivate

Definition at line 56 of file GEMDetId.h.

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

◆ LayerMaskP

constexpr uint32_t GEMDetId::LayerMaskP = 0x3
staticconstexprprivate

Definition at line 57 of file GEMDetId.h.

Referenced by unpackId().

◆ LayerNumBits

constexpr uint32_t GEMDetId::LayerNumBits = 5
staticconstexprprivate

Definition at line 52 of file GEMDetId.h.

◆ LayerNumBitsP

constexpr uint32_t GEMDetId::LayerNumBitsP = 2
staticconstexprprivate

Definition at line 53 of file GEMDetId.h.

◆ LayerStartBit

constexpr uint32_t GEMDetId::LayerStartBit = ChamberStartBit + ChamberNumBits
staticconstexprprivate

Definition at line 54 of file GEMDetId.h.

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

◆ LayerStartBitM

constexpr uint32_t GEMDetId::LayerStartBitM = ChamberStartBitM + ChamberNumBits
staticconstexprprivate

Definition at line 55 of file GEMDetId.h.

Referenced by unpackId().

◆ maxChamberId

constexpr int32_t GEMDetId::maxChamberId = 36
staticconstexpr

◆ maxEtaPartitionId

constexpr int32_t GEMDetId::maxEtaPartitionId = 16
staticconstexpr

Definition at line 34 of file GEMDetId.h.

Referenced by GEMDetId().

◆ 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 GEMDetId().

◆ maxRollId

constexpr int32_t GEMDetId::maxRollId = maxEtaPartitionId
staticconstexpr

◆ maxStationId

constexpr int32_t GEMDetId::maxStationId = 2
staticconstexpr

◆ minChamberId

constexpr int32_t GEMDetId::minChamberId = 0
staticconstexpr

◆ minEtaPartitionId

constexpr int32_t GEMDetId::minEtaPartitionId = 0
staticconstexpr

Definition at line 33 of file GEMDetId.h.

◆ 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 = minEtaPartitionId
staticconstexpr

◆ minStationId

constexpr int32_t GEMDetId::minStationId = 1
staticconstexpr

Definition at line 25 of file GEMDetId.h.

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

◆ minStationId0

constexpr int32_t GEMDetId::minStationId0 = 0
staticconstexpr

◆ RegionMask

constexpr uint32_t GEMDetId::RegionMask = 0x3
staticconstexprprivate

Definition at line 41 of file GEMDetId.h.

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

◆ RegionNumBits

constexpr uint32_t GEMDetId::RegionNumBits = 2
staticconstexprprivate

Definition at line 39 of file GEMDetId.h.

◆ RegionStartBit

constexpr uint32_t GEMDetId::RegionStartBit = 0
staticconstexprprivate

Definition at line 40 of file GEMDetId.h.

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

◆ RingMask

constexpr uint32_t GEMDetId::RingMask = 0x7
staticconstexprprivate

Definition at line 44 of file GEMDetId.h.

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

◆ RingNumBits

constexpr uint32_t GEMDetId::RingNumBits = 3
staticconstexprprivate

Definition at line 42 of file GEMDetId.h.

◆ RingStartBit

constexpr uint32_t GEMDetId::RingStartBit = RegionStartBit + RegionNumBits
staticconstexprprivate

Definition at line 43 of file GEMDetId.h.

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

◆ StationMask

constexpr uint32_t GEMDetId::StationMask = 0x7
staticconstexprprivate

Definition at line 47 of file GEMDetId.h.

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

◆ StationNumBits

constexpr uint32_t GEMDetId::StationNumBits = 3
staticconstexprprivate

Definition at line 45 of file GEMDetId.h.

◆ StationStartBit

constexpr uint32_t GEMDetId::StationStartBit = RingStartBit + RingNumBits
staticconstexprprivate

Definition at line 46 of file GEMDetId.h.

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

◆ superChamberIdMask

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

Definition at line 71 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:40
GEMDetId::v11Format
constexpr bool v11Format() const
Definition: GEMDetId.h:168
GEMSubDetId::Station::ME0
GEMDetId::ring
constexpr int ring() const
Definition: GEMDetId.h:176
GEMDetId::layer
constexpr int layer() const
Definition: GEMDetId.h:190
GEMDetId::RingMask
static constexpr uint32_t RingMask
Definition: GEMDetId.h:44
GEMDetId::region
constexpr int region() const
Definition: GEMDetId.h:171
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::EtaPartitionStartBitP
static constexpr uint32_t EtaPartitionStartBitP
Definition: GEMDetId.h:60
GEMDetId::EtaPartitionMask
static constexpr uint32_t EtaPartitionMask
Definition: GEMDetId.h:62
GEMDetId::LayerMask
static constexpr uint32_t LayerMask
Definition: GEMDetId.h:56
GEMDetId::maxStationId
static constexpr int32_t maxStationId
Definition: GEMDetId.h:27
GEMDetId::ChamberMask
static constexpr uint32_t ChamberMask
Definition: GEMDetId.h:51
GEMDetId::minChamberId
static constexpr int32_t minChamberId
Definition: GEMDetId.h:28
GEMDetId::StationStartBit
static constexpr uint32_t StationStartBit
Definition: GEMDetId.h:46
GEMDetId::RegionMask
static constexpr uint32_t RegionMask
Definition: GEMDetId.h:41
GEMDetId::minLayerId
static constexpr int32_t minLayerId
Definition: GEMDetId.h:30
DetId::kSubdetMask
static const int kSubdetMask
Definition: DetId.h:20
Muon
Definition: Muon.py:1
GEMDetId::EtaPartitionStartBitM
static constexpr uint32_t EtaPartitionStartBitM
Definition: GEMDetId.h:61
GEMDetId::v12Form
constexpr uint32_t v12Form() const
Definition: GEMDetId.h:217
GEMDetId::RingStartBit
static constexpr uint32_t RingStartBit
Definition: GEMDetId.h:43
GEMDetId::LayerStartBit
static constexpr uint32_t LayerStartBit
Definition: GEMDetId.h:54
DetId::kSubdetOffset
static const int kSubdetOffset
Definition: DetId.h:22
GEMSubDetId::Station::GE21
GEMDetId::GEMDetId
constexpr GEMDetId()
Definition: GEMDetId.h:75
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
GEMDetId::maxEtaPartitionId
static constexpr int32_t maxEtaPartitionId
Definition: GEMDetId.h:34
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::chamberIdMask
static constexpr uint32_t chamberIdMask
Definition: GEMDetId.h:70
GEMDetId::chamber
constexpr int chamber() const
Definition: GEMDetId.h:183
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:67
DetId::id_
uint32_t id_
Definition: DetId.h:69
EtaPartitionMask
std::bitset< maskSIZE > EtaPartitionMask
Definition: GEMEtaPartitionMask.h:8
GEMDetId::LayerMaskP
static constexpr uint32_t LayerMaskP
Definition: GEMDetId.h:57
GEMDetId::superChamberIdMask
static constexpr uint32_t superChamberIdMask
Definition: GEMDetId.h:71
GEMDetId::ChamberStartBit
static constexpr uint32_t ChamberStartBit
Definition: GEMDetId.h:49
GEMDetId::minRegionId
static constexpr int32_t minRegionId
Definition: GEMDetId.h:20
GEMDetId::LayerStartBitM
static constexpr uint32_t LayerStartBitM
Definition: GEMDetId.h:55
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 &ieta)
Definition: GEMDetId.h:249
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::ChamberStartBitM
static constexpr uint32_t ChamberStartBitM
Definition: GEMDetId.h:50
GEMDetId::maxLayerId
static constexpr int32_t maxLayerId
Definition: GEMDetId.h:32
GEMDetId::StationMask
static constexpr uint32_t StationMask
Definition: GEMDetId.h:47
Exception
Definition: hltDiff.cc:245
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:66
GEMDetId::station
constexpr int station() const
Definition: GEMDetId.h:179
GEMDetId::minStationId
static constexpr int32_t minStationId
Definition: GEMDetId.h:25
DetId::Muon
Definition: DetId.h:26
GEMDetId::ieta
constexpr int ieta() const
Definition: GEMDetId.h:199
GEMDetId::EtaPartitionStartBit
static constexpr uint32_t EtaPartitionStartBit
Definition: GEMDetId.h:59
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143