#include <ME0DetId.h>
Public Member Functions | |
int | chamber () const |
Chamber id: it identifies a chamber in a ring it goes from 1 to 36. More... | |
ME0DetId | chamberId () const |
Return the corresponding ChamberId (mask layers) More... | |
int | layer () const |
Layer id: each chamber has six layers of chambers: layer 1 is the inner layer and layer 6 is the outer layer. More... | |
ME0DetId | layerId () const |
Return the corresponding LayerId (mask eta partition) More... | |
ME0DetId () | |
ME0DetId (uint32_t id) | |
ME0DetId (DetId id) | |
ME0DetId (int region, int layer, int chamber, int roll) | |
Construct from fully qualified identifier. More... | |
int | nlayers () const |
For future modifications (implement more layers) More... | |
bool | operator< (const ME0DetId &r) const |
Sort Operator based on the raw detector id. More... | |
int | region () const |
Region id: 0 for Barrel Not in use, +/-1 For +/- Endcap. More... | |
int | roll () const |
int | station () 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 Attributes | |
static constexpr uint32_t | chamberIdMask_ = ~((LayerMask_ << LayerStartBit_) | (RollMask_ << RollStartBit_)) |
static constexpr uint32_t | layerIdMask_ = ~(RollMask_ << RollStartBit_) |
static constexpr int | maxChamberId = 18 |
static constexpr int | maxLayerId = 6 |
static constexpr int | maxRegionId = 1 |
static constexpr int | maxRollId = 10 |
static constexpr int | minChamberId = 0 |
static constexpr int | minLayerId = 0 |
static constexpr int | minRegionId = -1 |
static constexpr int | minRollId = 0 |
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 | |
void | init (int region, int layer, int chamber, int roll) |
Private Attributes | |
int | trind |
Static Private Attributes | |
static constexpr unsigned int | ChamberMask_ = 0X3F |
static constexpr int | ChamberNumBits_ = 6 |
static constexpr int | ChamberStartBit_ = RegionStartBit_ + RegionNumBits_ |
static constexpr unsigned int | LayerMask_ = 0X1F |
static constexpr int | LayerNumBits_ = 5 |
static constexpr int | LayerStartBit_ = ChamberStartBit_ + ChamberNumBits_ |
static constexpr int | RegionMask_ = 0X3 |
static constexpr int | RegionNumBits_ = 2 |
static constexpr int | RegionStartBit_ = 0 |
static constexpr unsigned int | RollMask_ = 0X1F |
static constexpr int | RollNumBits_ = 5 |
static constexpr int | RollStartBit_ = LayerStartBit_ + LayerNumBits_ |
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_ |
DetUnit identifier for ME0s
Definition at line 16 of file ME0DetId.h.
ME0DetId::ME0DetId | ( | ) |
Definition at line 8 of file ME0DetId.cc.
Referenced by chamberId(), and layerId().
ME0DetId::ME0DetId | ( | uint32_t | id | ) |
Construct from a packed id. It is required that the Detector part of id is Muon and the SubDet part is ME0, otherwise an exception is thrown.
Definition at line 10 of file ME0DetId.cc.
References DetId::det(), Exception, MuonSubdetId::ME0, DetId::Muon, and DetId::subdetId().
ME0DetId::ME0DetId | ( | DetId | id | ) |
Definition at line 17 of file ME0DetId.cc.
References DetId::det(), Exception, MuonSubdetId::ME0, DetId::Muon, and DetId::subdetId().
ME0DetId::ME0DetId | ( | int | region, |
int | layer, | ||
int | chamber, | ||
int | roll | ||
) |
Construct from fully qualified identifier.
Definition at line 24 of file ME0DetId.cc.
References init().
|
inline |
Chamber id: it identifies a chamber in a ring it goes from 1 to 36.
Definition at line 41 of file ME0DetId.h.
References ChamberMask_, ChamberStartBit_, DetId::id_, and minChamberId.
Referenced by MuonHitHelper::chamber(), PrimitiveConversion::convert_me0(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), fireworks::info(), ME0SegmentsValidation::isMatched(), and PrimitiveSelection::select_me0().
|
inline |
Return the corresponding ChamberId (mask layers)
Definition at line 53 of file ME0DetId.h.
References chamberIdMask_, DetId::id_, and ME0DetId().
Referenced by ME0GeometryParsFromDD::buildChamber(), ME0GeometryBuilder::buildChamber(), ME0GeometryBuilder::buildGeometry(), GlobalMuonRefitter::checkMuonHits(), and GlobalMuonRefitter::selectMuonHits().
|
private |
Definition at line 28 of file ME0DetId.cc.
References ChamberMask_, ChamberStartBit_, Exception, DetId::id_, LayerMask_, LayerStartBit_, maxChamberId, maxLayerId, maxRegionId, maxRollId, minChamberId, minLayerId, minRegionId, minRollId, RegionMask_, RegionStartBit_, RollMask_, and RollStartBit_.
Referenced by ME0DetId().
|
inline |
Layer id: each chamber has six layers of chambers: layer 1 is the inner layer and layer 6 is the outer layer.
Definition at line 44 of file ME0DetId.h.
References DetId::id_, LayerMask_, LayerStartBit_, and minLayerId.
Referenced by ME0ReDigiProducer::TemporaryGeometry::getCentralTOF(), ME0ReDigiProducer::getStripProperties(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), fireworks::info(), ME0SegmentsValidation::isMatched(), ME0Chamber::layer(), and operator<().
|
inline |
Return the corresponding LayerId (mask eta partition)
Definition at line 55 of file ME0DetId.h.
References DetId::id_, layerIdMask_, and ME0DetId().
Referenced by ME0GeometryBuilder::buildGeometry(), ME0GeometryParsFromDD::buildLayer(), and ME0GeometryBuilder::buildLayer().
|
inline |
For future modifications (implement more layers)
Definition at line 61 of file ME0DetId.h.
References maxLayerId.
Referenced by ME0SegmentAlgorithm::isGoodToMerge().
|
inline |
Sort Operator based on the raw detector id.
Definition at line 29 of file ME0DetId.h.
References layer(), and DetId::rawId().
|
inline |
Region id: 0 for Barrel Not in use, +/-1 For +/- Endcap.
Definition at line 38 of file ME0DetId.h.
References DetId::id_, minRegionId, RegionMask_, and RegionStartBit_.
Referenced by PrimitiveConversion::convert_me0(), DetIdInfo::info(), fireworks::info(), ME0SegmentsValidation::isMatched(), and PrimitiveSelection::select_me0().
|
inline |
Roll id (also known as eta partition): each chamber is divided along the strip direction in several parts (rolls) ME0 up to 10
Definition at line 48 of file ME0DetId.h.
References DetId::id_, minRollId, RollMask_, and RollStartBit_.
Referenced by ME0ReDigiProducer::getStripProperties(), ME0SimHitMatcher::hitPartitions(), and ME0SegmentsValidation::isMatched().
|
inline |
Definition at line 58 of file ME0DetId.h.
Referenced by PrimitiveConversion::convert_me0(), GlobalMuonRefitter::getFirstHits(), GlobalMuonRefitter::getRidOfSelectStationHits(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), MuonSeedPtExtractor::pT_extract(), PrimitiveSelection::select_me0(), TAMuonChamberMatch::station(), and reco::MuonChamberMatch::station().
|
static |
Definition at line 93 of file ME0DetId.h.
Referenced by ME0GeometryBuilder::buildGeometry(), and chamberId().
|
staticprivate |
Definition at line 82 of file ME0DetId.h.
|
staticprivate |
Definition at line 80 of file ME0DetId.h.
|
staticprivate |
Definition at line 81 of file ME0DetId.h.
|
static |
Definition at line 94 of file ME0DetId.h.
Referenced by ME0GeometryBuilder::buildGeometry(), and layerId().
|
staticprivate |
Definition at line 86 of file ME0DetId.h.
|
staticprivate |
Definition at line 84 of file ME0DetId.h.
|
staticprivate |
Definition at line 85 of file ME0DetId.h.
|
static |
Definition at line 67 of file ME0DetId.h.
Referenced by ME0TriggerBuilder::build(), MuonME0DetLayerGeometryBuilder::buildEndcapLayers(), and init().
|
static |
Definition at line 70 of file ME0DetId.h.
|
static |
Definition at line 64 of file ME0DetId.h.
Referenced by init(), FWRPZViewGeometry::showME0(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 73 of file ME0DetId.h.
Referenced by init().
|
static |
Definition at line 66 of file ME0DetId.h.
Referenced by ME0NumberingScheme::baseNumberToUnitNumber(), ME0TriggerBuilder::build(), MuonME0DetLayerGeometryBuilder::buildEndcapLayers(), chamber(), and init().
|
static |
Definition at line 69 of file ME0DetId.h.
Referenced by ME0NumberingScheme::baseNumberToUnitNumber(), init(), and layer().
|
static |
Definition at line 63 of file ME0DetId.h.
Referenced by ME0NumberingScheme::baseNumberToUnitNumber(), init(), region(), FWRPZViewGeometry::showME0(), and FW3DViewGeometry::showMuonEndcap().
|
static |
Definition at line 72 of file ME0DetId.h.
Referenced by ME0NumberingScheme::baseNumberToUnitNumber(), init(), and roll().
|
staticprivate |
Definition at line 78 of file ME0DetId.h.
|
staticprivate |
Definition at line 76 of file ME0DetId.h.
|
staticprivate |
Definition at line 77 of file ME0DetId.h.
|
staticprivate |
Definition at line 90 of file ME0DetId.h.
|
staticprivate |
Definition at line 88 of file ME0DetId.h.
|
staticprivate |
Definition at line 89 of file ME0DetId.h.
|
private |
Definition at line 99 of file ME0DetId.h.