CMS 3D CMS Logo

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

#include <TrackerTopology.h>

Classes

struct  BitmaskAndSubdet
 
struct  PixelBarrelValues
 
struct  PixelEndcapValues
 
class  SameLayerComparator
 
struct  TECValues
 
struct  TIBValues
 
struct  TIDValues
 
struct  TOBValues
 

Public Types

enum  DetIdFields {
  PBModule, PBLadder, PBLayer, PFModule,
  PFPanel, PFBlade, PFDisk, PFSide,
  DETID_FIELDS_MAX
}
 

Public Member Functions

unsigned int getField (const DetId &id, DetIdFields idx) const
 
int getITPixelLayerNumber (const DetId &id) const
 
int getOTLayerNumber (const DetId &id) const
 
uint32_t glued (const DetId &id) const
 
bool hasField (const DetId &id, DetIdFields idx) const
 
bool isLower (const DetId &id) const
 
bool isRPhi (const DetId &id) const
 
bool isStereo (const DetId &id) const
 
bool isUpper (const DetId &id) const
 
unsigned int layer (const DetId &id) const
 
uint32_t lower (const DetId &id) const
 
unsigned int module (const DetId &id) const
 
SiStripModuleGeometry moduleGeometry (const DetId &id) const
 
DetId partnerDetId (const DetId &id) const
 
std::string print (DetId detid) const
 
DetId pxbDetId (uint32_t layer, uint32_t ladder, uint32_t module) const
 
std::pair< DetId,
SameLayerComparator
pxbDetIdLayerComparator (uint32_t layer) const
 
unsigned int pxbLadder (const DetId &id) const
 
unsigned int pxbLayer (const DetId &id) const
 
unsigned int pxbModule (const DetId &id) const
 
unsigned int pxfBlade (const DetId &id) const
 
DetId pxfDetId (uint32_t side, uint32_t disk, uint32_t blade, uint32_t panel, uint32_t module) const
 
std::pair< DetId,
SameLayerComparator
pxfDetIdDiskComparator (uint32_t side, uint32_t disk) const
 
unsigned int pxfDisk (const DetId &id) const
 
unsigned int pxfModule (const DetId &id) const
 
unsigned int pxfPanel (const DetId &id) const
 
unsigned int pxfSide (const DetId &id) const
 
unsigned int side (const DetId &id) const
 
uint32_t stack (const DetId &id) const
 
DetId tecDetId (uint32_t side, uint32_t wheel, uint32_t petal_fw_bw, uint32_t petal, uint32_t ring, uint32_t module, uint32_t ster) const
 
std::pair< DetId,
SameLayerComparator
tecDetIdWheelComparator (uint32_t side, uint32_t wheel) const
 
uint32_t tecGlued (const DetId &id) const
 
bool tecIsBackPetal (const DetId &id) const
 
bool tecIsDoubleSide (const DetId &id) const
 
bool tecIsFrontPetal (const DetId &id) const
 
bool tecIsRPhi (const DetId &id) const
 
bool tecIsStereo (const DetId &id) const
 
bool tecIsZMinusSide (const DetId &id) const
 
bool tecIsZPlusSide (const DetId &id) const
 
uint32_t tecLower (const DetId &id) const
 
unsigned int tecModule (const DetId &id) const
 
unsigned int tecOrder (const DetId &id) const
 
uint32_t tecPartnerDetId (const DetId &id) const
 
std::vector< unsigned int > tecPetalInfo (const DetId &id) const
 
unsigned int tecPetalNumber (const DetId &id) const
 
unsigned int tecRing (const DetId &id) const
 ring id More...
 
uint32_t tecRPhi (const DetId &id) const
 
unsigned int tecSide (const DetId &id) const
 
uint32_t tecStack (const DetId &id) const
 
uint32_t tecStereo (const DetId &id) const
 
uint32_t tecUpper (const DetId &id) const
 
unsigned int tecWheel (const DetId &id) const
 
DetId tibDetId (uint32_t layer, uint32_t str_fw_bw, uint32_t str_int_ext, uint32_t str, uint32_t module, uint32_t ster) const
 
std::pair< DetId,
SameLayerComparator
tibDetIdLayerComparator (uint32_t layer) const
 
uint32_t tibGlued (const DetId &id) const
 
bool tibIsDoubleSide (const DetId &id) const
 
bool tibIsExternalString (const DetId &id) const
 
bool tibIsInternalString (const DetId &id) const
 
bool tibIsRPhi (const DetId &id) const
 
bool tibIsStereo (const DetId &id) const
 
bool tibIsZMinusSide (const DetId &id) const
 
bool tibIsZPlusSide (const DetId &id) const
 
unsigned int tibLayer (const DetId &id) const
 
uint32_t tibLower (const DetId &id) const
 
unsigned int tibModule (const DetId &id) const
 
unsigned int tibOrder (const DetId &id) const
 
DetId tibPartnerDetId (const DetId &id) const
 
uint32_t tibRPhi (const DetId &id) const
 
unsigned int tibSide (const DetId &id) const
 
uint32_t tibStack (const DetId &id) const
 
uint32_t tibStereo (const DetId &id) const
 
unsigned int tibString (const DetId &id) const
 
std::vector< unsigned int > tibStringInfo (const DetId &id) const
 
uint32_t tibUpper (const DetId &id) const
 
DetId tidDetId (uint32_t side, uint32_t wheel, uint32_t ring, uint32_t module_fw_bw, uint32_t module, uint32_t ster) const
 
std::pair< DetId,
SameLayerComparator
tidDetIdWheelComparator (uint32_t side, uint32_t wheel) const
 
uint32_t tidGlued (const DetId &id) const
 
bool tidIsBackRing (const DetId &id) const
 
bool tidIsDoubleSide (const DetId &id) const
 
bool tidIsFrontRing (const DetId &id) const
 
bool tidIsRPhi (const DetId &id) const
 
bool tidIsStereo (const DetId &id) const
 
bool tidIsZMinusSide (const DetId &id) const
 
bool tidIsZPlusSide (const DetId &id) const
 
uint32_t tidLower (const DetId &id) const
 
unsigned int tidModule (const DetId &id) const
 
std::vector< unsigned int > tidModuleInfo (const DetId &id) const
 
unsigned int tidOrder (const DetId &id) const
 
DetId tidPartnerDetId (const DetId &id) const
 
unsigned int tidRing (const DetId &id) const
 
uint32_t tidRPhi (const DetId &id) const
 
unsigned int tidSide (const DetId &id) const
 
uint32_t tidStack (const DetId &id) const
 
uint32_t tidStereo (const DetId &id) const
 
uint32_t tidUpper (const DetId &id) const
 
unsigned int tidWheel (const DetId &id) const
 
DetId tobDetId (uint32_t layer, uint32_t rod_fw_bw, uint32_t rod, uint32_t module, uint32_t ster) const
 
std::pair< DetId,
SameLayerComparator
tobDetIdLayerComparator (uint32_t layer) const
 
uint32_t tobGlued (const DetId &id) const
 
bool tobIsDoubleSide (const DetId &id) const
 
bool tobIsRPhi (const DetId &id) const
 
bool tobIsStereo (const DetId &id) const
 
bool tobIsZMinusSide (const DetId &id) const
 
bool tobIsZPlusSide (const DetId &id) const
 
unsigned int tobLayer (const DetId &id) const
 
uint32_t tobLower (const DetId &id) const
 
unsigned int tobModule (const DetId &id) const
 
DetId tobPartnerDetId (const DetId &id) const
 
unsigned int tobRod (const DetId &id) const
 
std::vector< unsigned int > tobRodInfo (const DetId &id) const
 
uint32_t tobRPhi (const DetId &id) const
 
unsigned int tobSide (const DetId &id) const
 
uint32_t tobStack (const DetId &id) const
 
uint32_t tobStereo (const DetId &id) const
 
uint32_t tobUpper (const DetId &id) const
 
 TrackerTopology (const PixelBarrelValues &pxb, const PixelEndcapValues &pxf, const TECValues &tecv, const TIBValues &tibv, const TIDValues &tidv, const TOBValues &tobv)
 
uint32_t upper (const DetId &id) const
 

Private Attributes

const BitmaskAndSubdet bits_per_field [DETID_FIELDS_MAX]
 
const PixelBarrelValues pbVals_
 
const PixelEndcapValues pfVals_
 
const TECValues tecVals_
 
const TIBValues tibVals_
 
const TIDValues tidVals_
 
const TOBValues tobVals_
 

Detailed Description

Definition at line 16 of file TrackerTopology.h.

Member Enumeration Documentation

Enumerator
PBModule 
PBLadder 
PBLayer 
PFModule 
PFPanel 
PFBlade 
PFDisk 
PFSide 
DETID_FIELDS_MAX 

Definition at line 101 of file TrackerTopology.h.

Constructor & Destructor Documentation

TrackerTopology::TrackerTopology ( const PixelBarrelValues pxb,
const PixelEndcapValues pxf,
const TECValues tecv,
const TIBValues tibv,
const TIDValues tidv,
const TOBValues tobv 
)

Definition at line 7 of file TrackerTopology.cc.

References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, TrackerTopology::PixelEndcapValues::diskMask_, TrackerTopology::PixelEndcapValues::diskStartBit_, TrackerTopology::PixelBarrelValues::ladderMask_, TrackerTopology::PixelBarrelValues::ladderStartBit_, TrackerTopology::PixelBarrelValues::layerMask_, TrackerTopology::PixelBarrelValues::layerStartBit_, TrackerTopology::PixelBarrelValues::moduleMask_, TrackerTopology::PixelEndcapValues::moduleMask_, TrackerTopology::PixelBarrelValues::moduleStartBit_, TrackerTopology::PixelEndcapValues::moduleStartBit_, TrackerTopology::PixelEndcapValues::panelMask_, TrackerTopology::PixelEndcapValues::panelStartBit_, PBLadder, PBLayer, PBModule, pbVals_, PFBlade, PFDisk, PFModule, PFPanel, PFSide, pfVals_, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, TrackerTopology::PixelEndcapValues::sideMask_, and TrackerTopology::PixelEndcapValues::sideStartBit_.

