#include <PXFDetId.h>
Public Member Functions | |
unsigned int | blade () const |
Blade id **NP Changed to handle blade/ring ambiguity. | |
unsigned int | disk () const |
Disk id. | |
unsigned int | module () const |
Module id. | |
unsigned int | panel () const |
Panel id. | |
PXFDetId () | |
PXFDetId (uint32_t rawid) | |
PXFDetId (uint32_t side, uint32_t disk, uint32_t blade, uint32_t panel, uint32_t module) | |
PXFDetId (const DetId &id) | |
unsigned int | ring () const |
Ring id **NP Phase 2 tracker mod. | |
unsigned int | side () const |
Side: positive or negative id. | |
Static Private Attributes | |
static const unsigned int | bladeMask_ = 0x3F |
static const unsigned int | bladeStartBit_ = 12 |
static const unsigned int | diskMask_ = 0xF |
static const unsigned int | diskStartBit_ = 18 |
static const unsigned int | moduleMask_ = 0xFF |
static const unsigned int | moduleStartBit_ = 2 |
static const unsigned int | panelMask_ = 0x3 |
static const unsigned int | panelStartBit_ = 10 |
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 | |
static const unsigned int | typeMask_ = 0x3 |
static const unsigned int | typeStartBit_ = 0 |
Definition at line 16 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 25 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 **NP Changed to handle blade/ring ambiguity.
Definition at line 51 of file PXFDetId.h.
References bladeMask_, bladeStartBit_, dtNoiseDBValidation_cfg::cerr, disk(), and DetId::id_.
Referenced by FWTrackHitsDetailView::addModules(), SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), HitDump::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelLorentzAngle::analyze(), align::tpe::bladeNumber(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), HitInfo::getInfo(), align::tpe::halfCylinderNumber(), TrackCleaner::isCompatible(), AlignmentParameterSelector::outsideDetIdRanges(), PixelEndcapName::PixelEndcapName(), PixelEndcapNameUpgrade::PixelEndcapNameUpgrade(), RoadSearchDetIdHelper::Print(), L1TrackProducer::produce(), and trackerHierarchy().
{ if (this->disk() < 4) return ((id_>>bladeStartBit_) & bladeMask_); else { std::cerr << "W A R N I N G! Attempting to get PXF::blade() from Outer Tracker Endcap" << std::endl; return 9999999; } }
unsigned int PXFDetId::disk | ( | ) | const [inline] |
Disk id.
Definition at line 45 of file PXFDetId.h.
References diskMask_, diskStartBit_, and DetId::id_.
Referenced by FWTrackHitsDetailView::addModules(), SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), HitDump::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelLorentzAngle::analyze(), blade(), StackedTrackerGeometryBuilder::build(), reco::DeDxHit::DeDxHit(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), reco::HitPattern::encode(), AlignmentStats::endJob(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), getDetLayer(), HitInfo::getInfo(), TrajectoryCleanerMerger::getLayer(), ValidHitPairFilter::getLayer(), GlobalMuonRefitter::getRidOfSelectStationHits(), TrackTransformerForGlobalCosmicMuons::getTransientRecHits(), align::tpe::halfDiskNumber(), GeometricSearchTracker::idToLayer(), CheckHitPattern::interpretDetId(), PFCheckHitPattern::interpretDetId(), TrackCleaner::isCompatible(), SeedMergerPixelLayer::isContainsDetector(), ClusterSummary::ModuleSelection::IsPixelSelected(), MuonReSeeder::layer(), TrackMerger::layer(), reco::modules::TrackerTrackHitFilter::Rule::layer(), MuonAssociatorByHits::LayerFromDetid(), TrackingTruthProducer::LayerFromDetid(), TrackAssociatorByHits::LayerFromDetid(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), AlignmentPrescaler::layerFromId(), TrajectoryManager::makeSinglePSimHit(), DetIdPXFSameDiskComparator::operator()(), HitComparatorByRadius::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), PixelEndcapName::PixelEndcapName(), PixelEndcapNameUpgrade::PixelEndcapNameUpgrade(), HitPixelLayersTPSelector::pixelHitPattern(), RoadSearchDetIdHelper::Print(), L1TrackProducer::produce(), ring(), trackerHierarchy(), TrackTransformerForGlobalCosmicMuons::TrackerKeep(), and TrackerAlignableId::typeAndLayerFromDetId().
{ return int((id_>>diskStartBit_) & diskMask_); }
unsigned int PXFDetId::module | ( | ) | const [inline] |
Module id.
Definition at line 83 of file PXFDetId.h.
References DetId::id_, moduleMask_, and moduleStartBit_.
Referenced by FWTrackHitsDetailView::addModules(), SiPixelDigiValid::analyze(), HitDump::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelLorentzAngle::analyze(), StackedTrackerGeometryBuilder::build(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), HitInfo::getInfo(), TrackCleaner::isCompatible(), align::tpe::moduleNumber(), AlignmentParameterSelector::outsideDetIdRanges(), PixelEndcapName::PixelEndcapName(), PixelEndcapNameUpgrade::PixelEndcapNameUpgrade(), RoadSearchDetIdHelper::Print(), L1TrackProducer::produce(), and trackerHierarchy().
{ return ((id_>>moduleStartBit_) & moduleMask_); }
unsigned int PXFDetId::panel | ( | ) | const [inline] |
Panel id.
Definition at line 77 of file PXFDetId.h.
References DetId::id_, panelMask_, and panelStartBit_.
Referenced by FWTrackHitsDetailView::addModules(), SiPixelDigiValid::analyze(), HitDump::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelLorentzAngle::analyze(), RingMaker::determineExtensions(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), HitInfo::getInfo(), TrajectoryCleanerMerger::getLayer(), TrackCleaner::isCompatible(), HitComparatorByRadius::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), align::tpe::panelNumber(), PixelEndcapName::PixelEndcapName(), PixelEndcapNameUpgrade::PixelEndcapNameUpgrade(), L1TrackProducer::produce(), and trackerHierarchy().
{ return ((id_>>panelStartBit_) & panelMask_); }
unsigned int PXFDetId::ring | ( | ) | const [inline] |
Ring id **NP Phase 2 tracker mod.
Definition at line 63 of file PXFDetId.h.
References bladeMask_, bladeStartBit_, dtNoiseDBValidation_cfg::cerr, disk(), and DetId::id_.
Referenced by StackedTrackerGeometryBuilder::build().
{ if (this->disk() > 3) return ((id_>>bladeStartBit_) & bladeMask_); else { std::cerr << "W A R N I N G! Attempting to get PXF::ring() from Outer Tracker Endcap" << std::endl; return 9999999; } }
unsigned int PXFDetId::side | ( | ) | const [inline] |
Side: positive or negative id.
Definition at line 39 of file PXFDetId.h.
References DetId::id_, sideMask_, and sideStartBit_.
Referenced by FWTrackHitsDetailView::addModules(), SiPixelDigiValid::analyze(), HitDump::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelLorentzAngle::analyze(), StackedTrackerGeometryBuilder::build(), AlignmentTrackSelector::detailedHitsCheck(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), align::tpe::endcapNumber(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), MillePedeMonitor::fillTrack(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), HitInfo::getInfo(), ValidHitPairFilter::getLayer(), TrackCleaner::isCompatible(), SeedMergerPixelLayer::isContainsDetector(), ClusterSummary::ModuleSelection::IsPixelSelected(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), AlignmentPrescaler::layerFromId(), DetIdPXFSameDiskComparator::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), PixelEndcapName::PixelEndcapName(), PixelEndcapNameUpgrade::PixelEndcapNameUpgrade(), RoadSearchDetIdHelper::Print(), L1TrackProducer::produce(), ResidualRefitting::StoreTrackerRecHits(), and trackerHierarchy().
{ return int((id_>>sideStartBit_) & sideMask_); }
const unsigned int PXFDetId::bladeMask_ = 0x3F [static, private] |
Definition at line 100 of file PXFDetId.h.
Referenced by blade(), PXFDetId(), and ring().
const unsigned int PXFDetId::bladeStartBit_ = 12 [static, private] |
Definition at line 92 of file PXFDetId.h.
Referenced by blade(), PXFDetId(), and ring().
const unsigned int PXFDetId::diskMask_ = 0xF [static, private] |
Definition at line 99 of file PXFDetId.h.
Referenced by disk(), and PXFDetId().
const unsigned int PXFDetId::diskStartBit_ = 18 [static, private] |
Definition at line 91 of file PXFDetId.h.
Referenced by disk(), and PXFDetId().
const unsigned int PXFDetId::moduleMask_ = 0xFF [static, private] |
Definition at line 102 of file PXFDetId.h.
Referenced by module(), and PXFDetId().
const unsigned int PXFDetId::moduleStartBit_ = 2 [static, private] |
Definition at line 94 of file PXFDetId.h.
Referenced by module(), and PXFDetId().
const unsigned int PXFDetId::panelMask_ = 0x3 [static, private] |
Definition at line 101 of file PXFDetId.h.
Referenced by panel(), and PXFDetId().
const unsigned int PXFDetId::panelStartBit_ = 10 [static, private] |
Definition at line 93 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 98 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 90 of file PXFDetId.h.
Referenced by PXFDetId(), and side().
const unsigned int PXFDetId::typeMask_ = 0x3 [static, private] |
Definition at line 103 of file PXFDetId.h.
const unsigned int PXFDetId::typeStartBit_ = 0 [static, private] |
Definition at line 95 of file PXFDetId.h.