#include <PXBDetId.h>
Public Member Functions | |
unsigned int | ladder () const |
ladder id | |
unsigned int | layer () const |
layer id | |
unsigned int | module () const |
det id | |
PXBDetId (uint32_t rawid) | |
PXBDetId (uint32_t layer, uint32_t ladder, uint32_t module) | |
PXBDetId (const DetId &id) | |
PXBDetId () | |
Static Private Attributes | |
static const unsigned int | ladderMask_ = 0xFF |
static const unsigned int | ladderStartBit_ = 12 |
static const unsigned int | layerMask_ = 0xF |
two bits would be enough, but we could use the number "0" as a wildcard | |
static const unsigned int | layerStartBit_ = 20 |
two bits would be enough, but we could use the number "0" as a wildcard | |
static const unsigned int | moduleMask_ = 0x3FF |
static const unsigned int | moduleStartBit_ = 2 |
static const unsigned int | typeMask_ = 0x3 |
static const unsigned int | typeStartBit_ = 0 |
Definition at line 16 of file PXBDetId.h.
PXBDetId::PXBDetId | ( | ) |
PXBDetId::PXBDetId | ( | uint32_t | rawid | ) |
PXBDetId::PXBDetId | ( | const DetId & | id | ) |
PXBDetId::PXBDetId | ( | uint32_t | layer, |
uint32_t | ladder, | ||
uint32_t | module | ||
) | [inline] |
Definition at line 25 of file PXBDetId.h.
References DetId::id_, ladderMask_, ladderStartBit_, layerMask_, layerStartBit_, moduleMask_, and moduleStartBit_.
: DetId(DetId::Tracker,PixelSubdetector::PixelBarrel){ id_ |= (layer& layerMask_) << layerStartBit_ | (ladder& ladderMask_) << ladderStartBit_ | (module& moduleMask_) << moduleStartBit_; }
unsigned int PXBDetId::ladder | ( | ) | const [inline] |
ladder id
Definition at line 38 of file PXBDetId.h.
References DetId::id_, ladderMask_, and ladderStartBit_.
Referenced by FWTrackHitsDetailView::addModules(), SiPixelDigiValid::analyze(), HitDump::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelLorentzAngle::analyze(), StackedTrackerGeometryBuilder::build(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXBGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), HitInfo::getInfo(), TrajectoryCleanerMerger::getLayer(), align::tpb::halfBarrelNumber(), TrackCleaner::isCompatible(), align::tpb::ladderNumber(), HitComparatorByRadius::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), PixelBarrelName::PixelBarrelName(), PixelBarrelNameUpgrade::PixelBarrelNameUpgrade(), RoadSearchDetIdHelper::Print(), L1TrackProducer::produce(), and trackerHierarchy().
{ return ((id_>>ladderStartBit_) & ladderMask_) ;}
unsigned int PXBDetId::layer | ( | ) | const [inline] |
layer id
Definition at line 34 of file PXBDetId.h.
References DetId::id_, layerMask_, and layerStartBit_.
Referenced by FWTrackHitsDetailView::addModules(), SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), HitDump::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelLorentzAngle::analyze(), StackedTrackerGeometryBuilder::build(), PixelThresholdClusterizer::calibrate(), reco::DeDxHit::DeDxHit(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), reco::HitPattern::encode(), AlignmentStats::endJob(), HITrackingRegionProducer::estimateMultiplicity(), TrackerGeometryCompare::fillIdentifiers(), QcdLowPtDQM::fillPixels(), RingMaker::fillPXBGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), getDetLayer(), HitInfo::getInfo(), TrajectoryCleanerMerger::getLayer(), ValidHitPairFilter::getLayer(), GlobalMuonRefitter::getRidOfSelectStationHits(), TrackTransformerForGlobalCosmicMuons::getTransientRecHits(), align::tpb::halfBarrelNumber(), GeometricSearchTracker::idToLayer(), fireworks::info(), DetIdInfo::info(), CheckHitPattern::interpretDetId(), PFCheckHitPattern::interpretDetId(), TrackCleaner::isCompatible(), SeedMergerPixelLayer::isContainsDetector(), ClusterSummary::ModuleSelection::IsPixelSelected(), align::tpb::ladderNumber(), MuonReSeeder::layer(), TrackMerger::layer(), reco::modules::TrackerTrackHitFilter::Rule::layer(), MuonAssociatorByHits::LayerFromDetid(), TrackingTruthProducer::LayerFromDetid(), TrackAssociatorByHits::LayerFromDetid(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), AlignmentPrescaler::layerFromId(), align::tpb::layerNumber(), PixelCPEGeneric::localError(), TrajectoryManager::makeSinglePSimHit(), DetIdPXBSameLayerComparator::operator()(), HitComparatorByRadius::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), PixelBarrelName::PixelBarrelName(), PixelBarrelNameUpgrade::PixelBarrelNameUpgrade(), HitPixelLayersTPSelector::pixelHitPattern(), RoadSearchDetIdHelper::Print(), L1TrackProducer::produce(), ResidualRefitting::StoreTrackerRecHits(), trackerHierarchy(), TrackTransformerForGlobalCosmicMuons::TrackerKeep(), and TrackerAlignableId::typeAndLayerFromDetId().
{ return int((id_>>layerStartBit_) & layerMask_);}
unsigned int PXBDetId::module | ( | ) | const [inline] |
det id
Definition at line 42 of file PXBDetId.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::fillPXBGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), HitInfo::getInfo(), TrackCleaner::isCompatible(), align::tpb::moduleNumber(), AlignmentParameterSelector::outsideDetIdRanges(), PixelBarrelName::PixelBarrelName(), PixelBarrelNameUpgrade::PixelBarrelNameUpgrade(), RoadSearchDetIdHelper::Print(), L1TrackProducer::produce(), and trackerHierarchy().
{ return ((id_>>moduleStartBit_)& moduleMask_) ;}
const unsigned int PXBDetId::ladderMask_ = 0xFF [static, private] |
Definition at line 54 of file PXBDetId.h.
Referenced by ladder(), and PXBDetId().
const unsigned int PXBDetId::ladderStartBit_ = 12 [static, private] |
Definition at line 48 of file PXBDetId.h.
Referenced by ladder(), and PXBDetId().
const unsigned int PXBDetId::layerMask_ = 0xF [static, private] |
two bits would be enough, but we could use the number "0" as a wildcard
Definition at line 53 of file PXBDetId.h.
Referenced by layer(), and PXBDetId().
const unsigned int PXBDetId::layerStartBit_ = 20 [static, private] |
two bits would be enough, but we could use the number "0" as a wildcard
Definition at line 47 of file PXBDetId.h.
Referenced by layer(), and PXBDetId().
const unsigned int PXBDetId::moduleMask_ = 0x3FF [static, private] |
Definition at line 55 of file PXBDetId.h.
Referenced by module(), and PXBDetId().
const unsigned int PXBDetId::moduleStartBit_ = 2 [static, private] |
Definition at line 49 of file PXBDetId.h.
Referenced by module(), and PXBDetId().
const unsigned int PXBDetId::typeMask_ = 0x3 [static, private] |
Definition at line 56 of file PXBDetId.h.
const unsigned int PXBDetId::typeStartBit_ = 0 [static, private] |
Definition at line 50 of file PXBDetId.h.