13  : pbVals_(pxb),
14  pfVals_(pxf),
15  tobVals_(tobv),
16  tibVals_(tibv),
17  tidVals_(tidv),
18  tecVals_(tecv),
const TECValues tecVals_
const PixelEndcapValues pfVals_
const BitmaskAndSubdet bits_per_field[DETID_FIELDS_MAX]
const PixelBarrelValues pbVals_
const TIBValues tibVals_
const TOBValues tobVals_
const TIDValues tidVals_

Member Function Documentation

unsigned int TrackerTopology::getField ( const DetId id,
DetIdFields  idx 
) const
inline

Definition at line 568 of file TrackerTopology.h.

References bits_per_field.

568  {
569  return ((id.rawId() >> bits_per_field[idx].startBit) & bits_per_field[idx].mask);
570  }
const BitmaskAndSubdet bits_per_field[DETID_FIELDS_MAX]
int TrackerTopology::getITPixelLayerNumber ( const DetId id) const
int TrackerTopology::getOTLayerNumber ( const DetId id) const
uint32_t TrackerTopology::glued ( const DetId id) const
bool TrackerTopology::hasField ( const DetId id,
DetIdFields  idx 
) const
inline

Definition at line 573 of file TrackerTopology.h.

References bits_per_field, and TrackerTopology::BitmaskAndSubdet::subdet.

573 { return id.subdetId() == bits_per_field[idx].subdet; }
const BitmaskAndSubdet bits_per_field[DETID_FIELDS_MAX]
bool TrackerTopology::isLower ( const DetId id) const
bool TrackerTopology::isRPhi ( const DetId id) const
bool TrackerTopology::isStereo ( const DetId id) const
bool TrackerTopology::isUpper ( const DetId id) const
unsigned int TrackerTopology::layer ( const DetId id) const

Referenced by tmtt::StubKiller::addDeadLayerModulesToDeadModuleList(), TrackingNtuple::addStripMatchedHit(), OuterTrackerMonitorTrackingParticles::analyze(), SiPixelDynamicInefficiencyReader::analyze(), OuterTrackerMonitorTTCluster::analyze(), OuterTrackerMonitorTTStub::analyze(), L1TrackObjectNtupleMaker::analyze(), TrackAssociatorByHitsImpl::associateSimToReco(), SiPixelPhase1Analyzer::BookForwardBins(), VectorHitBuilderAlgorithm::buildVectorHits(), TrackingParticleNumberOfLayers::calculate(), SeedingOTEDProducer::checkLayer(), mkfit::convertHits(), MkFitSeedConverter::convertSeeds(), JetCoreMCtruthSeedGenerator::DetectorSelector(), DeepCoreSeedGenerator::DetectorSelector(), SiPixelDigitizerAlgorithm::digitize(), reco::HitPattern::encode(), trackerDTC::Setup::encodeLayerId(), TrackerRemapper::fillEndcapRemap(), SiPixelPhase1Analyzer::FillForwardBinsAnalyze(), SiPixelPhase1Analyzer::FillForwardBinsRemap(), PixelCPEFast::fillParamsForGpu(), TrackingNtuple::fillPhase2OTHits(), TrackingNtuple::fillPixelHits(), TrackingNtuple::fillStripRphiStereoHits(), TrackingNtuple::fillTracks(), getDetLayer(), MTVHistoProducerAlgoForTracker::getSeedingLayerSetBin(), HLTPixelActivityFilter::hltFilter(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), PFCheckHitPattern::init(), cms::SiPixelDigitizer::initializeEvent(), CheckHitPattern::interpretDetId(), tmtt::StubKiller::killStub(), reco::modules::TrackerTrackHitFilter::Rule::layer(), CkfDebugger::layer(), reco::modules::TrackerTrackHitFilter::layerFromId(), SiStripDetCabling::layerSearch(), MkFitGeometry::MkFitGeometry(), MkFitGeometry::mkFitLayerNumber(), TrackerTopology::SameLayerComparator::operator()(), SiStripTrackerMapCreator::paintTkMapFromAlarm(), SiPixelDigitizerAlgorithm::pixel_aging(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), VectorHitBuilderAlgorithmBase::printCluster(), SiStripQuality::printDetInfo(), PixelClusterTagInfoProducer::produce(), TTStubBuilder< T >::produce(), TrackingNtuple::DetIdCommon::push_back(), PixelCPEClusterRepair::Rule::recommend(), trackerDTC::SensorModule::SensorModule(), TrackingNtuple::DetIdCommon::set(), tadqm::TrackAnalyzer::setLumi(), l1tVertexFinder::Stub::setModuleInfo(), PixelCPEGenericBase::setXYErrors(), JetCoreMCtruthSeedGenerator::splittedClusterDirections(), DeepCoreSeedGenerator::splittedClusterDirections(), tmtt::StubFEWindows::storedWindowSize(), trackerDTC::Setup::stubPos(), tmtt::TrackerModule::TrackerModule(), and PixelInactiveAreaFinder::updatePixelDets().

uint32_t TrackerTopology::lower ( const DetId id) const
unsigned int TrackerTopology::module ( const DetId id) const
SiStripModuleGeometry TrackerTopology::moduleGeometry ( const DetId id) const
DetId TrackerTopology::partnerDetId ( const DetId id) const
std::string TrackerTopology::print ( DetId  detid) const
DetId TrackerTopology::pxbDetId ( uint32_t  layer,
uint32_t  ladder,
uint32_t  module 
) const
inline

Definition at line 455 of file TrackerTopology.h.

References gpuClustering::id, TrackerTopology::PixelBarrelValues::ladderMask_, TrackerTopology::PixelBarrelValues::ladderStartBit_, TrackerTopology::PixelBarrelValues::layerMask_, TrackerTopology::PixelBarrelValues::layerStartBit_, TrackerTopology::PixelBarrelValues::moduleMask_, TrackerTopology::PixelBarrelValues::moduleStartBit_, pbVals_, PixelSubdetector::PixelBarrel, and DetId::Tracker.

Referenced by SiPixelDynamicInefficiencyDB::analyze(), PixelBarrelName::getDetId(), PixelInactiveAreaFinder::getPhiSpanBarrel(), and pxbDetIdLayerComparator().

455  {
456  //uply
458  uint32_t rawid = id.rawId();
459  rawid |= (layer & pbVals_.layerMask_) << pbVals_.layerStartBit_ |
462  return DetId(rawid);
463  }
uint16_t *__restrict__ id
const PixelBarrelValues pbVals_
unsigned int module(const DetId &id) const
Definition: DetId.h:17
unsigned int layer(const DetId &id) const
std::pair<DetId, SameLayerComparator> TrackerTopology::pxbDetIdLayerComparator ( uint32_t  layer) const
inline

Definition at line 532 of file TrackerTopology.h.

References pxbDetId().

Referenced by ctfseeding::HitExtractorPIX::hits().

532  {
533  return std::make_pair(pxbDetId(layer, 1, 1), SameLayerComparator(this));
534  }
unsigned int layer(const DetId &id) const
DetId pxbDetId(uint32_t layer, uint32_t ladder, uint32_t module) const
unsigned int TrackerTopology::pxbLadder ( const DetId id) const
inline

Definition at line 155 of file TrackerTopology.h.

References TrackerTopology::PixelBarrelValues::ladderMask_, TrackerTopology::PixelBarrelValues::ladderStartBit_, and pbVals_.

Referenced by FWTGeoRecoGeometryESProducer::addPixelBarrelGeometry(), TrackerAlignmentLevelBuilder::addPXBDetUnitInfo(), SiPixelDigiValid::analyze(), SiPixelLorentzAngleDB::analyze(), SiPixelVCalDB::analyze(), SiPixelDynamicInefficiencyReader::analyze(), SiPixelVCalReader::analyze(), SiPixelGenErrorDBObjectUploader::analyze(), SiPixel2DTemplateDBObjectUploader::analyze(), SiPixelTemplateDBObjectUploader::analyze(), SiPixelErrorEstimation::analyze(), PixelBaryCentreAnalyzer::analyze(), TrackerTreeGenerator::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiPixelLorentzAnglePCLWorker::analyze(), SiPixelPhase1Analyzer::BookBarrelBins(), PixelTopologyMap::buildTopologyMaps(), PixelInactiveAreaFinder::detInfo(), TrackerGeometryCompare::fillIdentifiers(), PixelCPEFast::fillParamsForGpu(), TrackerOfflineValidationSummary::fillTree(), HitInfo::getInfo(), PixelInactiveAreaFinder::getPhiSpanBarrel(), align::TrackerNameSpace::TPB::halfBarrelNumber(), Phase1PixelROCMaps::isBPixOuterLadder(), AlignmentPI::isBPixOuterLadder(), SiPixelPI::isBPixOuterLadder(), TrackCleaner::isCompatible(), SiPixelCoordinates::ladder(), align::TrackerNameSpace::TPB::ladderNumber(), SiPixelCoordinates::outer(), AlignmentParameterSelector::outsideDetIdRanges(), SiPixelDigitizerAlgorithm::pixel_aging(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), PixelBarrelName::PixelBarrelName(), TrackingNtuple::DetIdPixelOnly::push_back(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), trackerHierarchy(), and PixelInactiveAreaFinder::updatePixelDets().

