CMS 3D CMS Logo

PXBDetId Class Reference

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

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.

Referenced by SiPixelRecHitsValid::fillBarrel().

00003                    : DetId() {
00004 }

PXBDetId::PXBDetId ( uint32_t  rawid  ) 

Constructor from a raw value.

Definition at line 6 of file PXBDetId.cc.

00006                                  : DetId(rawid) {
00007 }

PXBDetId::PXBDetId ( const DetId id  ) 

Construct from generic DetId.

Definition at line 8 of file PXBDetId.cc.

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

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_.


Member Function Documentation

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

ladder id

Definition at line 39 of file PXBDetId.h.

References DetId::id_, ladderMask_, and ladderStartBit_.

Referenced by SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelLorentzAngle::analyze(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXBGeometryArray(), HitInfo::getInfo(), TrajectoryCleanerMerger::getLayer(), TrackCleaner::getLayer(), align::tpb::halfBarrelNumber(), align::tpb::ladderNumber(), PixelBarrelName::PixelBarrelName(), RoadSearchDetIdHelper::Print(), and trackerHierarchy().

00040     { return ((id_>>ladderStartBit_) & ladderMask_) ;}

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

layer id

Definition at line 35 of file PXBDetId.h.

References DetId::id_, int, layerMask_, and layerStartBit_.

Referenced by SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelLorentzAngle::analyze(), SimHitTrackerAnalyzer::analyze(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), HITrackingRegionProducer::estimateMultiplicity(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXBGeometryArray(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), HitInfo::getInfo(), TrajectoryCleanerMerger::getLayer(), ValidHitPairFilter::getLayer(), TrackCleaner::getLayer(), align::tpb::halfBarrelNumber(), align::tpb::ladderNumber(), TrajectoryManager::makeSinglePSimHit(), DetIdPXBSameLayerComparator::operator()(), PixelBarrelName::PixelBarrelName(), RoadSearchDetIdHelper::Print(), and trackerHierarchy().

00035                             {
00036     return int((id_>>layerStartBit_) & layerMask_);}

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

det id

Definition at line 43 of file PXBDetId.h.

References DetId::id_, moduleMask_, and moduleStartBit_.

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

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


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


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