CMS 3D CMS Logo

Public Member Functions | Static Private Attributes

PXFDetId Class Reference

#include <PXFDetId.h>

Inheritance diagram for PXFDetId:
DetId

List of all members.

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

Detailed Description

Definition at line 15 of file PXFDetId.h.


Constructor & Destructor Documentation

PXFDetId::PXFDetId ( )

Constructor of a null id

Definition at line 3 of file PXFDetId.cc.

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

Constructor from a raw value

Definition at line 6 of file PXFDetId.cc.

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

Construct from generic DetId

Definition at line 8 of file PXFDetId.cc.

                                  : DetId(id.rawId()) {
}
PXFDetId::PXFDetId ( uint32_t  side,
uint32_t  disk,
uint32_t  blade,
uint32_t  panel,
uint32_t  module 
) [inline]

Member Function Documentation

unsigned int PXFDetId::blade ( ) const [inline]
unsigned int PXFDetId::disk ( ) const [inline]

disk id

Definition at line 43 of file PXFDetId.h.

References diskMask_, diskStartBit_, and DetId::id_.

Referenced by SiPixelDigiValid::analyze(), SiPixelMuonHLT::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelLorentzAngle::analyze(), ElectronSeedAnalyzer::analyze(), reco::DeDxHit::DeDxHit(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), AlignmentStats::endJob(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), 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::tpe::halfDiskNumber(), GeometricSearchTracker::idToLayer(), CheckHitPattern::interpretDetId(), PFCheckHitPattern::interpretDetId(), TrackCleaner::isCompatible(), 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(), HitPixelLayersTPSelector::pixelHitPattern(), RoadSearchDetIdHelper::Print(), reco::HitPattern::set(), trackerHierarchy(), TrackTransformerForGlobalCosmicMuons::TrackerKeep(), KFTrajectorySmoother::trajectories(), and TrackerAlignableId::typeAndLayerFromDetId().

                           {
    return int((id_>>diskStartBit_) & diskMask_);
  }
unsigned int PXFDetId::module ( ) const [inline]
unsigned int PXFDetId::panel ( ) const [inline]
unsigned int PXFDetId::side ( ) const [inline]

Member Data Documentation

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().