#include <DataFormats/SiPixelDetId/interface/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 (uint32_t side, uint32_t disk, uint32_t blade, uint32_t panel, uint32_t module) | |
PXFDetId (const DetId &id) | |
Construct from generic DetId. | |
PXFDetId (uint32_t rawid) | |
Constructor from a raw value. | |
PXFDetId () | |
Constructor of a null id. | |
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 | ( | ) |
Constructor of a null id.
Definition at line 3 of file PXFDetId.cc.
Referenced by SiPixelRecHitsValid::fillForward().
00003 : DetId() { 00004 }
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_.
00028 : DetId(DetId::Tracker,PixelSubdetector::PixelEndcap){ 00029 id_ |= (side& sideMask_) << sideStartBit_ | 00030 (disk& diskMask_) << diskStartBit_ | 00031 (blade& bladeMask_) << bladeStartBit_ | 00032 (panel& panelMask_) << panelStartBit_ | 00033 (module& moduleMask_) << moduleStartBit_ ; 00034 }
unsigned int PXFDetId::blade | ( | ) | const [inline] |
blade id
Definition at line 48 of file PXFDetId.h.
References bladeMask_, bladeStartBit_, and DetId::id_.
Referenced by SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), HitInfo::getInfo(), PixelEndcapName::PixelEndcapName(), RoadSearchDetIdHelper::Print(), and trackerHierarchy().
00049 { return ((id_>>bladeStartBit_) & bladeMask_) ;}
unsigned int PXFDetId::disk | ( | ) | const [inline] |
disk id
Definition at line 43 of file PXFDetId.h.
References diskMask_, diskStartBit_, DetId::id_, and int.
Referenced by SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), SimHitTrackerAnalyzer::analyze(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), HitInfo::getInfo(), TrajectoryCleanerMerger::getLayer(), ValidHitPairFilter::getLayer(), TrackCleaner::getLayer(), TrajectoryManager::makeSinglePSimHit(), DetIdPXFSameDiskComparator::operator()(), PixelEndcapName::PixelEndcapName(), RoadSearchDetIdHelper::Print(), and trackerHierarchy().
00043 { 00044 return int((id_>>diskStartBit_) & diskMask_); 00045 }
unsigned int PXFDetId::module | ( | ) | const [inline] |
det id
Definition at line 56 of file PXFDetId.h.
References DetId::id_, moduleMask_, and moduleStartBit_.
Referenced by SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), HitInfo::getInfo(), PixelEndcapName::PixelEndcapName(), RoadSearchDetIdHelper::Print(), and trackerHierarchy().
00057 { 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 SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), RingMaker::determineExtensions(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), HitInfo::getInfo(), TrajectoryCleanerMerger::getLayer(), TrackCleaner::getLayer(), PixelEndcapName::PixelEndcapName(), and trackerHierarchy().
00053 { 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_, int, sideMask_, and sideStartBit_.
Referenced by SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), HitInfo::getInfo(), ValidHitPairFilter::getLayer(), DetIdPXFSameDiskComparator::operator()(), PixelEndcapName::PixelEndcapName(), RoadSearchDetIdHelper::Print(), and trackerHierarchy().
00038 { 00039 return int((id_>>sideStartBit_) & sideMask_); 00040 }
const unsigned int PXFDetId::bladeMask_ = 0x3F [static, private] |
const unsigned int PXFDetId::bladeStartBit_ = 10 [static, private] |
const unsigned int PXFDetId::diskMask_ = 0xF [static, private] |
const unsigned int PXFDetId::diskStartBit_ = 16 [static, private] |
const unsigned int PXFDetId::moduleMask_ = 0x3F [static, private] |
const unsigned int PXFDetId::moduleStartBit_ = 2 [static, private] |
const unsigned int PXFDetId::panelMask_ = 0x3 [static, private] |
const unsigned int PXFDetId::panelStartBit_ = 8 [static, private] |
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().