#include <PXFDetId.h>
Public Member Functions | |
unsigned int | blade () const |
blade id | |
unsigned int | disk () const |
disk id | |
unsigned int | module () const |
det id | |
unsigned int | panel () const |
panel id | |
PXFDetId (const DetId &id) | |
PXFDetId () | |
PXFDetId (uint32_t side, uint32_t disk, uint32_t blade, uint32_t panel, uint32_t module) | |
PXFDetId (uint32_t rawid) | |
unsigned int | side () const |
positive or negative id | |
Static Private Attributes | |
static const unsigned int | bladeMask_ = 0x3F |
static const unsigned int | bladeStartBit_ = 10 |
static const unsigned int | diskMask_ = 0xF |
static const unsigned int | diskStartBit_ = 16 |
static const unsigned int | moduleMask_ = 0x3F |
static const unsigned int | moduleStartBit_ = 2 |
static const unsigned int | panelMask_ = 0x3 |
static const unsigned int | panelStartBit_ = 8 |
static const unsigned int | sideMask_ = 0x3 |
two bits would be enough, but we could use the number "0" as a wildcard | |
static const unsigned int | sideStartBit_ = 23 |
two bits would be enough, but we could use the number "0" as a wildcard |
Definition at line 15 of file PXFDetId.h.
PXFDetId::PXFDetId | ( | ) |
PXFDetId::PXFDetId | ( | uint32_t | rawid | ) |
PXFDetId::PXFDetId | ( | const DetId & | id | ) |
PXFDetId::PXFDetId | ( | uint32_t | side, |
uint32_t | disk, | ||
uint32_t | blade, | ||
uint32_t | panel, | ||
uint32_t | module | ||
) | [inline] |
Definition at line 24 of file PXFDetId.h.
References bladeMask_, bladeStartBit_, diskMask_, diskStartBit_, DetId::id_, moduleMask_, moduleStartBit_, panelMask_, panelStartBit_, sideMask_, and sideStartBit_.
: DetId(DetId::Tracker,PixelSubdetector::PixelEndcap){ id_ |= (side& sideMask_) << sideStartBit_ | (disk& diskMask_) << diskStartBit_ | (blade& bladeMask_) << bladeStartBit_ | (panel& panelMask_) << panelStartBit_ | (module& moduleMask_) << moduleStartBit_ ; }
unsigned int PXFDetId::blade | ( | ) | const [inline] |
blade id
Definition at line 48 of file PXFDetId.h.
References bladeMask_, bladeStartBit_, and DetId::id_.
Referenced by FWTrackHitsDetailView::addModules(), PixelEndcapName::PixelEndcapName(), FW3DViewGeometry::showPixelEndcap(), and trackerHierarchy().
{ return ((id_>>bladeStartBit_) & bladeMask_) ;}
unsigned int PXFDetId::disk | ( | ) | const [inline] |
disk id
Definition at line 43 of file PXFDetId.h.
References diskMask_, diskStartBit_, and DetId::id_.
Referenced by FWTrackHitsDetailView::addModules(), reco::DeDxHit::DeDxHit(), reco::HitPattern::encode(), GeometricSearchTracker::idToLayer(), PFCheckHitPattern::interpretDetId(), ClusterSummary::ModuleSelection::IsPixelSelected(), DetIdPXFSameDiskComparator::operator()(), PixelEndcapName::PixelEndcapName(), FW3DViewGeometry::showPixelEndcap(), and trackerHierarchy().
{ return int((id_>>diskStartBit_) & diskMask_); }
unsigned int PXFDetId::module | ( | ) | const [inline] |
det id
Definition at line 56 of file PXFDetId.h.
References DetId::id_, moduleMask_, and moduleStartBit_.
Referenced by FWTrackHitsDetailView::addModules(), PixelEndcapName::PixelEndcapName(), FW3DViewGeometry::showPixelEndcap(), and trackerHierarchy().
{ return ((id_>>moduleStartBit_) & moduleMask_) ;}
unsigned int PXFDetId::panel | ( | ) | const [inline] |
panel id
Definition at line 52 of file PXFDetId.h.
References DetId::id_, panelMask_, and panelStartBit_.
Referenced by FWTrackHitsDetailView::addModules(), PixelEndcapName::PixelEndcapName(), FW3DViewGeometry::showPixelEndcap(), and trackerHierarchy().
{ return ((id_>>panelStartBit_) & panelMask_) ;}
unsigned int PXFDetId::side | ( | ) | const [inline] |
positive or negative id
Definition at line 38 of file PXFDetId.h.
References DetId::id_, sideMask_, and sideStartBit_.
Referenced by FWTrackHitsDetailView::addModules(), ClusterSummary::ModuleSelection::IsPixelSelected(), DetIdPXFSameDiskComparator::operator()(), PixelEndcapName::PixelEndcapName(), FW3DViewGeometry::showPixelEndcap(), and trackerHierarchy().
{ return int((id_>>sideStartBit_) & sideMask_); }
const unsigned int PXFDetId::bladeMask_ = 0x3F [static, private] |
Definition at line 70 of file PXFDetId.h.
Referenced by blade(), and PXFDetId().
const unsigned int PXFDetId::bladeStartBit_ = 10 [static, private] |
Definition at line 63 of file PXFDetId.h.
Referenced by blade(), and PXFDetId().
const unsigned int PXFDetId::diskMask_ = 0xF [static, private] |
Definition at line 69 of file PXFDetId.h.
Referenced by disk(), and PXFDetId().
const unsigned int PXFDetId::diskStartBit_ = 16 [static, private] |
Definition at line 62 of file PXFDetId.h.
Referenced by disk(), and PXFDetId().
const unsigned int PXFDetId::moduleMask_ = 0x3F [static, private] |
Definition at line 72 of file PXFDetId.h.
Referenced by module(), and PXFDetId().
const unsigned int PXFDetId::moduleStartBit_ = 2 [static, private] |
Definition at line 65 of file PXFDetId.h.
Referenced by module(), and PXFDetId().
const unsigned int PXFDetId::panelMask_ = 0x3 [static, private] |
Definition at line 71 of file PXFDetId.h.
Referenced by panel(), and PXFDetId().
const unsigned int PXFDetId::panelStartBit_ = 8 [static, private] |
Definition at line 64 of file PXFDetId.h.
Referenced by panel(), and PXFDetId().
const unsigned int PXFDetId::sideMask_ = 0x3 [static, private] |
two bits would be enough, but we could use the number "0" as a wildcard
Definition at line 68 of file PXFDetId.h.
Referenced by PXFDetId(), and side().
const unsigned int PXFDetId::sideStartBit_ = 23 [static, private] |
two bits would be enough, but we could use the number "0" as a wildcard
Definition at line 61 of file PXFDetId.h.
Referenced by PXFDetId(), and side().