155  {
156  return ((id.rawId() >> pbVals_.ladderStartBit_) & pbVals_.ladderMask_);
157  }
const PixelBarrelValues pbVals_
unsigned int TrackerTopology::pxbLayer ( const DetId id) const
inline

Definition at line 144 of file TrackerTopology.h.

References TrackerTopology::PixelBarrelValues::layerMask_, TrackerTopology::PixelBarrelValues::layerStartBit_, and pbVals_.

Referenced by FWTGeoRecoGeometryESProducer::addPixelBarrelGeometry(), TrackerAlignmentLevelBuilder::addPXBDetUnitInfo(), SiPixelDigiValid::analyze(), SiPixelVCalDB::analyze(), SiPixelLorentzAngleDB::analyze(), SiPixelDynamicInefficiencyReader::analyze(), SiPixelRecHitsValid::analyze(), SiPixelVCalReader::analyze(), SiPixelGenErrorDBObjectUploader::analyze(), SiPixelTemplateDBObjectUploader::analyze(), SiPixel2DTemplateDBObjectUploader::analyze(), SiPixelTrackResidualSource::analyze(), SiPixelErrorEstimation::analyze(), PixelBaryCentreAnalyzer::analyze(), TrackerTreeGenerator::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiPixelLorentzAnglePCLWorker::analyze(), DMRChecker::analyze(), SiPixelLorentzAnglePCLHarvester::beginRun(), SiPixelPhase1Analyzer::BookBarrelBins(), PixelTopologyMap::buildTopologyMaps(), PixelThresholdClusterizerForBricked::clusterizeDetUnitT(), PixelThresholdClusterizer::clusterizeDetUnitT(), SiPixelGainCalibScaler::computeAndStorePalyoads(), TrackingLayer::createFromDetId(), PixelRegions::detIdToPixelId(), PixelInactiveAreaFinder::detInfo(), gainCalibHelper::SiPixelGainCalibrationMap< myType, PayloadType, myDetType >::fill(), SiPixelRecHitsValid::fillBarrel(), SiPixelPhase1Analyzer::FillBarrelBinsAnalyze(), SiPixelPhase1Analyzer::FillBarrelBinsRemap(), TrackerRemapper::fillBarrelRemap(), AlignmentPI::topolInfo::fillGeometryInfo(), SiPixelPI::topolInfo::fillGeometryInfo(), TrackerGeometryCompare::fillIdentifiers(), ClusterShapeHitFilter::fillPixelData(), QcdLowPtDQM::fillPixels(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), Phase1PixelROCMaps::findDetCoordinates(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), HitInfo::getInfo(), PixelInactiveAreaFinder::getPhiSpanBarrel(), GlobalMuonRefitter::getRidOfSelectStationHits(), PixelInactiveAreaFinder::getSpan(), align::TrackerNameSpace::TPB::halfBarrelNumber(), GeometricSearchTracker::idToLayer(), Phase1PixelROCMaps::isBPixOuterLadder(), AlignmentPI::isBPixOuterLadder(), SiPixelPI::isBPixOuterLadder(), TrackCleaner::isCompatible(), align::TrackerNameSpace::TPB::ladderNumber(), SiPixelCoordinates::layer(), SeedFinderSelector::Layer_tuple(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), align::TrackerNameSpace::TPB::layerNumber(), SeedingLayerSetsBuilder::makeSeedingLayerSetsHitsforFastSim(), TrajectoryManager::makeSinglePSimHit(), SiPixelDigitizerAlgorithm::missCalibrate(), SiPixelCoordinates::outer(), AlignmentParameterSelector::outsideDetIdRanges(), Phase2TrackerDigitizerAlgorithm::pixel_inefficiency(), PixelBarrelName::PixelBarrelName(), PixelClusterShapeExtractor::processPixelRecHits(), PixelFitterByHelixProjections::run(), SiPixelPhase1Analyzer::SaveDetectorVertices(), NearbyPixelClustersAnalyzer::setTopoInfo(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), trackerHierarchy(), and TrackerAlignableId::typeAndLayerFromDetId().

144  {
145  return int((id.rawId() >> pbVals_.layerStartBit_) & pbVals_.layerMask_);
146  }
const PixelBarrelValues pbVals_
unsigned int TrackerTopology::pxbModule ( const DetId id) const
inline

Definition at line 160 of file TrackerTopology.h.

References TrackerTopology::PixelBarrelValues::moduleMask_, TrackerTopology::PixelBarrelValues::moduleStartBit_, and pbVals_.

Referenced by FWTGeoRecoGeometryESProducer::addPixelBarrelGeometry(), SiPixelDigiValid::analyze(), SiPixelLorentzAngleDB::analyze(), SiPixelDynamicInefficiencyReader::analyze(), SiPixelGenErrorDBObjectUploader::analyze(), SiPixelTemplateDBObjectUploader::analyze(), SiPixel2DTemplateDBObjectUploader::analyze(), SiPixelErrorEstimation::analyze(), TrackerTreeGenerator::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiPixelLorentzAnglePCLWorker::analyze(), SiPixelLorentzAnglePCLHarvester::beginRun(), SiPixelPhase1Analyzer::BookBarrelBins(), PixelTopologyMap::buildTopologyMaps(), PixelInactiveAreaFinder::detInfo(), SiPixelRecHitsValid::fillBarrel(), SiPixelPhase1Analyzer::FillBarrelBinsRemap(), TrackerRemapper::fillBarrelRemap(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), HitInfo::getInfo(), TrackCleaner::isCompatible(), SiPixelCoordinates::module(), align::TrackerNameSpace::TPB::moduleNumber(), AlignmentParameterSelector::outsideDetIdRanges(), SiPixelDigitizerAlgorithm::pixel_aging(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), PixelBarrelName::PixelBarrelName(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), and trackerHierarchy().

160  {
161  return ((id.rawId() >> pbVals_.moduleStartBit_) & pbVals_.moduleMask_);
162  }
const PixelBarrelValues pbVals_
unsigned int TrackerTopology::pxfBlade ( const DetId id) const
inline

Definition at line 447 of file TrackerTopology.h.

References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, and pfVals_.

Referenced by FWTGeoRecoGeometryESProducer::addPixelForwardGeometry(), TrackerAlignmentLevelBuilder::addPXEDetUnitInfo(), SiPixelDigiValid::analyze(), SiPixelLorentzAngleDB::analyze(), SiPixelGenErrorDBObjectUploader::analyze(), SiPixelTemplateDBObjectUploader::analyze(), SiPixel2DTemplateDBObjectUploader::analyze(), SiPixelErrorEstimation::analyze(), TrackerTreeGenerator::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiPixelLorentzAnglePCLWorker::analyze(), SiPixelCoordinates::blade(), align::TrackerNameSpace::TPE::bladeNumber(), SiPixelPhase1Analyzer::BookForwardBins(), PixelTopologyMap::buildTopologyMaps(), PixelRegions::detIdToPixelId(), PixelInactiveAreaFinder::detInfo(), SiPixelPhase1Analyzer::FillForwardBinsRemap(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), SiPixelTrackResidualSource::getepixrococcupancyontrk(), HitInfo::getInfo(), phase2tkutil::getITHistoId(), align::TrackerNameSpace::TPE::halfCylinderNumber(), TrackCleaner::isCompatible(), AlignmentParameterSelector::outsideDetIdRanges(), PixelEndcapName::PixelEndcapName(), TrackingNtuple::DetIdPixelOnly::push_back(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), and trackerHierarchy().

447  {
448  return int((id.rawId() >> pfVals_.bladeStartBit_) & pfVals_.bladeMask_);
449  }
const PixelEndcapValues pfVals_
DetId TrackerTopology::pxfDetId ( uint32_t  side,
uint32_t  disk,
uint32_t  blade,
uint32_t  panel,
uint32_t  module 
) const
inline

Definition at line 465 of file TrackerTopology.h.

References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, TrackerTopology::PixelEndcapValues::diskMask_, TrackerTopology::PixelEndcapValues::diskStartBit_, gpuClustering::id, TrackerTopology::PixelEndcapValues::moduleMask_, TrackerTopology::PixelEndcapValues::moduleStartBit_, TrackerTopology::PixelEndcapValues::panelMask_, TrackerTopology::PixelEndcapValues::panelStartBit_, pfVals_, PixelSubdetector::PixelEndcap, TrackerTopology::PixelEndcapValues::sideMask_, TrackerTopology::PixelEndcapValues::sideStartBit_, and DetId::Tracker.

Referenced by SiPixelDynamicInefficiencyDB::analyze(), PixelEndcapName::getDetId(), and pxfDetIdDiskComparator().

465  {
467  uint32_t rawid = id.rawId();
472  return DetId(rawid);
473  }
uint16_t *__restrict__ id
const PixelEndcapValues pfVals_
unsigned int side(const DetId &id) const
unsigned int module(const DetId &id) const
Definition: DetId.h:17
std::pair<DetId, SameLayerComparator> TrackerTopology::pxfDetIdDiskComparator ( uint32_t  side,
uint32_t  disk 
) const
inline

Definition at line 536 of file TrackerTopology.h.

References pxfDetId().

Referenced by ctfseeding::HitExtractorPIX::hits().

536  {
537  return std::make_pair(pxfDetId(side, disk, 1, 1, 1), SameLayerComparator(this));
538  }
unsigned int side(const DetId &id) const
DetId pxfDetId(uint32_t side, uint32_t disk, uint32_t blade, uint32_t panel, uint32_t module) const
unsigned int TrackerTopology::pxfDisk ( const DetId id) const
inline

Definition at line 446 of file TrackerTopology.h.

References TrackerTopology::PixelEndcapValues::diskMask_, TrackerTopology::PixelEndcapValues::diskStartBit_, and pfVals_.

