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 **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

Detailed Description

Definition at line 16 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 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]
unsigned int PXFDetId::panel ( ) const [inline]
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]

Member Data Documentation

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.