CMS 3D CMS Logo

Public Member Functions | Static Private Attributes

PXBDetId Class Reference

#include <PXBDetId.h>

Inheritance diagram for PXBDetId:
DetId

List of all members.

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_ = 8
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_ = 16
 two bits would be enough, but we could use the number "0" as a wildcard
static const unsigned int moduleMask_ = 0x3F
static const unsigned int moduleStartBit_ = 2

Detailed Description

Definition at line 16 of file PXBDetId.h.


Constructor & Destructor Documentation

PXBDetId::PXBDetId ( )

Constructor of a null id

Definition at line 3 of file PXBDetId.cc.

                   : DetId() {
}
PXBDetId::PXBDetId ( uint32_t  rawid)

Constructor from a raw value

Definition at line 6 of file PXBDetId.cc.

                                 : DetId(rawid) {
}
PXBDetId::PXBDetId ( const DetId id)

Construct from generic DetId

Definition at line 8 of file PXBDetId.cc.

                                  : DetId(id.rawId()) {
}
PXBDetId::PXBDetId ( uint32_t  layer,
uint32_t  ladder,
uint32_t  module 
) [inline]

Member Function Documentation

unsigned int PXBDetId::ladder ( ) const [inline]
unsigned int PXBDetId::layer ( ) const [inline]

layer id

Definition at line 35 of file PXBDetId.h.

References DetId::id_, layerMask_, and layerStartBit_.

Referenced by FWTrackHitsDetailView::addModules(), SiPixelDigiValid::analyze(), SiPixelTrackResidualSource::analyze(), SiPixelMuonHLT::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), ElectronSeedAnalyzer::analyze(), SiPixelLorentzAngle::analyze(), 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(), GlobalDigisAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), KFTrajectoryFitter::fit(), 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(), ClusterSummary::ModuleSelection::IsPixelSelected(), align::tpb::ladderNumber(), reco::modules::TrackerTrackHitFilter::Rule::layer(), MuonAssociatorByHits::LayerFromDetid(), TrackingTruthProducer::LayerFromDetid(), TrackAssociatorByHits::LayerFromDetid(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), align::tpb::layerNumber(), TrajectoryManager::makeSinglePSimHit(), DetIdPXBSameLayerComparator::operator()(), HitComparatorByRadius::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), PixelBarrelName::PixelBarrelName(), HitPixelLayersTPSelector::pixelHitPattern(), RoadSearchDetIdHelper::Print(), trackerHierarchy(), TrackTransformerForGlobalCosmicMuons::TrackerKeep(), KFTrajectorySmoother::trajectories(), and TrackerAlignableId::typeAndLayerFromDetId().

                            {
    return int((id_>>layerStartBit_) & layerMask_);}
unsigned int PXBDetId::module ( ) const [inline]

Member Data Documentation

const unsigned int PXBDetId::ladderMask_ = 0xFF [static, private]

Definition at line 53 of file PXBDetId.h.

Referenced by ladder(), and PXBDetId().

const unsigned int PXBDetId::ladderStartBit_ = 8 [static, private]

Definition at line 49 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 52 of file PXBDetId.h.

Referenced by layer(), and PXBDetId().

const unsigned int PXBDetId::layerStartBit_ = 16 [static, private]

two bits would be enough, but we could use the number "0" as a wildcard

Definition at line 48 of file PXBDetId.h.

Referenced by layer(), and PXBDetId().

const unsigned int PXBDetId::moduleMask_ = 0x3F [static, private]

Definition at line 54 of file PXBDetId.h.

Referenced by module(), and PXBDetId().

const unsigned int PXBDetId::moduleStartBit_ = 2 [static, private]

Definition at line 50 of file PXBDetId.h.

Referenced by module(), and PXBDetId().