Referenced by FWTGeoRecoGeometryESProducer::addPixelForwardGeometry(), TrackerAlignmentLevelBuilder::addPXEDetUnitInfo(), SiPixelDigiValid::analyze(), SiPixelLorentzAngleDB::analyze(), SiPixelVCalDB::analyze(), SiPixelRecHitsValid::analyze(), SiPixelVCalReader::analyze(), SiPixelGenErrorDBObjectUploader::analyze(), SiPixel2DTemplateDBObjectUploader::analyze(), SiPixelTemplateDBObjectUploader::analyze(), SiPixelErrorEstimation::analyze(), PixelBaryCentreAnalyzer::analyze(), TrackerTreeGenerator::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiPixelLorentzAnglePCLWorker::analyze(), DMRChecker::analyze(), PixelInactiveAreaFinder::badAdjecentDetsEndcap(), PixelTopologyMap::buildTopologyMaps(), TrackingLayer::createFromDetId(), PixelRegions::detIdToPixelId(), PixelInactiveAreaFinder::detInfo(), SiPixelCoordinates::disk(), SiPixelRecHitsValid::fillForward(), AlignmentPI::topolInfo::fillGeometryInfo(), SiPixelPI::topolInfo::fillGeometryInfo(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiPixelTrackResidualSource::getepixrococcupancyontrk(), HitInfo::getInfo(), phase2tkutil::getITHistoId(), GlobalMuonRefitter::getRidOfSelectStationHits(), PixelInactiveAreaFinder::getSpan(), align::TrackerNameSpace::TPE::halfDiskNumber(), GeometricSearchTracker::idToLayer(), TrackCleaner::isCompatible(), SeedFinderSelector::Layer_tuple(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), SeedingLayerSetsBuilder::makeSeedingLayerSetsHitsforFastSim(), TrajectoryManager::makeSinglePSimHit(), AlignmentParameterSelector::outsideDetIdRanges(), Phase2TrackerDigitizerAlgorithm::pixel_inefficiency(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), PixelEndcapName::PixelEndcapName(), SiPixelPhase1Analyzer::SaveDetectorVertices(), NearbyPixelClustersAnalyzer::setTopoInfo(), TrackerOfflineValidation::setUpTreeMembers(), SiPixelPI::signed_disk(), Phase1PixelROCMaps::signed_disk(), ResidualRefitting::StoreTrackerRecHits(), trackerHierarchy(), and TrackerAlignableId::typeAndLayerFromDetId().

446 { return int((id.rawId() >> pfVals_.diskStartBit_) & pfVals_.diskMask_); }
const PixelEndcapValues pfVals_
unsigned int TrackerTopology::pxfModule ( const DetId id) const
inline

Definition at line 163 of file TrackerTopology.h.

References TrackerTopology::PixelEndcapValues::moduleMask_, TrackerTopology::PixelEndcapValues::moduleStartBit_, and pfVals_.

Referenced by SiPixelDigiValid::analyze(), SiPixelLorentzAngleDB::analyze(), SiPixelDynamicInefficiencyReader::analyze(), SiPixelErrorEstimation::analyze(), PixelBaryCentreAnalyzer::analyze(), TrackerTreeGenerator::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiPixelLorentzAnglePCLWorker::analyze(), PixelTopologyMap::buildTopologyMaps(), SiPixelRecHitsValid::fillForward(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), SiPixelTrackResidualSource::getepixrococcupancyontrk(), HitInfo::getInfo(), TrackCleaner::isCompatible(), SiPixelCoordinates::module(), align::TrackerNameSpace::TPE::moduleNumber(), AlignmentParameterSelector::outsideDetIdRanges(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), PixelEndcapName::PixelEndcapName(), SiPixelPI::ring(), Phase1PixelROCMaps::ring(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), and trackerHierarchy().

163  {
164  return int((id.rawId() >> pfVals_.moduleStartBit_) & pfVals_.moduleMask_);
165  }
const PixelEndcapValues pfVals_
unsigned int TrackerTopology::pxfPanel ( const DetId id) const
inline

Definition at line 450 of file TrackerTopology.h.

References TrackerTopology::PixelEndcapValues::panelMask_, TrackerTopology::PixelEndcapValues::panelStartBit_, and pfVals_.

Referenced by FWTGeoRecoGeometryESProducer::addPixelForwardGeometry(), TrackerAlignmentLevelBuilder::addPXEDetUnitInfo(), SiPixelDigiValid::analyze(), SiPixelLorentzAngleDB::analyze(), SiPixelDynamicInefficiencyReader::analyze(), SiPixelGenErrorDBObjectUploader::analyze(), SiPixelTemplateDBObjectUploader::analyze(), SiPixel2DTemplateDBObjectUploader::analyze(), SiPixelErrorEstimation::analyze(), PixelBaryCentreAnalyzer::analyze(), TrackerTreeGenerator::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiPixelLorentzAnglePCLWorker::analyze(), SiPixelPhase1Analyzer::BookForwardBins(), PixelInactiveAreaFinder::detInfo(), SiPixelRecHitsValid::fillForward(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), Phase1PixelROCMaps::findDetCoordinates(), SiPixelTrackResidualSource::getepixrococcupancyontrk(), HitInfo::getInfo(), TrackCleaner::isCompatible(), AlignmentParameterSelector::outsideDetIdRanges(), SiPixelCoordinates::panel(), align::TrackerNameSpace::TPE::panelNumber(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), PixelEndcapName::PixelEndcapName(), TrackingNtuple::DetIdPixelOnly::push_back(), SiPixelPI::ring(), Phase1PixelROCMaps::ring(), TrackerOfflineValidation::setUpTreeMembers(), SiPixelPI::signed_blade_panel(), Phase1PixelROCMaps::signed_blade_panel(), ResidualRefitting::StoreTrackerRecHits(), and trackerHierarchy().

450  {
451  return int((id.rawId() >> pfVals_.panelStartBit_) & pfVals_.panelMask_);
452  }
const PixelEndcapValues pfVals_
unsigned int TrackerTopology::pxfSide ( const DetId id) const
inline

Definition at line 192 of file TrackerTopology.h.

References pfVals_, TrackerTopology::PixelEndcapValues::sideMask_, and TrackerTopology::PixelEndcapValues::sideStartBit_.

Referenced by TrackerAlignmentLevelBuilder::addPXEDetUnitInfo(), SiPixelDigiValid::analyze(), SiPixelLorentzAngleDB::analyze(), SiPixelVCalDB::analyze(), SiPixelVCalReader::analyze(), SiPixelGenErrorDBObjectUploader::analyze(), SiPixel2DTemplateDBObjectUploader::analyze(), SiPixelTemplateDBObjectUploader::analyze(), SiPixelErrorEstimation::analyze(), TrackerTreeGenerator::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiPixelLorentzAnglePCLWorker::analyze(), DMRChecker::analyze(), AlignmentPI::TkAlBarycenters::computeBarycenters(), TrackingLayer::createFromDetId(), AlignmentTrackSelector::detailedHitsCheck(), PixelRegions::detIdToPixelId(), align::TrackerNameSpace::TPE::endcapNumber(), AlignmentPI::topolInfo::fillGeometryInfo(), SiPixelPI::topolInfo::fillGeometryInfo(), TrackerGeometryCompare::fillIdentifiers(), MillePedeMonitor::fillTrack(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), HitInfo::getInfo(), phase2tkutil::getITHistoId(), GeometricSearchTracker::idToLayer(), TrackCleaner::isCompatible(), SeedFinderSelector::Layer_tuple(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), SeedingLayerSetsBuilder::makeSeedingLayerSetsHitsforFastSim(), AlignmentParameterSelector::outsideDetIdRanges(), Phase2TrackerDigitizerAlgorithm::pixel_inefficiency(), PixelEndcapName::PixelEndcapName(), SiPixelPhase1Analyzer::SaveDetectorVertices(), NearbyPixelClustersAnalyzer::setTopoInfo(), TrackerOfflineValidation::setUpTreeMembers(), SiPixelCoordinates::side(), SiPixelTopoFinder::side(), ResidualRefitting::StoreTrackerRecHits(), and trackerHierarchy().

192 { return ((id.rawId() >> pfVals_.sideStartBit_) & pfVals_.sideMask_); }
const PixelEndcapValues pfVals_
unsigned int TrackerTopology::side ( const DetId id) const
uint32_t TrackerTopology::stack ( const DetId id) const
DetId TrackerTopology::tecDetId ( uint32_t  side,
uint32_t  wheel,
uint32_t  petal_fw_bw,
uint32_t  petal,
uint32_t  ring,
uint32_t  module,
uint32_t  ster 
) const
inline

Definition at line 475 of file TrackerTopology.h.

References TrackerTopology::TECValues::moduleMask_, TrackerTopology::TECValues::moduleStartBit_, TrackerTopology::TECValues::petal_fw_bwMask_, TrackerTopology::TECValues::petal_fw_bwStartBit_, TrackerTopology::TECValues::petalMask_, TrackerTopology::TECValues::petalStartBit_, TrackerTopology::TECValues::ringMask_, TrackerTopology::TECValues::ringStartBit_, TrackerTopology::TECValues::sideMask_, TrackerTopology::TECValues::sideStartBit_, TrackerTopology::TECValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, SiStripSubdetector::TEC, tecVals_, DetId::Tracker, TrackerTopology::TECValues::wheelMask_, and TrackerTopology::TECValues::wheelStartBit_.

Referenced by SiStripFineDelayHit::detId(), SiStripFineDelayHit::deviceMask(), and tecDetIdWheelComparator().

481  {
483  uint32_t rawid = id.rawId();
484 
485  rawid |= (side & tecVals_.sideMask_) << tecVals_.sideStartBit_ |
492  return DetId(rawid);
493  }
const TECValues tecVals_
unsigned int side(const DetId &id) const
unsigned int module(const DetId &id) const
Definition: DetId.h:17
std::pair<DetId, SameLayerComparator> TrackerTopology::tecDetIdWheelComparator ( uint32_t  side,
uint32_t  wheel 
) const
inline

Definition at line 540 of file TrackerTopology.h.

References tecDetId().

Referenced by ctfseeding::HitExtractorSTRP::hits(), and CosmicLayerPairs::selectTECHit().

540  {
541  return std::make_pair(tecDetId(side, wheel, 1, 1, 1, 1, 1), SameLayerComparator(this));
542  }
unsigned int side(const DetId &id) const
DetId tecDetId(uint32_t side, uint32_t wheel, uint32_t petal_fw_bw, uint32_t petal, uint32_t ring, uint32_t module, uint32_t ster) const
uint32_t TrackerTopology::tecGlued ( const DetId id) const
inline

Definition at line 342 of file TrackerTopology.h.

References gpuVertexFinder::return, TrackerTopology::TECValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, and tecVals_.

Referenced by tecIsDoubleSide(), tecStack(), and trackerHierarchy().

342  {
343  uint32_t testId = (id.rawId() >> tecVals_.sterStartBit_) & tecVals_.sterMask_;
344  return (testId == 0) ? 0 : (id.rawId() - testId);
345  }
const TECValues tecVals_
bool TrackerTopology::tecIsBackPetal ( const DetId id) const
inline
bool TrackerTopology::tecIsDoubleSide ( const DetId id) const
inline

Definition at line 246 of file TrackerTopology.h.

References tecGlued(), and tecRing().

Referenced by TrackerTreeGenerator::analyze(), AlignmentPI::topolInfo::fillGeometryInfo(), TrackerOfflineValidationSummary::fillTree(), TrackingNtuple::DetIdStripOnly::parse(), TrackerOfflineValidation::setUpTreeMembers(), tecIsRPhi(), tecIsStereo(), and TrackerDpgAnalysis::toStringName().

246  {
247  return tecGlued(id) == 0 && (tecRing(id) == 1 || tecRing(id) == 2 || tecRing(id) == 5);
248  }
unsigned int tecRing(const DetId &id) const
ring id
uint32_t tecGlued(const DetId &id) const
bool TrackerTopology::tecIsFrontPetal ( const DetId id) const
inline

Definition at line 416 of file TrackerTopology.h.

References tecIsBackPetal().

Referenced by SiStripBadModuleConfigurableFakeESSource::selectDetectors(), and TrackerDpgAnalysis::toStringName().

416 { return !tecIsBackPetal(id); }
bool tecIsBackPetal(const DetId &id) const
bool TrackerTopology::tecIsRPhi ( const DetId id) const
inline

Definition at line 270 of file TrackerTopology.h.

References tecIsDoubleSide(), and tecRPhi().

Referenced by TrackerTreeGenerator::analyze(), TrackingParticleNumberOfLayers::calculate(), and TrackerDpgAnalysis::toStringName().

270 { return tecRPhi(id) != 0 && !tecIsDoubleSide(id); }
bool tecIsDoubleSide(const DetId &id) const
uint32_t tecRPhi(const DetId &id) const
bool TrackerTopology::tecIsStereo ( const DetId id) const
inline
bool TrackerTopology::tecIsZMinusSide ( const DetId id) const
inline
bool TrackerTopology::tecIsZPlusSide ( const DetId id) const
inline
uint32_t TrackerTopology::tecLower ( const DetId id) const
inline

Definition at line 295 of file TrackerTopology.h.

References tecStereo().

295 { return tecStereo(id); }
uint32_t tecStereo(const DetId &id) const
unsigned int TrackerTopology::tecModule ( const DetId id) const
inline
unsigned int TrackerTopology::tecOrder ( const DetId id) const
inline
uint32_t TrackerTopology::tecPartnerDetId ( const DetId id) const
inline

Definition at line 396 of file TrackerTopology.h.

References TrackerTopology::TECValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, and tecVals_.

396  {
397  if (((id.rawId() >> tecVals_.sterStartBit_) & tecVals_.sterMask_) == 1) {
398  return DetId(id.rawId() + 1);
399  } else if (((id.rawId() >> tecVals_.sterStartBit_) & tecVals_.sterMask_) == 2) {
400  return DetId(id.rawId() - 1);
401  } else {
402  return DetId();
403  }
404  }
const TECValues tecVals_
Definition: DetId.h:17
std::vector<unsigned int> TrackerTopology::tecPetalInfo ( const DetId id) const
inline
unsigned int TrackerTopology::tecPetalNumber ( const DetId id) const
inline
unsigned int TrackerTopology::tecRing ( const DetId id) const
inline

ring id

Definition at line 217 of file TrackerTopology.h.

References TrackerTopology::TECValues::ringMask_, TrackerTopology::TECValues::ringStartBit_, and tecVals_.

Referenced by TrackerAlignmentLevelBuilder::addTECDetUnitInfo(), FWTGeoRecoGeometryESProducer::addTECGeometry(), SiStripDigiValid::analyze(), TrackerTreeGenerator::analyze(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), AlignmentPI::topolInfo::fillGeometryInfo(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), SiStripFolderOrganizer::getFolderName(), SiStripFakeAPVParameters::getIndex(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripCalibLorentzAngle::getNewObject(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripFolderOrganizer::GetSubDetAndRing(), SiStripHistoId::getSubdetid(), TkLayerMap::getXY_TEC(), ctfseeding::HitExtractorSTRP::hits(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), TrackingNtuple::DetIdOTCommon::parse(), align::TrackerNameSpace::TEC::ringNumber(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), tecIsDoubleSide(), TrackerDpgAnalysis::toStringName(), and trackerHierarchy().

217 { return ((id.rawId() >> tecVals_.ringStartBit_) & tecVals_.ringMask_); }
const TECValues tecVals_
uint32_t TrackerTopology::tecRPhi ( const DetId id) const
inline

Definition at line 322 of file TrackerTopology.h.

References TrackerTopology::TECValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, and tecVals_.

Referenced by tecIsRPhi(), and tecUpper().

322  {
323  if (((id.rawId() >> tecVals_.sterStartBit_) & tecVals_.sterMask_) == 2) {
324  return ((id.rawId() >> tecVals_.sterStartBit_) & tecVals_.sterMask_);
325  } else {
326  return 0;
327  }
328  }
const TECValues tecVals_
unsigned int TrackerTopology::tecSide ( const DetId id) const
inline

Definition at line 184 of file TrackerTopology.h.

References TrackerTopology::TECValues::sideMask_, TrackerTopology::TECValues::sideStartBit_, and tecVals_.

Referenced by TrackerAlignmentLevelBuilder::addTECDetUnitInfo(), SiStripGainFromData::algoBeginJob(), SiStripDigiValid::analyze(), HitEff::analyze(), TrackerTreeGenerator::analyze(), AlignmentPI::TkAlBarycenters::computeBarycenters(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::TrackerNameSpace::TEC::endcapNumber(), SiStripPI::fillBCArrays(), SiStripMonitorTrack::fillControlViewHistos(), AlignmentPI::topolInfo::fillGeometryInfo(), TrackerGeometryCompare::fillIdentifiers(), SiStripPI::fillTotalComponents(), TrackerOfflineValidationSummary::fillTree(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripMiscalibrate::getRegionsFromDetId(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripFolderOrganizer::GetSubDetAndRing(), SiStripUtility::getSubDetectorTag(), SiStripFolderOrganizer::getSubDetFolderAndTag(), SiStripHistoId::getSubdetid(), GeometricSearchTracker::idToLayer(), TkAlCaOverlapTagger::layerFromId(), TkLayerMap::layerSearch(), AlignmentParameterSelector::outsideDetIdRanges(), SiStripTrackerMapCreator::printBadModuleList(), SiStripTrackerMapCreator::printTopModules(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), APVGain::subdetectorPlane(), tecIsZMinusSide(), trackerHierarchy(), and LaserDQM::trackerStatistics().

184 { return ((id.rawId() >> tecVals_.sideStartBit_) & tecVals_.sideMask_); }
const TECValues tecVals_
uint32_t TrackerTopology::tecStack ( const DetId id) const
inline

Definition at line 361 of file TrackerTopology.h.

References tecGlued().

361 { return tecGlued(id); }
uint32_t tecGlued(const DetId &id) const
uint32_t TrackerTopology::tecStereo ( const DetId id) const
inline
uint32_t TrackerTopology::tecUpper ( const DetId id) const
inline

Definition at line 334 of file TrackerTopology.h.

References tecRPhi().

334 { return tecRPhi(id); }
uint32_t tecRPhi(const DetId &id) const
unsigned int TrackerTopology::tecWheel ( const DetId id) const
inline

Definition at line 198 of file TrackerTopology.h.

References tecVals_, TrackerTopology::TECValues::wheelMask_, and TrackerTopology::TECValues::wheelStartBit_.

Referenced by SiStripDetSummary::add(), TrackerAlignmentLevelBuilder::addTECDetUnitInfo(), SiStripDigiValid::analyze(), SiStripLAProfileBooker::analyze(), TrackerTreeGenerator::analyze(), HitEff::checkLayer(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), SiStripDigitizerAlgorithm::digitize(), align::TrackerNameSpace::TEC::diskNumber(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripPI::fillBCArrays(), AlignmentPI::topolInfo::fillGeometryInfo(), TrackerGeometryCompare::fillIdentifiers(), SiStripPI::fillTotalComponents(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripMiscalibrate::getRegionsFromDetId(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripHistoId::getSubdetid(), GeometricSearchTracker::idToLayer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), TkLayerMap::layerSearch(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), PreMixingSiStripWorker::put(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), APVGain::subdetectorPlane(), TrackerDpgAnalysis::toStringName(), trackerHierarchy(), LaserDQM::trackerStatistics(), and TrackerAlignableId::typeAndLayerFromDetId().

198  {
199  return ((id.rawId() >> tecVals_.wheelStartBit_) & tecVals_.wheelMask_);
200  }
const TECValues tecVals_
DetId TrackerTopology::tibDetId ( uint32_t  layer,
uint32_t  str_fw_bw,
uint32_t  str_int_ext,
uint32_t  str,
uint32_t  module,
uint32_t  ster 
) const
inline

Definition at line 495 of file TrackerTopology.h.

References TrackerTopology::TIBValues::layerMask_, TrackerTopology::TIBValues::layerStartBit_, TrackerTopology::TIBValues::moduleMask_, TrackerTopology::TIBValues::moduleStartBit_, TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIBValues::sterStartBit_, TrackerTopology::TIBValues::str_fw_bwMask_, TrackerTopology::TIBValues::str_fw_bwStartBit_, TrackerTopology::TIBValues::str_int_extMask_, TrackerTopology::TIBValues::str_int_extStartBit_, TrackerTopology::TIBValues::strMask_, TrackerTopology::TIBValues::strStartBit_, SiStripSubdetector::TIB, tibVals_, and DetId::Tracker.

Referenced by SiStripFineDelayHit::deviceMask(), SurveyDataReader::readFile(), and tibDetIdLayerComparator().

496  {
498  uint32_t rawid = id.rawId();
505  return DetId(rawid);
506  }
unsigned int module(const DetId &id) const
const TIBValues tibVals_
Definition: DetId.h:17
unsigned int layer(const DetId &id) const
#define str(s)
std::pair<DetId, SameLayerComparator> TrackerTopology::tibDetIdLayerComparator ( uint32_t  layer) const
inline

Definition at line 544 of file TrackerTopology.h.

References tibDetId().

Referenced by ctfseeding::HitExtractorSTRP::hits(), CosmicLayerTriplets::init(), and CosmicLayerPairs::selectTIBHit().

544  {
545  return std::make_pair(tibDetId(layer, 1, 1, 1, 1, 1), SameLayerComparator(this));
546  }
DetId tibDetId(uint32_t layer, uint32_t str_fw_bw, uint32_t str_int_ext, uint32_t str, uint32_t module, uint32_t ster) const
unsigned int layer(const DetId &id) const
uint32_t TrackerTopology::tibGlued ( const DetId id) const
inline

Definition at line 337 of file TrackerTopology.h.

References gpuVertexFinder::return, TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIBValues::sterStartBit_, and tibVals_.

Referenced by SiStripGainCosmicCalculator::getNewObject(), tibIsDoubleSide(), tibStack(), and trackerHierarchy().

337  {
338  uint32_t testId = (id.rawId() >> tibVals_.sterStartBit_) & tibVals_.sterMask_;
339  return (testId == 0) ? 0 : (id.rawId() - testId);
340  }
const TIBValues tibVals_
bool TrackerTopology::tibIsDoubleSide ( const DetId id) const
inline
bool TrackerTopology::tibIsExternalString ( const DetId id) const
inline
bool TrackerTopology::tibIsInternalString ( const DetId id) const
inline
bool TrackerTopology::tibIsRPhi ( const DetId id) const
inline
bool TrackerTopology::tibIsStereo ( const DetId id) const
inline
bool TrackerTopology::tibIsZMinusSide ( const DetId id) const
inline
bool TrackerTopology::tibIsZPlusSide ( const DetId id) const
inline
unsigned int TrackerTopology::tibLayer ( const DetId id) const
inline

Definition at line 150 of file TrackerTopology.h.

References TrackerTopology::TIBValues::layerMask_, TrackerTopology::TIBValues::layerStartBit_, and tibVals_.

Referenced by SiStripDetSummary::add(), TrackerAlignmentLevelBuilder::addTIBDetUnitInfo(), SiStripCalibLorentzAngle::algoBeginJob(), SiStripDigiValid::analyze(), SiStripLAProfileBooker::analyze(), SiPixelErrorEstimation::analyze(), TrackerTreeGenerator::analyze(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), sistrip::MeasureLA::calibration_key(), HitEff::checkLayer(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), SiStripDigitizerAlgorithm::digitize(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripPI::fillBCArrays(), AlignmentPI::topolInfo::fillGeometryInfo(), TrackerGeometryCompare::fillIdentifiers(), SiStripPI::fillTotalComponents(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripFakeAPVParameters::getIndex(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripGainCosmicCalculator::getNewObject(), SiStripCalibLorentzAngle::getNewObject(), SiStripMiscalibrate::getRegionsFromDetId(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripBaseCondObjDQM::getStringNameAndId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripHistoId::getSubdetid(), TkLayerMap::getXY_TIB(), align::TrackerNameSpace::TIB::halfShellNumber(), GeometricSearchTracker::idToLayer(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), LA_Filler_Fitter::layerLabel(), align::TrackerNameSpace::TIB::layerNumber(), TkLayerMap::layerSearch(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), PreMixingSiStripWorker::put(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), align::TrackerNameSpace::TIB::stringNumber(), APVGain::subdetectorPlane(), tibIsDoubleSide(), MatchedHitRZCorrectionFromBending::tibMatchedHitZFixup(), TrackerDpgAnalysis::toStringName(), trackerHierarchy(), LaserDQM::trackerStatistics(), and TrackerAlignableId::typeAndLayerFromDetId().

150  {
151  return int((id.rawId() >> tibVals_.layerStartBit_) & tibVals_.layerMask_);
152  }
const TIBValues tibVals_
uint32_t TrackerTopology::tibLower ( const DetId id) const
inline

Definition at line 292 of file TrackerTopology.h.

References tibStereo().

292 { return tibStereo(id); }
uint32_t tibStereo(const DetId &id) const
unsigned int TrackerTopology::tibModule ( const DetId id) const
inline
unsigned int TrackerTopology::tibOrder ( const DetId id) const
inline
DetId TrackerTopology::tibPartnerDetId ( const DetId id) const
inline

Definition at line 366 of file TrackerTopology.h.

References TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIBValues::sterStartBit_, and tibVals_.

366  {
367  if (((id.rawId() >> tibVals_.sterStartBit_) & tibVals_.sterMask_) == 1) {
368  return DetId(id.rawId() + 1);
369  } else if (((id.rawId() >> tibVals_.sterStartBit_) & tibVals_.sterMask_) == 2) {
370  return DetId(id.rawId() - 1);
371  } else {
372  return DetId();
373  }
374  }
const TIBValues tibVals_
Definition: DetId.h:17
uint32_t TrackerTopology::tibRPhi ( const DetId id) const
inline

Definition at line 306 of file TrackerTopology.h.

References TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIBValues::sterStartBit_, and tibVals_.

Referenced by tibIsRPhi(), and tibUpper().

306  {
307  if (((id.rawId() >> tibVals_.sterStartBit_) & tibVals_.sterMask_) == 2) {
308  return ((id.rawId() >> tibVals_.sterStartBit_) & tibVals_.sterMask_);
309  } else {
310  return 0;
311  }
312  }
const TIBValues tibVals_
unsigned int TrackerTopology::tibSide ( const DetId id) const
inline
uint32_t TrackerTopology::tibStack ( const DetId id) const
inline

Definition at line 358 of file TrackerTopology.h.

References tibGlued().

358 { return tibGlued(id); }
uint32_t tibGlued(const DetId &id) const
uint32_t TrackerTopology::tibStereo ( const DetId id) const
inline
unsigned int TrackerTopology::tibString ( const DetId id) const
inline
std::vector<unsigned int> TrackerTopology::tibStringInfo ( const DetId id) const
inline
uint32_t TrackerTopology::tibUpper ( const DetId id) const
inline

Definition at line 331 of file TrackerTopology.h.

References tibRPhi().

331 { return tibRPhi(id); }
uint32_t tibRPhi(const DetId &id) const
DetId TrackerTopology::tidDetId ( uint32_t  side,
uint32_t  wheel,
uint32_t  ring,
uint32_t  module_fw_bw,
uint32_t  module,
uint32_t  ster 
) const
inline

Definition at line 508 of file TrackerTopology.h.

References TrackerTopology::TIDValues::module_fw_bwMask_, TrackerTopology::TIDValues::module_fw_bwStartBit_, TrackerTopology::TIDValues::moduleMask_, TrackerTopology::TIDValues::moduleStartBit_, TrackerTopology::TIDValues::ringMask_, TrackerTopology::TIDValues::ringStartBit_, TrackerTopology::TIDValues::sideMask_, TrackerTopology::TIDValues::sideStartBit_, TrackerTopology::TIDValues::sterMask_, TrackerTopology::TIDValues::sterStartBit_, SiStripSubdetector::TID, tidVals_, DetId::Tracker, TrackerTopology::TIDValues::wheelMask_, and TrackerTopology::TIDValues::wheelStartBit_.

Referenced by SiStripFineDelayHit::detId(), SiStripFineDelayHit::deviceMask(), SurveyDataReader::readFile(), and tidDetIdWheelComparator().

509  {
511  uint32_t rawid = id.rawId();
512  rawid |= (side & tidVals_.sideMask_) << tidVals_.sideStartBit_ |
518  return DetId(rawid);
519  }
unsigned int side(const DetId &id) const
unsigned int module(const DetId &id) const
Definition: DetId.h:17
unsigned int module_fw_bwStartBit_
const TIDValues tidVals_
std::pair<DetId, SameLayerComparator> TrackerTopology::tidDetIdWheelComparator ( uint32_t  side,
uint32_t  wheel 
) const
inline

Definition at line 548 of file TrackerTopology.h.

References tidDetId().

Referenced by ctfseeding::HitExtractorSTRP::hits().

548  {
549  return std::make_pair(tidDetId(side, wheel, 1, 1, 1, 1), SameLayerComparator(this));
550  }
unsigned int side(const DetId &id) const
DetId tidDetId(uint32_t side, uint32_t wheel, uint32_t ring, uint32_t module_fw_bw, uint32_t module, uint32_t ster) const
uint32_t TrackerTopology::tidGlued ( const DetId id) const
inline

Definition at line 352 of file TrackerTopology.h.

References gpuVertexFinder::return, TrackerTopology::TIDValues::sterMask_, TrackerTopology::TIDValues::sterStartBit_, and tidVals_.

Referenced by tidIsDoubleSide(), tidStack(), and trackerHierarchy().

352  {
353  uint32_t testId = (id.rawId() >> tidVals_.sterStartBit_) & tidVals_.sterMask_;
354  return (testId == 0) ? 0 : (id.rawId() - testId);
355  }
const TIDValues tidVals_
bool TrackerTopology::tidIsBackRing ( const DetId id) const
inline
bool TrackerTopology::tidIsDoubleSide ( const DetId id) const
inline
bool TrackerTopology::tidIsFrontRing ( const DetId id) const
inline

Definition at line 443 of file TrackerTopology.h.

References tidIsBackRing().

Referenced by TrackerDpgAnalysis::toStringName().

443 { return !tidIsBackRing(id); }
bool tidIsBackRing(const DetId &id) const
bool TrackerTopology::tidIsRPhi ( const DetId id) const
inline

Definition at line 272 of file TrackerTopology.h.

References tidIsDoubleSide(), and tidRPhi().

Referenced by TrackerTreeGenerator::analyze(), TrackingParticleNumberOfLayers::calculate(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), and TrackerDpgAnalysis::toStringName().

272 { return tidRPhi(id) != 0 && !tidIsDoubleSide(id); }
uint32_t tidRPhi(const DetId &id) const
bool tidIsDoubleSide(const DetId &id) const
bool TrackerTopology::tidIsStereo ( const DetId id) const
inline
bool TrackerTopology::tidIsZMinusSide ( const DetId id) const
inline
bool TrackerTopology::tidIsZPlusSide ( const DetId id) const
inline
uint32_t TrackerTopology::tidLower ( const DetId id) const
inline

Definition at line 293 of file TrackerTopology.h.

References tidStereo().

293 { return tidStereo(id); }
uint32_t tidStereo(const DetId &id) const
unsigned int TrackerTopology::tidModule ( const DetId id) const
inline
std::vector<unsigned int> TrackerTopology::tidModuleInfo ( const DetId id) const
inline
unsigned int TrackerTopology::tidOrder ( const DetId id) const
inline
DetId TrackerTopology::tidPartnerDetId ( const DetId id) const
inline

Definition at line 386 of file TrackerTopology.h.

References TrackerTopology::TIDValues::sterMask_, TrackerTopology::TIDValues::sterStartBit_, and tidVals_.

386  {
387  if (((id.rawId() >> tidVals_.sterStartBit_) & tidVals_.sterMask_) == 1) {
388  return DetId(id.rawId() + 1);
389  } else if (((id.rawId() >> tidVals_.sterStartBit_) & tidVals_.sterMask_) == 2) {
390  return DetId(id.rawId() - 1);
391  } else {
392  return DetId();
393  }
394  }
Definition: DetId.h:17
const TIDValues tidVals_
unsigned int TrackerTopology::tidRing ( const DetId id) const
inline

Definition at line 218 of file TrackerTopology.h.

References TrackerTopology::TIDValues::ringMask_, TrackerTopology::TIDValues::ringStartBit_, and tidVals_.

Referenced by TrackerAlignmentLevelBuilder::addTIDDetUnitInfo(), FWTGeoRecoGeometryESProducer::addTIDGeometry(), SiStripDigiValid::analyze(), L1TPhase2OuterTrackerTkMET::analyze(), OuterTrackerMonitorTTCluster::analyze(), OuterTrackerMonitorTTStub::analyze(), TrackerTreeGenerator::analyze(), Phase2TrackerMonitorDigi::bookLayerHistos(), Phase2TrackerValidateDigi::bookLayerHistos(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), l1tVertexFinder::VertexFinder::fastHisto(), AlignmentPI::topolInfo::fillGeometryInfo(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), SiStripFolderOrganizer::getFolderName(), SiStripFakeAPVParameters::getIndex(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), phase2tkutil::getOTHistoId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndRing(), SiStripHistoId::getSubdetid(), TkLayerMap::getXY_TID(), ctfseeding::HitExtractorSTRP::hits(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), TrackingNtuple::DetIdOTCommon::parse(), L1TrackJetProducer::produce(), L1TrackFastJetProducer::produce(), L1FastTrackingJetProducer::produce(), TTStubBuilder< T >::produce(), align::TrackerNameSpace::TID::ringNumber(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), trackerDTC::SensorModule::SensorModule(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), l1tVertexFinder::Stub::setModuleInfo(), TrackerOfflineValidation::setUpTreeMembers(), tmtt::StubFEWindows::storedWindowSize(), ResidualRefitting::StoreTrackerRecHits(), tidIsDoubleSide(), TrackerDpgAnalysis::toStringName(), trackerHierarchy(), and tmtt::TrackerModule::TrackerModule().

218 { return ((id.rawId() >> tidVals_.ringStartBit_) & tidVals_.ringMask_); }
const TIDValues tidVals_
uint32_t TrackerTopology::tidRPhi ( const DetId id) const
inline

Definition at line 314 of file TrackerTopology.h.

References TrackerTopology::TIDValues::sterMask_, TrackerTopology::TIDValues::sterStartBit_, and tidVals_.

Referenced by tidIsRPhi(), and tidUpper().

314  {
315  if (((id.rawId() >> tidVals_.sterStartBit_) & tidVals_.sterMask_) == 2) {
316  return ((id.rawId() >> tidVals_.sterStartBit_) & tidVals_.sterMask_);
317  } else {
318  return 0;
319  }
320  }
const TIDValues tidVals_
unsigned int TrackerTopology::tidSide ( const DetId id) const
inline

Definition at line 190 of file TrackerTopology.h.

References TrackerTopology::TIDValues::sideMask_, TrackerTopology::TIDValues::sideStartBit_, and tidVals_.

Referenced by TrackerAlignmentLevelBuilder::addTIDDetUnitInfo(), FWTGeoRecoGeometryESProducer::addTIDGeometry(), SiStripDigiValid::analyze(), TrackerTreeGenerator::analyze(), AlignmentPI::TkAlBarycenters::computeBarycenters(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::TrackerNameSpace::TID::endcapNumber(), SiStripPI::fillBCArrays(), AlignmentPI::topolInfo::fillGeometryInfo(), TrackerGeometryCompare::fillIdentifiers(), SiStripPI::fillTotalComponents(), TrackerOfflineValidationSummary::fillTree(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), phase2tkutil::getOTHistoId(), SiStripMiscalibrate::getRegionsFromDetId(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripFolderOrganizer::GetSubDetAndRing(), SiStripUtility::getSubDetectorTag(), SiStripFolderOrganizer::getSubDetFolderAndTag(), SiStripHistoId::getSubdetid(), GeometricSearchTracker::idToLayer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), TkLayerMap::layerSearch(), AlignmentParameterSelector::outsideDetIdRanges(), SiStripTrackerMapCreator::printBadModuleList(), SiStripTrackerMapCreator::printTopModules(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), APVGain::subdetectorPlane(), tidIsZMinusSide(), and trackerHierarchy().

190 { return ((id.rawId() >> tidVals_.sideStartBit_) & tidVals_.sideMask_); }
const TIDValues tidVals_
uint32_t TrackerTopology::tidStack ( const DetId id) const
inline

Definition at line 359 of file TrackerTopology.h.

References tidGlued().

359 { return tidGlued(id); }
uint32_t tidGlued(const DetId &id) const
uint32_t TrackerTopology::tidStereo ( const DetId id) const
inline
uint32_t TrackerTopology::tidUpper ( const DetId id) const
inline

Definition at line 332 of file TrackerTopology.h.

References tidRPhi().

332 { return tidRPhi(id); }
uint32_t tidRPhi(const DetId &id) const
unsigned int TrackerTopology::tidWheel ( const DetId id) const
inline

Definition at line 201 of file TrackerTopology.h.

References tidVals_, TrackerTopology::TIDValues::wheelMask_, and TrackerTopology::TIDValues::wheelStartBit_.

Referenced by SiStripDetSummary::add(), tmtt::StubKiller::addDeadLayerModulesToDeadModuleList(), TrackerAlignmentLevelBuilder::addTIDDetUnitInfo(), FWTGeoRecoGeometryESProducer::addTIDGeometry(), SiStripDigiValid::analyze(), SiStripLAProfileBooker::analyze(), TrackerTreeGenerator::analyze(), Phase2TrackerMonitorDigi::bookLayerHistos(), Phase2TrackerValidateDigi::bookLayerHistos(), HitEff::checkLayer(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), SiStripDigitizerAlgorithm::digitize(), align::TrackerNameSpace::TID::diskNumber(), trackerDTC::Setup::encodeLayerId(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripPI::fillBCArrays(), AlignmentPI::topolInfo::fillGeometryInfo(), TrackerGeometryCompare::fillIdentifiers(), SiStripPI::fillTotalComponents(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), phase2tkutil::getOTHistoId(), SiStripMiscalibrate::getRegionsFromDetId(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripHistoId::getSubdetid(), GeometricSearchTracker::idToLayer(), tmtt::StubKiller::killStub(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), TkLayerMap::layerSearch(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), TTStubBuilder< T >::produce(), PreMixingSiStripWorker::put(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), trackerDTC::SensorModule::SensorModule(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), l1tVertexFinder::Stub::setModuleInfo(), TrackerOfflineValidation::setUpTreeMembers(), tmtt::StubFEWindows::storedWindowSize(), ResidualRefitting::StoreTrackerRecHits(), trackerDTC::Setup::stubPos(), APVGain::subdetectorPlane(), TrackerDpgAnalysis::toStringName(), trackerHierarchy(), tmtt::TrackerModule::TrackerModule(), and TrackerAlignableId::typeAndLayerFromDetId().

201  {
202  return ((id.rawId() >> tidVals_.wheelStartBit_) & tidVals_.wheelMask_);
203  }
const TIDValues tidVals_
DetId TrackerTopology::tobDetId ( uint32_t  layer,
uint32_t  rod_fw_bw,
uint32_t  rod,
uint32_t  module,
uint32_t  ster 
) const
inline

Definition at line 521 of file TrackerTopology.h.

References TrackerTopology::TOBValues::layerMask_, TrackerTopology::TOBValues::layerStartBit_, TrackerTopology::TOBValues::moduleMask_, TrackerTopology::TOBValues::moduleStartBit_, TrackerTopology::TOBValues::rod_fw_bwMask_, TrackerTopology::TOBValues::rod_fw_bwStartBit_, TrackerTopology::TOBValues::rodMask_, TrackerTopology::TOBValues::rodStartBit_, TrackerTopology::TOBValues::sterMask_, TrackerTopology::TOBValues::sterStartBit_, SiStripSubdetector::TOB, tobVals_, and DetId::Tracker.

Referenced by SiStripFineDelayHit::deviceMask(), and tobDetIdLayerComparator().

521  {
523  uint32_t rawid = id.rawId();
529  return DetId(rawid);
530  }
unsigned int module(const DetId &id) const
const TOBValues tobVals_
Definition: DetId.h:17
unsigned int layer(const DetId &id) const
std::pair<DetId, SameLayerComparator> TrackerTopology::tobDetIdLayerComparator ( uint32_t  layer) const
inline

Definition at line 552 of file TrackerTopology.h.

References tobDetId().

Referenced by ctfseeding::HitExtractorSTRP::hits(), CosmicLayerTriplets::init(), and CosmicLayerPairs::selectTOBHit().

552  {
553  return std::make_pair(tobDetId(layer, 1, 1, 1, 1), SameLayerComparator(this));
554  }
DetId tobDetId(uint32_t layer, uint32_t rod_fw_bw, uint32_t rod, uint32_t module, uint32_t ster) const
unsigned int layer(const DetId &id) const
uint32_t TrackerTopology::tobGlued ( const DetId id) const
inline

Definition at line 347 of file TrackerTopology.h.

References gpuVertexFinder::return, TrackerTopology::TOBValues::sterMask_, TrackerTopology::TOBValues::sterStartBit_, and tobVals_.

Referenced by tobIsDoubleSide(), tobStack(), and trackerHierarchy().

347  {
348  uint32_t testId = (id.rawId() >> tobVals_.sterStartBit_) & tobVals_.sterMask_;
349  return (testId == 0) ? 0 : (id.rawId() - testId);
350  }
const TOBValues tobVals_
bool TrackerTopology::tobIsDoubleSide ( const DetId id) const
inline
bool TrackerTopology::tobIsRPhi ( const DetId id) const
inline
bool TrackerTopology::tobIsStereo ( const DetId id) const
inline
bool TrackerTopology::tobIsZMinusSide ( const DetId id) const
inline
bool TrackerTopology::tobIsZPlusSide ( const DetId id) const
inline
unsigned int TrackerTopology::tobLayer ( const DetId id) const
inline

Definition at line 147 of file TrackerTopology.h.

References TrackerTopology::TOBValues::layerMask_, TrackerTopology::TOBValues::layerStartBit_, and tobVals_.

Referenced by SiStripDetSummary::add(), TrackerAlignmentLevelBuilder::addTOBDetUnitInfo(), SiStripCalibLorentzAngle::algoBeginJob(), SiStripDigiValid::analyze(), L1TPhase2OuterTrackerTkMET::analyze(), SiStripLAProfileBooker::analyze(), SiPixelErrorEstimation::analyze(), TrackerTreeGenerator::analyze(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), HitEff::checkLayer(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), SiStripDigitizerAlgorithm::digitize(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), l1tVertexFinder::VertexFinder::fastHisto(), SiStripPI::fillBCArrays(), AlignmentPI::topolInfo::fillGeometryInfo(), TrackerGeometryCompare::fillIdentifiers(), SiStripPI::fillTotalComponents(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripFakeAPVParameters::getIndex(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripGainCosmicCalculator::getNewObject(), SiStripCalibLorentzAngle::getNewObject(), SiStripMiscalibrate::getRegionsFromDetId(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripBaseCondObjDQM::getStringNameAndId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripHistoId::getSubdetid(), TkLayerMap::getXY_TOB(), GeometricSearchTracker::idToLayer(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), LA_Filler_Fitter::layerLabel(), align::TrackerNameSpace::TOB::layerNumber(), TkLayerMap::layerSearch(), TrajectoryManager::makeSinglePSimHit(), TkGluedMeasurementDet::measurements(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), L1TrackJetProducer::produce(), L1TrackFastJetProducer::produce(), L1FastTrackingJetProducer::produce(), PreMixingSiStripWorker::put(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), APVGain::subdetectorPlane(), tobIsDoubleSide(), TrackerDpgAnalysis::toStringName(), trackerHierarchy(), LaserDQM::trackerStatistics(), and TrackerAlignableId::typeAndLayerFromDetId().

147  {
148  return int((id.rawId() >> tobVals_.layerStartBit_) & tobVals_.layerMask_);
149  }
const TOBValues tobVals_
uint32_t TrackerTopology::tobLower ( const DetId id) const
inline

Definition at line 294 of file TrackerTopology.h.

References tobStereo().

294 { return tobStereo(id); }
uint32_t tobStereo(const DetId &id) const
unsigned int TrackerTopology::tobModule ( const DetId id) const
inline
DetId TrackerTopology::tobPartnerDetId ( const DetId id) const
inline

Definition at line 376 of file TrackerTopology.h.

References TrackerTopology::TOBValues::sterMask_, TrackerTopology::TOBValues::sterStartBit_, and tobVals_.

376  {
377  if (((id.rawId() >> tobVals_.sterStartBit_) & tobVals_.sterMask_) == 1) {
378  return DetId(id.rawId() + 1);
379  } else if (((id.rawId() >> tobVals_.sterStartBit_) & tobVals_.sterMask_) == 2) {
380  return DetId(id.rawId() - 1);
381  } else {
382  return DetId();
383  }
384  }
const TOBValues tobVals_
Definition: DetId.h:17
unsigned int TrackerTopology::tobRod ( const DetId id) const
inline
std::vector<unsigned int> TrackerTopology::tobRodInfo ( const DetId id) const
inline

Definition at line 226 of file TrackerTopology.h.

References pileupDistInMC::num, tobRod(), and tobSide().

Referenced by SiStripDigiValid::analyze(), SiStripLAProfileBooker::analyze(), TrackerTreeGenerator::analyze(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), align::TrackerNameSpace::TOB::halfBarrelNumber(), align::TrackerNameSpace::TOB::rodNumber(), and TrackerOfflineValidation::setUpTreeMembers().

226  {
227  std::vector<unsigned int> num;
228  num.push_back(tobSide(id));
229  num.push_back(tobRod(id));
230  return num;
231  }
unsigned int tobSide(const DetId &id) const
unsigned int tobRod(const DetId &id) const
uint32_t TrackerTopology::tobRPhi ( const DetId id) const
inline

Definition at line 298 of file TrackerTopology.h.

References TrackerTopology::TOBValues::sterMask_, TrackerTopology::TOBValues::sterStartBit_, and tobVals_.

Referenced by tobIsRPhi(), and tobUpper().

298  {
299  if (((id.rawId() >> tobVals_.sterStartBit_) & tobVals_.sterMask_) == 2) {
300  return ((id.rawId() >> tobVals_.sterStartBit_) & tobVals_.sterMask_);
301  } else {
302  return 0;
303  }
304  }
const TOBValues tobVals_
unsigned int TrackerTopology::tobSide ( const DetId id) const
inline
uint32_t TrackerTopology::tobStack ( const DetId id) const
inline

Definition at line 360 of file TrackerTopology.h.

References tobGlued().

360 { return tobGlued(id); }
uint32_t tobGlued(const DetId &id) const
uint32_t TrackerTopology::tobStereo ( const DetId id) const
inline
uint32_t TrackerTopology::tobUpper ( const DetId id) const
inline

Definition at line 333 of file TrackerTopology.h.

References tobRPhi().

333 { return tobRPhi(id); }
uint32_t tobRPhi(const DetId &id) const
uint32_t TrackerTopology::upper ( const DetId id) const

Member Data Documentation

const BitmaskAndSubdet TrackerTopology::bits_per_field[DETID_FIELDS_MAX]
private

Definition at line 589 of file TrackerTopology.h.

Referenced by getField(), and hasField().

const PixelBarrelValues TrackerTopology::pbVals_
private

Definition at line 576 of file TrackerTopology.h.

Referenced by pxbDetId(), pxbLadder(), pxbLayer(), pxbModule(), and TrackerTopology().

const PixelEndcapValues TrackerTopology::pfVals_
private
const TECValues TrackerTopology::tecVals_
private
const TIBValues TrackerTopology::tibVals_
private
const TIDValues TrackerTopology::tidVals_
private
const TOBValues TrackerTopology::tobVals_
private