CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Private Attributes
PXFDetId Class Reference

#include <PXFDetId.h>

Inheritance diagram for PXFDetId:
DetId

Public Member Functions

unsigned int blade () const
 blade id More...
 
unsigned int disk () const
 disk id More...
 
unsigned int module () const
 det id More...
 
unsigned int panel () const
 panel id More...
 
 PXFDetId ()
 
 PXFDetId (uint32_t rawid)
 
 PXFDetId (const DetId &id)
 
 PXFDetId (uint32_t side, uint32_t disk, uint32_t blade, uint32_t panel, uint32_t module)
 
unsigned int side () const
 positive or negative id More...
 
- Public Member Functions inherited from DetId
Detector det () const
 get the detector field from this detid More...
 
 DetId ()
 Create an empty or null id (also for persistence) More...
 
 DetId (uint32_t id)
 Create an id from a raw number. More...
 
 DetId (Detector det, int subdet)
 Create an id, filling the detector and subdetector fields as specified. More...
 
bool null () const
 is this a null id ? More...
 
 operator uint32_t () const
 
bool operator!= (DetId id) const
 inequality More...
 
uint32_t operator() () const
 
bool operator< (DetId id) const
 comparison More...
 
bool operator== (DetId id) const
 equality More...
 
uint32_t rawId () const
 get the raw id More...
 
int subdetId () const
 get the contents of the subdetector field (not cast into any detector's numbering enum) More...
 

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 More...
 
static const unsigned int sideStartBit_ = 23
 two bits would be enough, but we could use the number "0" as a wildcard More...
 

Additional Inherited Members

- Public Types inherited from DetId
enum  Detector {
  Tracker =1, Muon =2, Ecal =3, Hcal =4,
  Calo =5
}
 
- Static Public Attributes inherited from DetId
static const int kDetOffset = 28
 
static const int kSubdetOffset = 25
 
- Protected Attributes inherited from DetId
uint32_t id_
 

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.

3  : DetId() {
4 }
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:28
PXFDetId::PXFDetId ( uint32_t  rawid)

Constructor from a raw value

Definition at line 6 of file PXFDetId.cc.

6  : DetId(rawid) {
7 }
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:28
PXFDetId::PXFDetId ( const DetId id)

Construct from generic DetId

Definition at line 8 of file PXFDetId.cc.

8  : DetId(id.rawId()) {
9 }
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:28
uint32_t rawId() const
get the raw id
Definition: DetId.h:45
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_.

29  id_ |= (side& sideMask_) << sideStartBit_ |
34  }
static const unsigned int sideStartBit_
two bits would be enough, but we could use the number &quot;0&quot; as a wildcard
Definition: PXFDetId.h:61
unsigned int panel() const
panel id
Definition: PXFDetId.h:52
static const unsigned int bladeMask_
Definition: PXFDetId.h:70
static const unsigned int diskStartBit_
Definition: PXFDetId.h:62
static const unsigned int panelMask_
Definition: PXFDetId.h:71
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:28
unsigned int blade() const
blade id
Definition: PXFDetId.h:48
static const unsigned int panelStartBit_
Definition: PXFDetId.h:64
unsigned int disk() const
disk id
Definition: PXFDetId.h:43
static const unsigned int bladeStartBit_
Definition: PXFDetId.h:63
uint32_t id_
Definition: DetId.h:57
static const unsigned int diskMask_
Definition: PXFDetId.h:69
static const unsigned int moduleStartBit_
Definition: PXFDetId.h:65
static const unsigned int moduleMask_
Definition: PXFDetId.h:72
unsigned int side() const
positive or negative id
Definition: PXFDetId.h:38
static const unsigned int sideMask_
two bits would be enough, but we could use the number &quot;0&quot; as a wildcard
Definition: PXFDetId.h:68
Definition: vlib.h:209

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 FWTrackHitsDetailView::addModules(), SiPixelDigiValid::analyze(), SiPixelLorentzAngleDB::analyze(), ElectronSeedAnalyzer::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelLorentzAngle::analyze(), SiPixelMuonHLT::analyze(), reco::DeDxHit::DeDxHit(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), reco::HitPattern::encode(), AlignmentStats::endJob(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::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(), ClusterSummary::ModuleSelection::IsPixelSelected(), reco::modules::TrackerTrackHitFilter::Rule::layer(), TrackingTruthProducer::LayerFromDetid(), TrackAssociatorByHits::LayerFromDetid(), MuonAssociatorByHits::LayerFromDetid(), AlignmentPrescaler::layerFromId(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), TrajectoryManager::makeSinglePSimHit(), HitComparatorByRadius::operator()(), DetIdPXFSameDiskComparator::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), PixelEndcapName::PixelEndcapName(), HitPixelLayersTPSelector::pixelHitPattern(), RoadSearchDetIdHelper::Print(), trackerHierarchy(), TrackTransformerForGlobalCosmicMuons::TrackerKeep(), KFTrajectorySmoother::trajectories(), and TrackerAlignableId::typeAndLayerFromDetId().

