CMS 3D CMS Logo

PXFDetId Class Reference

#include <DataFormats/SiPixelDetId/interface/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 (uint32_t side, uint32_t disk, uint32_t blade, uint32_t panel, uint32_t module)
 PXFDetId (const DetId &id)
 Construct from generic DetId.
 PXFDetId (uint32_t rawid)
 Constructor from a raw value.
 PXFDetId ()
 Constructor of a null id.
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.

Referenced by SiPixelRecHitsValid::fillForward().

00003                    : DetId() {
00004 }

PXFDetId::PXFDetId ( uint32_t  rawid  ) 

Constructor from a raw value.

Definition at line 6 of file PXFDetId.cc.

00006                                  : DetId(rawid) {
00007 }

PXFDetId::PXFDetId ( const DetId id  ) 

Construct from generic DetId.

Definition at line 8 of file PXFDetId.cc.

00008                                   : DetId(id.rawId()) {
00009 }

PXFDetId::PXFDetId ( uint32_t  side,
uint32_t  disk,
uint32_t  blade,
uint32_t  panel,
uint32_t  module 
) [inline]

Definition at line 24 of file PXFDetId.h.

References bladeMask_, bladeStartBit_, diskMask_, diskStartBit_, DetId::id_, moduleMask_, moduleStartBit_, panelMask_, panelStartBit_, sideMask_, and sideStartBit_.


Member Function Documentation

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

blade id

Definition at line 48 of file PXFDetId.h.

References bladeMask_, bladeStartBit_, and DetId::id_.

Referenced by SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), HitInfo::getInfo(), PixelEndcapName::PixelEndcapName(), RoadSearchDetIdHelper::Print(), and trackerHierarchy().

00049     { return ((id_>>bladeStartBit_) & bladeMask_) ;}

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

disk id

Definition at line 43 of file PXFDetId.h.

References diskMask_, diskStartBit_, DetId::id_, and int.

Referenced by SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), SimHitTrackerAnalyzer::analyze(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), HitInfo::getInfo(), TrajectoryCleanerMerger::getLayer(), ValidHitPairFilter::getLayer(), TrackCleaner::getLayer(), TrajectoryManager::makeSinglePSimHit(), DetIdPXFSameDiskComparator::operator()(), PixelEndcapName::PixelEndcapName(), RoadSearchDetIdHelper::Print(), and trackerHierarchy().

00043                            {
00044     return int((id_>>diskStartBit_) & diskMask_);
00045   }

unsigned int PXFDetId::module (  )  const [inline]

det id

Definition at line 56 of file PXFDetId.h.

References DetId::id_, moduleMask_, and moduleStartBit_.

Referenced by SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), HitInfo::getInfo(), PixelEndcapName::PixelEndcapName(), RoadSearchDetIdHelper::Print(), and trackerHierarchy().

00057     { return ((id_>>moduleStartBit_) & moduleMask_) ;}

unsigned int PXFDetId::panel (  )  const [inline]

panel id

Definition at line 52 of file PXFDetId.h.

References DetId::id_, panelMask_, and panelStartBit_.

Referenced by SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), RingMaker::determineExtensions(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), HitInfo::getInfo(), TrajectoryCleanerMerger::getLayer(), TrackCleaner::getLayer(), PixelEndcapName::PixelEndcapName(), and trackerHierarchy().

00053     { return ((id_>>panelStartBit_) & panelMask_) ;}

unsigned int PXFDetId::side (  )  const [inline]

positive or negative id

Definition at line 38 of file PXFDetId.h.

References DetId::id_, int, sideMask_, and sideStartBit_.

Referenced by SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), HitInfo::getInfo(), ValidHitPairFilter::getLayer(), DetIdPXFSameDiskComparator::operator()(), PixelEndcapName::PixelEndcapName(), RoadSearchDetIdHelper::Print(), and trackerHierarchy().

00038                            {
00039     return int((id_>>sideStartBit_) & sideMask_);
00040   }


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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:30:30 2009 for CMSSW by  doxygen 1.5.4