43  {
44  return int((id_>>diskStartBit_) & diskMask_);
45  }
static const unsigned int diskStartBit_
Definition: PXFDetId.h:62
uint32_t id_
Definition: DetId.h:57
static const unsigned int diskMask_
Definition: PXFDetId.h:69
unsigned int PXFDetId::module ( ) const
inline
unsigned int PXFDetId::panel ( ) const
inline
unsigned int PXFDetId::side ( ) const
inline

positive or negative id

Definition at line 38 of file PXFDetId.h.

References DetId::id_, sideMask_, and sideStartBit_.

Referenced by FWTrackHitsDetailView::addModules(), SiPixelDigiValid::analyze(), SiPixelLorentzAngleDB::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelLorentzAngle::analyze(), AlignmentTrackSelector::detailedHitsCheck(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), align::tpe::endcapNumber(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillPXFGeometryArray(), MillePedeMonitor::fillTrack(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), HitInfo::getInfo(), ValidHitPairFilter::getLayer(), TrackCleaner::isCompatible(), ClusterSummary::ModuleSelection::IsPixelSelected(), AlignmentPrescaler::layerFromId(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), DetIdPXFSameDiskComparator::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), PixelEndcapName::PixelEndcapName(), RoadSearchDetIdHelper::Print(), and trackerHierarchy().

38  {
39  return int((id_>>sideStartBit_) & sideMask_);
40  }
static const unsigned int sideStartBit_
two bits would be enough, but we could use the number &quot;0&quot; as a wildcard
Definition: PXFDetId.h:61
uint32_t id_
Definition: DetId.h:57
static const unsigned int sideMask_
two bits would be enough, but we could use the number &quot;0&quot; as a wildcard
Definition: PXFDetId.h:68

Member Data Documentation

const unsigned int PXFDetId::bladeMask_ = 0x3F
staticprivate

Definition at line 70 of file PXFDetId.h.

Referenced by blade(), and PXFDetId().

const unsigned int PXFDetId::bladeStartBit_ = 10
staticprivate

Definition at line 63 of file PXFDetId.h.

Referenced by blade(), and PXFDetId().

const unsigned int PXFDetId::diskMask_ = 0xF
staticprivate

Definition at line 69 of file PXFDetId.h.

Referenced by disk(), and PXFDetId().

const unsigned int PXFDetId::diskStartBit_ = 16
staticprivate

Definition at line 62 of file PXFDetId.h.

Referenced by disk(), and PXFDetId().

const unsigned int PXFDetId::moduleMask_ = 0x3F
staticprivate

Definition at line 72 of file PXFDetId.h.

Referenced by module(), and PXFDetId().

const unsigned int PXFDetId::moduleStartBit_ = 2
staticprivate

Definition at line 65 of file PXFDetId.h.

Referenced by module(), and PXFDetId().

const unsigned int PXFDetId::panelMask_ = 0x3
staticprivate

Definition at line 71 of file PXFDetId.h.

Referenced by panel(), and PXFDetId().

const unsigned int PXFDetId::panelStartBit_ = 8
staticprivate

Definition at line 64 of file PXFDetId.h.

Referenced by panel(), and PXFDetId().

const unsigned int PXFDetId::sideMask_ = 0x3
staticprivate

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
staticprivate

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