CMS 3D CMS Logo

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, SameLayerComparatorpxbDetIdLayerComparator (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, SameLayerComparatorpxfDetIdDiskComparator (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, SameLayerComparatortecDetIdWheelComparator (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, SameLayerComparatortibDetIdLayerComparator (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, SameLayerComparatortidDetIdWheelComparator (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, SameLayerComparatortobDetIdLayerComparator (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

◆ DetIdFields

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

◆ getField()

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

Definition at line 568 of file TrackerTopology.h.

References bits_per_field, heavyIonCSV_trainingSettings::idx, and gpuClustering::pixelStatus::mask.

568  {
569  return ((id.rawId() >> bits_per_field[idx].startBit) & bits_per_field[idx].mask);
570  }
const BitmaskAndSubdet bits_per_field[DETID_FIELDS_MAX]
constexpr uint32_t mask
Definition: gpuClustering.h:26

◆ getITPixelLayerNumber()

int TrackerTopology::getITPixelLayerNumber ( const DetId id) const

Definition at line 436 of file TrackerTopology.cc.

References layer(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pxbLayer(), pxfDisk(), pxfSide(), and DetId::Tracker.

Referenced by Phase2TrackerMonitorDigi::bookLayerHistos(), Phase2TrackerValidateDigi::bookLayerHistos(), Phase2TrackerValidateDigi::fillITPixelBXInfo(), Phase2TrackerMonitorDigi::fillITPixelDigiHistos(), Phase2TrackerValidateDigi::fillSimHitInfo(), and phase2tkutil::getITHistoId().

436  {
437  int layer = -1;
438 
439  if (id.det() == DetId::Tracker) {
440  if (id.subdetId() == PixelSubdetector::PixelBarrel) {
441  layer = pxbLayer(id);
442  } else if (id.subdetId() == PixelSubdetector::PixelEndcap) {
443  layer = 100 * pxfSide(id) + pxfDisk(id);
444  } else {
445  edm::LogInfo("TrackerTopology") << ">>> Invalid subdetId() ";
446  }
447  }
448  return layer;
449 }
unsigned int pxbLayer(const DetId &id) const
unsigned int layer(const DetId &id) const
unsigned int pxfDisk(const DetId &id) const
Log< level::Info, false > LogInfo
unsigned int pxfSide(const DetId &id) const

◆ getOTLayerNumber()

int TrackerTopology::getOTLayerNumber ( const DetId id) const

Definition at line 421 of file TrackerTopology.cc.

References layer(), SiStripSubdetector::TID, tidSide(), tidWheel(), SiStripSubdetector::TOB, tobLayer(), and DetId::Tracker.

Referenced by Phase2TrackerMonitorDigi::bookLayerHistos(), Phase2TrackerValidateDigi::bookLayerHistos(), Phase2TrackerValidateDigi::fillOTBXInfo(), Phase2TrackerMonitorDigi::fillOTDigiHistos(), Phase2TrackerValidateDigi::fillSimHitInfo(), and phase2tkutil::getOTHistoId().

421  {
422  int layer = -1;
423 
424  if (id.det() == DetId::Tracker) {
425  if (id.subdetId() == SiStripSubdetector::TOB) {
426  layer = tobLayer(id);
427  } else if (id.subdetId() == SiStripSubdetector::TID) {
428  layer = 100 * tidSide(id) + tidWheel(id);
429  } else {
430  edm::LogInfo("TrackerTopology") << ">>> Invalid subdetId() ";
431  }
432  }
433  return layer;
434 }
unsigned int tobLayer(const DetId &id) const
unsigned int tidSide(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
unsigned int layer(const DetId &id) const
Log< level::Info, false > LogInfo

◆ glued()

uint32_t TrackerTopology::glued ( const DetId id) const

Definition at line 85 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, SiStripSubdetector::TEC, tecGlued(), SiStripSubdetector::TIB, tibGlued(), SiStripSubdetector::TID, tidGlued(), SiStripSubdetector::TOB, and tobGlued().

Referenced by TrackerGeomBuilderFromGeometricDet::buildGeomDet(), and TrackingRecoMaterialAnalyser::isDoubleSided().

85  {
86  uint32_t subdet = id.subdetId();
87  if (subdet == PixelSubdetector::PixelBarrel)
88  return 0;
89  if (subdet == PixelSubdetector::PixelEndcap)
90  return 0;
91  if (subdet == SiStripSubdetector::TIB)
92  return tibGlued(id);
93  if (subdet == SiStripSubdetector::TID)
94  return tidGlued(id);
95  if (subdet == SiStripSubdetector::TOB)
96  return tobGlued(id);
97  if (subdet == SiStripSubdetector::TEC)
98  return tecGlued(id);
99 
100  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::glued";
101  return 0;
102 }
uint32_t tibGlued(const DetId &id) const
uint32_t tobGlued(const DetId &id) const
uint32_t tidGlued(const DetId &id) const
uint32_t tecGlued(const DetId &id) const

◆ hasField()

bool TrackerTopology::hasField ( const DetId id,
DetIdFields  idx 
) const
inline

◆ isLower()

bool TrackerTopology::isLower ( const DetId id) const

Definition at line 195 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, SiStripSubdetector::TEC, tecLower(), SiStripSubdetector::TIB, tibLower(), SiStripSubdetector::TID, tidLower(), SiStripSubdetector::TOB, and tobLower().

Referenced by tmtt::TMTrackProducer::beginRun(), tmtt::StubKiller::chooseModulesToKill(), l1tVertexFinder::InputData::InputData(), print(), TTStubAssociator< T >::produce(), TTClusterBuilder< T >::produce(), TTStubBuilder< T >::produce(), tt::Setup::produceSensorModules(), TrackingNtuple::DetIdPhase2OTOnly::push_back(), and VectorHitBuilderAlgorithm::run().

195  {
196  uint32_t subdet = id.subdetId();
197  if (subdet == PixelSubdetector::PixelBarrel)
198  return false;
199  if (subdet == PixelSubdetector::PixelEndcap)
200  return false;
201  if (subdet == SiStripSubdetector::TIB)
202  return tibLower(id) != 0;
203  if (subdet == SiStripSubdetector::TID)
204  return tidLower(id) != 0;
205  if (subdet == SiStripSubdetector::TOB)
206  return tobLower(id) != 0;
207  if (subdet == SiStripSubdetector::TEC)
208  return tecLower(id) != 0;
209 
210  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::isLower";
211  return false;
212 }
uint32_t tidLower(const DetId &id) const
uint32_t tecLower(const DetId &id) const
uint32_t tobLower(const DetId &id) const
uint32_t tibLower(const DetId &id) const

◆ isRPhi()

bool TrackerTopology::isRPhi ( const DetId id) const

Definition at line 177 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, SiStripSubdetector::TEC, tecRPhi(), SiStripSubdetector::TIB, tibRPhi(), SiStripSubdetector::TID, tidRPhi(), SiStripSubdetector::TOB, and tobRPhi().

Referenced by AlignmentPI::topolInfo::fillGeometryInfo(), print(), and TrackingNtuple::DetIdStripOnly::push_back().

177  {
178  uint32_t subdet = id.subdetId();
179  if (subdet == PixelSubdetector::PixelBarrel)
180  return false;
181  if (subdet == PixelSubdetector::PixelEndcap)
182  return false;
183  if (subdet == SiStripSubdetector::TIB)
184  return tibRPhi(id) != 0;
185  if (subdet == SiStripSubdetector::TID)
186  return tidRPhi(id) != 0;
187  if (subdet == SiStripSubdetector::TOB)
188  return tobRPhi(id) != 0;
189  if (subdet == SiStripSubdetector::TEC)
190  return tecRPhi(id) != 0;
191 
192  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::isRPhi";
193  return false;
194 }
uint32_t tibRPhi(const DetId &id) const
uint32_t tecRPhi(const DetId &id) const
uint32_t tidRPhi(const DetId &id) const
uint32_t tobRPhi(const DetId &id) const

◆ isStereo()

bool TrackerTopology::isStereo ( const DetId id) const

Definition at line 158 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, SiStripSubdetector::TEC, tecStereo(), SiStripSubdetector::TIB, tibStereo(), SiStripSubdetector::TID, tidStereo(), SiStripSubdetector::TOB, and tobStereo().

Referenced by mkfit::convertHits(), MkFitSeedConverter::convertSeeds(), MkFitGeometryESProducer::fillShapeAndPlacement(), MkFitGeometry::mkFitLayerNumber(), print(), and TrackingNtuple::DetIdStripOnly::push_back().

158  {
159  uint32_t subdet = id.subdetId();
160  if (subdet == PixelSubdetector::PixelBarrel)
161  return false;
162  if (subdet == PixelSubdetector::PixelEndcap)
163  return false;
164  if (subdet == SiStripSubdetector::TIB)
165  return tibStereo(id) != 0;
166  if (subdet == SiStripSubdetector::TID)
167  return tidStereo(id) != 0;
168  if (subdet == SiStripSubdetector::TOB)
169  return tobStereo(id) != 0;
170  if (subdet == SiStripSubdetector::TEC)
171  return tecStereo(id) != 0;
172 
173  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::isStereo";
174  return false;
175 }
uint32_t tidStereo(const DetId &id) const
uint32_t tobStereo(const DetId &id) const
uint32_t tecStereo(const DetId &id) const
uint32_t tibStereo(const DetId &id) const

◆ isUpper()

bool TrackerTopology::isUpper ( const DetId id) const

Definition at line 214 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, SiStripSubdetector::TEC, tecUpper(), SiStripSubdetector::TIB, tibUpper(), SiStripSubdetector::TID, tidUpper(), SiStripSubdetector::TOB, and tobUpper().

Referenced by print(), and TrackingNtuple::DetIdPhase2OTOnly::push_back().

214  {
215  uint32_t subdet = id.subdetId();
216  if (subdet == PixelSubdetector::PixelBarrel)
217  return false;
218  if (subdet == PixelSubdetector::PixelEndcap)
219  return false;
220  if (subdet == SiStripSubdetector::TIB)
221  return tibUpper(id) != 0;
222  if (subdet == SiStripSubdetector::TID)
223  return tidUpper(id) != 0;
224  if (subdet == SiStripSubdetector::TOB)
225  return tobUpper(id) != 0;
226  if (subdet == SiStripSubdetector::TEC)
227  return tecUpper(id) != 0;
228 
229  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::isUpper";
230  return false;
231 }
uint32_t tidUpper(const DetId &id) const
uint32_t tobUpper(const DetId &id) const
uint32_t tecUpper(const DetId &id) const
uint32_t tibUpper(const DetId &id) const

◆ layer()

unsigned int TrackerTopology::layer ( const DetId id) const

Definition at line 47 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pxbLayer(), pxfDisk(), SiStripSubdetector::TEC, tecWheel(), SiStripSubdetector::TIB, tibLayer(), SiStripSubdetector::TID, tidWheel(), SiStripSubdetector::TOB, and tobLayer().

Referenced by tmtt::StubKiller::addDeadLayerModulesToDeadModuleList(), TrackMerger::addSecondTrackHits(), TrackingNtuple::addStripMatchedHit(), OuterTrackerMonitorTrackingParticles::analyze(), TrackingRecoMaterialAnalyser::analyze(), SiPixelDynamicInefficiencyReader::analyze(), OuterTrackerMonitorTTCluster::analyze(), OuterTrackerMonitorTTStub::analyze(), SiPhase2OuterTrackerLorentzAngleWriter::analyze(), TestHits::analyze(), TestSmoothHits::analyze(), TestOutliers::analyze(), TestTrackHits::analyze(), TrackAssociatorByHitsImpl::associateSimToReco(), VectorHitBuilderAlgorithm::buildVectorHits(), TrackingParticleNumberOfLayers::calculate(), SeedingOTEDProducer::checkLayer(), mkfit::convertHits(), MkFitSeedConverter::convertSeeds(), JetCoreMCtruthSeedGenerator::DetectorSelector(), DeepCoreSeedGenerator::DetectorSelector(), SiPixelDigitizerAlgorithm::digitize(), reco::HitPattern::encode(), TrackingNtuple::fillCandidates(), TrackingNtuple::fillPhase2OTHits(), TrackingNtuple::fillPixelHits(), MkFitGeometryESProducer::fillShapeAndPlacement(), TrackingNtuple::fillStripRphiStereoHits(), TrackingNtuple::fillTracks(), getDetLayer(), getITPixelLayerNumber(), getOTLayerNumber(), MTVHistoProducerAlgoForTracker::getSeedingLayerSetBin(), HLTPixelActivityFilter::hltFilter(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), PFCheckHitPattern::init(), cms::SiPixelDigitizer::initializeEvent(), CheckHitPattern::interpretDetId(), tmtt::StubKiller::killStub(), SiPixelDigitizerAlgorithm::lateSignalReweight(), reco::modules::TrackerTrackHitFilter::Rule::layer(), CkfDebugger::layer(), reco::modules::TrackerTrackHitFilter::layerFromId(), tt::Setup::layerId(), SiStripDetCabling::layerSearch(), TrackMerger::merge(), MkFitGeometry::mkFitLayerNumber(), TrackerTopology::SameLayerComparator::operator()(), SiStripTrackerMapCreator::paintTkMapFromAlarm(), SiPixelDigitizerAlgorithm::pixel_aging(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), CtfSpecialSeedGenerator::preliminaryCheck(), VectorHitBuilderAlgorithmBase::printCluster(), SiStripQuality::printDetInfo(), MuonReSeeder::produce(), reco::CentralityProducer::produce(), PixelClusterTagInfoProducer::produce(), TTStubBuilder< T >::produce(), DeepCoreSeedGenerator::produce(), TrackingNtuple::DetIdCommon::push_back(), pxbDetId(), pxbDetIdLayerComparator(), PixelCPEClusterRepair::Rule::recommend(), tt::SensorModule::SensorModule(), tadqm::TrackAnalyzer::setLumi(), l1tVertexFinder::Stub::setModuleInfo(), PixelCPEGenericBase::setXYErrors(), JetCoreMCtruthSeedGenerator::splittedClusterDirections(), DeepCoreSeedGenerator::splittedClusterDirections(), tmtt::StubFEWindows::storedWindowSize(), StripSubClusterShapeFilterBase::testLastHit(), tibDetId(), tibDetIdLayerComparator(), tobDetId(), tobDetIdLayerComparator(), TrackTransformerForGlobalCosmicMuons::TrackerKeep(), tmtt::TrackerModule::TrackerModule(), and PixelInactiveAreaFinder::updatePixelDets().

47  {
48  uint32_t subdet = id.subdetId();
49  if (subdet == PixelSubdetector::PixelBarrel)
50  return pxbLayer(id);
51  if (subdet == PixelSubdetector::PixelEndcap)
52  return pxfDisk(id);
53  if (subdet == SiStripSubdetector::TIB)
54  return tibLayer(id);
55  if (subdet == SiStripSubdetector::TID)
56  return tidWheel(id);
57  if (subdet == SiStripSubdetector::TOB)
58  return tobLayer(id);
59  if (subdet == SiStripSubdetector::TEC)
60  return tecWheel(id);
61 
62  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::layer";
63  return 0;
64 }
unsigned int tobLayer(const DetId &id) const
unsigned int pxbLayer(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
unsigned int pxfDisk(const DetId &id) const
unsigned int tibLayer(const DetId &id) const

◆ lower()

uint32_t TrackerTopology::lower ( const DetId id) const

Definition at line 122 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, SiStripSubdetector::TEC, tecLower(), SiStripSubdetector::TIB, tibLower(), SiStripSubdetector::TID, tidLower(), SiStripSubdetector::TOB, and tobLower().

122  {
123  uint32_t subdet = id.subdetId();
124  if (subdet == PixelSubdetector::PixelBarrel)
125  return 0;
126  if (subdet == PixelSubdetector::PixelEndcap)
127  return 0;
128  if (subdet == SiStripSubdetector::TIB)
129  return tibLower(id);
130  if (subdet == SiStripSubdetector::TID)
131  return tidLower(id);
132  if (subdet == SiStripSubdetector::TOB)
133  return tobLower(id);
134  if (subdet == SiStripSubdetector::TEC)
135  return tecLower(id);
136 
137  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::lower";
138 }
uint32_t tidLower(const DetId &id) const
uint32_t tecLower(const DetId &id) const
uint32_t tobLower(const DetId &id) const
uint32_t tibLower(const DetId &id) const

◆ module()

unsigned int TrackerTopology::module ( const DetId id) const

Definition at line 66 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pxbModule(), pxfModule(), SiStripSubdetector::TEC, tecModule(), SiStripSubdetector::TIB, tibModule(), SiStripSubdetector::TID, tidModule(), SiStripSubdetector::TOB, and tobModule().

Referenced by TrackerAlignmentLevelBuilder::addPXBDetUnitInfo(), TrackerAlignmentLevelBuilder::addPXEDetUnitInfo(), TrackerAlignmentLevelBuilder::addTECDetUnitInfo(), TrackerAlignmentLevelBuilder::addTIBDetUnitInfo(), TrackerAlignmentLevelBuilder::addTIDDetUnitInfo(), TrackerAlignmentLevelBuilder::addTOBDetUnitInfo(), VectorHitBuilderAlgorithmBase::printCluster(), TrackingNtuple::DetIdCommon::push_back(), pxbDetId(), pxfDetId(), tecDetId(), tibDetId(), tidDetId(), and tobDetId().

66  {
67  uint32_t subdet = id.subdetId();
68  if (subdet == PixelSubdetector::PixelBarrel)
69  return pxbModule(id);
70  if (subdet == PixelSubdetector::PixelEndcap)
71  return pxfModule(id);
72  if (subdet == SiStripSubdetector::TIB)
73  return tibModule(id);
74  if (subdet == SiStripSubdetector::TID)
75  return tidModule(id);
76  if (subdet == SiStripSubdetector::TOB)
77  return tobModule(id);
78  if (subdet == SiStripSubdetector::TEC)
79  return tecModule(id);
80 
81  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::module";
82  return 0;
83 }
unsigned int tibModule(const DetId &id) const
unsigned int pxfModule(const DetId &id) const
unsigned int tidModule(const DetId &id) const
unsigned int tecModule(const DetId &id) const
unsigned int tobModule(const DetId &id) const
unsigned int pxbModule(const DetId &id) const

◆ moduleGeometry()

SiStripModuleGeometry TrackerTopology::moduleGeometry ( const DetId id) const

Definition at line 384 of file TrackerTopology.cc.

References IB1, IB2, OB1, OB2, SiStripSubdetector::TEC, tecRing(), SiStripSubdetector::TIB, tibLayer(), SiStripSubdetector::TID, tidRing(), SiStripSubdetector::TOB, tobLayer(), UNKNOWNGEOMETRY, W1A, W1B, W2A, W2B, W3A, W3B, W4, W5, W6, and W7.

Referenced by SiStripMonitorTrack::clusterInfos(), and SiStripBackPlaneCorrection::printDebug().

384  {
385  switch (id.subdetId()) {
391  switch (tidRing(id)) {
392  case 1:
394  case 2:
396  case 3:
398  }
401  switch (tecRing(id)) {
402  case 1:
404  case 2:
406  case 3:
408  case 4:
410  //generic function to return DetIds and boolean factors
411  case 5:
413  case 6:
415  case 7:
417  }
418  }
420 }
unsigned int tobLayer(const DetId &id) const
unsigned int tecRing(const DetId &id) const
ring id
unsigned int tidRing(const DetId &id) const
unsigned int tibLayer(const DetId &id) const

◆ partnerDetId()

DetId TrackerTopology::partnerDetId ( const DetId id) const

Definition at line 233 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, DetId::subdetId(), SiStripSubdetector::TEC, tecPartnerDetId(), SiStripSubdetector::TIB, tibPartnerDetId(), SiStripSubdetector::TID, tidPartnerDetId(), SiStripSubdetector::TOB, and tobPartnerDetId().

Referenced by TrackerGeomBuilderFromGeometricDet::buildGeomDet(), TrackerGeomBuilderFromGeometricDet::buildSilicon(), StubPtConsistency::getConsistency(), TTClusterBuilder< T >::produce(), TTStubBuilder< T >::produce(), VectorHitBuilderAlgorithm::run(), tt::SensorModule::SensorModule(), l1tVertexFinder::Stub::setModuleInfo(), and tmtt::TrackerModule::TrackerModule().

233  {
234  uint32_t subdet = id.subdetId();
235  if (subdet == PixelSubdetector::PixelBarrel)
236  return 0;
237  if (subdet == PixelSubdetector::PixelEndcap)
238  return 0;
239  if (subdet == SiStripSubdetector::TIB)
240  return tibPartnerDetId(id);
241  if (subdet == SiStripSubdetector::TID)
242  return tidPartnerDetId(id);
243  if (subdet == SiStripSubdetector::TOB)
244  return tobPartnerDetId(id);
245  if (subdet == SiStripSubdetector::TEC)
246  return tecPartnerDetId(id);
247 
248  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::partnerDetId";
249  return 0;
250 }
DetId tibPartnerDetId(const DetId &id) const
DetId tidPartnerDetId(const DetId &id) const
uint32_t tecPartnerDetId(const DetId &id) const
DetId tobPartnerDetId(const DetId &id) const

◆ print()

std::string TrackerTopology::print ( DetId  detid) const

Definition at line 252 of file TrackerTopology.cc.

References Exception, isLower(), isRPhi(), isStereo(), isUpper(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pxbLadder(), pxbLayer(), pxbModule(), pxfBlade(), pxfDisk(), pxfModule(), pxfPanel(), pxfSide(), side(), AlCaHLTBitMon_QueryRunRegistry::string, SiStripSubdetector::TEC, tecModule(), tecPetalInfo(), tecRing(), tecSide(), tecWheel(), SiStripSubdetector::TIB, tibLayer(), tibModule(), tibStringInfo(), SiStripSubdetector::TID, tidModuleInfo(), tidRing(), tidSide(), tidWheel(), SiStripSubdetector::TOB, tobLayer(), tobModule(), and tobRodInfo().

Referenced by FWTrackHitsDetailView::addModules(), FWTGeoRecoGeometryESProducer::addTECGeometry(), FWTGeoRecoGeometryESProducer::addTIBGeometry(), FWTGeoRecoGeometryESProducer::addTIDGeometry(), FWTGeoRecoGeometryESProducer::addTOBGeometry(), SiPixelBadModuleReader::analyze(), TrackingLayer::createFromDetId(), PixelRegions::PixelRegionContainers::fill(), MuonAssociatorByHitsHelper::getMatchedIds(), fireworks::info(), TrackingRecHitProducer::setupDetIdPipes(), FW3DViewGeometry::showPixelBarrel(), and FW3DViewGeometry::showPixelEndcap().

252  {
253  uint32_t subdet = id.subdetId();
254  std::stringstream strstr;
255 
256  if (subdet == PixelSubdetector::PixelBarrel) {
257  unsigned int theLayer = pxbLayer(id);
258  unsigned int theLadder = pxbLadder(id);
259  unsigned int theModule = pxbModule(id);
260  strstr << "PixelBarrel"
261  << " Layer " << theLayer << " Ladder " << theLadder << " Module " << theModule;
262  strstr << " (" << id.rawId() << ")";
263  return strstr.str();
264  }
265 
266  if (subdet == PixelSubdetector::PixelEndcap) {
267  unsigned int theSide = pxfSide(id);
268  unsigned int theDisk = pxfDisk(id);
269  unsigned int theBlade = pxfBlade(id);
270  unsigned int thePanel = pxfPanel(id);
271  unsigned int theModule = pxfModule(id);
272  std::string side = (pxfSide(id) == 1) ? "-" : "+";
273  strstr << "PixelEndcap"
274  << " Side " << theSide << side << " Disk " << theDisk << " Blade " << theBlade << " Panel " << thePanel
275  << " Module " << theModule;
276  strstr << " (" << id.rawId() << ")";
277  return strstr.str();
278  }
279 
280  if (subdet == SiStripSubdetector::TIB) {
281  unsigned int theLayer = tibLayer(id);
282  std::vector<unsigned int> theString = tibStringInfo(id);
283  unsigned int theModule = tibModule(id);
286  side = (theString[0] == 1) ? "-" : "+";
287  part = (theString[1] == 1) ? "int" : "ext";
289  type = (isStereo(id)) ? "stereo" : type;
290  type = (isRPhi(id)) ? "r-phi" : type;
291  type = (isStereo(id) || isRPhi(id)) ? type + " glued" : "module";
292  std::string typeUpgrade;
293  typeUpgrade = (isLower(id)) ? "lower" : typeUpgrade;
294  typeUpgrade = (isUpper(id)) ? "upper" : typeUpgrade;
295  typeUpgrade = (isUpper(id) || isLower(id)) ? typeUpgrade + " stack" : "module";
296  strstr << "TIB" << side << " Layer " << theLayer << " " << part << " String " << theString[2];
297  strstr << " Module for phase0 " << theModule << " " << type;
298  strstr << " Module for phase2 " << theModule << " " << typeUpgrade;
299  strstr << " (" << id.rawId() << ")";
300  return strstr.str();
301  }
302 
303  if (subdet == SiStripSubdetector::TID) {
304  unsigned int theSide = tidSide(id);
305  unsigned int theWheel = tidWheel(id);
306  unsigned int theRing = tidRing(id);
307  std::vector<unsigned int> theModule = tidModuleInfo(id);
310  side = (tidSide(id) == 1) ? "-" : "+";
311  part = (theModule[0] == 1) ? "back" : "front";
313  type = (isStereo(id)) ? "stereo" : type;
314  type = (isRPhi(id)) ? "r-phi" : type;
315  type = (isStereo(id) || isRPhi(id)) ? type + " glued" : "module";
316  std::string typeUpgrade;
317  typeUpgrade = (isLower(id)) ? "lower" : typeUpgrade;
318  typeUpgrade = (isUpper(id)) ? "upper" : typeUpgrade;
319  typeUpgrade = (isUpper(id) || isLower(id)) ? typeUpgrade + " stack" : "module";
320  strstr << "TID"
321  << " Side " << theSide << side << " Wheel " << theWheel << " Ring " << theRing << " " << part;
322  strstr << " Module for phase0 " << theModule[1] << " " << type;
323  strstr << " Module for phase2 " << theModule[1] << " " << typeUpgrade;
324  strstr << " (" << id.rawId() << ")";
325  return strstr.str();
326  }
327 
328  if (subdet == SiStripSubdetector::TOB) {
329  unsigned int theLayer = tobLayer(id);
330  std::vector<unsigned int> theRod = tobRodInfo(id);
331  unsigned int theModule = tobModule(id);
334  side = (((theRod[0] == 1) ? "-" : ((theRod[0] == 2) ? "+" : (theRod[0] == 3) ? "0" : "")));
335  // side = (theRod[0] == 2 ) ? "+" : "";
336  // side = (theRod[0] == 3 ) ? "0" : "";
338  type = (isStereo(id)) ? "stereo" : type;
339  type = (isRPhi(id)) ? "r-phi" : type;
340  type = (isStereo(id) || isRPhi(id)) ? type + " glued" : "module";
341  std::string typeUpgrade;
342  typeUpgrade = (isLower(id)) ? "lower" : typeUpgrade;
343  typeUpgrade = (isUpper(id)) ? "upper" : typeUpgrade;
344  typeUpgrade = (isUpper(id) || isLower(id)) ? typeUpgrade + " stack" : "module";
345  strstr << "TOB" << side << " Layer " << theLayer << " Rod " << theRod[1];
346  strstr << " Module for phase0 " << theModule << " " << type;
347  strstr << " Module for phase2 " << theModule << " " << typeUpgrade;
348  strstr << " (" << id.rawId() << ")";
349  return strstr.str();
350  }
351 
352  if (subdet == SiStripSubdetector::TEC) {
353  unsigned int theSide = tecSide(id);
354  unsigned int theWheel = tecWheel(id);
355  unsigned int theModule = tecModule(id);
356  std::vector<unsigned int> thePetal = tecPetalInfo(id);
357  unsigned int theRing = tecRing(id);
359  std::string petal;
360  side = (tecSide(id) == 1) ? "-" : "+";
361  petal = (thePetal[0] == 1) ? "back" : "front";
363  type = (isStereo(id)) ? "stereo" : type;
364  type = (isRPhi(id)) ? "r-phi" : type;
365  type = (isStereo(id) || isRPhi(id)) ? type + " glued" : "module";
366  std::string typeUpgrade;
367  typeUpgrade = (isLower(id)) ? "lower" : typeUpgrade;
368  typeUpgrade = (isUpper(id)) ? "upper" : typeUpgrade;
369  typeUpgrade = (isUpper(id) || isLower(id)) ? typeUpgrade + " stack" : "module";
370  strstr << "TEC"
371  << " Side " << theSide << side << " Wheel " << theWheel << " Petal " << thePetal[1] << " " << petal
372  << " Ring " << theRing;
373  strstr << " Module for phase0 " << theModule << " " << type;
374  strstr << " Module for phase2 " << theModule << " " << typeUpgrade;
375  strstr << " (" << id.rawId() << ")";
376 
377  return strstr.str();
378  }
379 
380  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::module";
381  return strstr.str();
382 }
bool isUpper(const DetId &id) const
unsigned int tobLayer(const DetId &id) const
unsigned int pxbLayer(const DetId &id) const
std::vector< unsigned int > tidModuleInfo(const DetId &id) const
unsigned int pxfBlade(const DetId &id) const
unsigned int tibModule(const DetId &id) const
unsigned int tidSide(const DetId &id) const
unsigned int pxfModule(const DetId &id) const
std::vector< unsigned int > tecPetalInfo(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
bool isStereo(const DetId &id) const
bool isRPhi(const DetId &id) const
unsigned int pxbLadder(const DetId &id) const
unsigned int side(const DetId &id) const
unsigned int tecRing(const DetId &id) const
ring id
unsigned int tecModule(const DetId &id) const
unsigned int tecSide(const DetId &id) const
unsigned int pxfDisk(const DetId &id) const
unsigned int pxfPanel(const DetId &id) const
bool isLower(const DetId &id) const
unsigned int pxfSide(const DetId &id) const
std::vector< unsigned int > tibStringInfo(const DetId &id) const
part
Definition: HCALResponse.h:20
std::vector< unsigned int > tobRodInfo(const DetId &id) const
unsigned int tidRing(const DetId &id) const
unsigned int tibLayer(const DetId &id) const
unsigned int tobModule(const DetId &id) const
unsigned int pxbModule(const DetId &id) const

◆ pxbDetId()

DetId TrackerTopology::pxbDetId ( uint32_t  layer,
uint32_t  ladder,
uint32_t  module 
) const
inline

Definition at line 455 of file TrackerTopology.h.

References l1ctLayer2EG_cff::id, PVValHelper::ladder, TrackerTopology::PixelBarrelValues::ladderMask_, TrackerTopology::PixelBarrelValues::ladderStartBit_, layer(), TrackerTopology::PixelBarrelValues::layerMask_, TrackerTopology::PixelBarrelValues::layerStartBit_, module(), TrackerTopology::PixelBarrelValues::moduleMask_, TrackerTopology::PixelBarrelValues::moduleStartBit_, pbVals_, PixelSubdetector::PixelBarrel, and DetId::Tracker.

Referenced by SiPixelDynamicInefficiencyDB::analyze(), 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  }
unsigned int layer(const DetId &id) const
const PixelBarrelValues pbVals_
unsigned int module(const DetId &id) const
Definition: DetId.h:17

◆ pxbDetIdLayerComparator()

std::pair<DetId, SameLayerComparator> TrackerTopology::pxbDetIdLayerComparator ( uint32_t  layer) const
inline

Definition at line 532 of file TrackerTopology.h.

References layer(), and 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

◆ pxbLadder()

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(), TrackerTreeGenerator::analyze(), PixelBaryCentreAnalyzer::analyze(), PrimaryVertexValidation::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiPixelLorentzAnglePCLWorker::analyze(), Phase1PixelMaps::bookBarrelBins(), PixelTopologyMap::buildTopologyMaps(), PixelInactiveAreaFinder::detInfo(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), HitInfo::getInfo(), PixelInactiveAreaFinder::getPhiSpanBarrel(), align::TrackerNameSpace::TPB::halfBarrelNumber(), Phase1PixelROCMaps::isBPixOuterLadder(), AlignmentPI::isBPixOuterLadder(), SiPixelPI::isBPixOuterLadder(), TrackCleaner::isCompatible(), SiPixelCoordinates::ladder(), align::TrackerNameSpace::TPB::ladderNumber(), HitComparatorByRadius::operator()(), SiPixelCoordinates::outer(), AlignmentParameterSelector::outsideDetIdRanges(), SiPixelDigitizerAlgorithm::pixel_aging(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), print(), SiPixelFakeLorentzAngleESSource::produce(), 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_

◆ pxbLayer()

unsigned int TrackerTopology::pxbLayer ( const DetId id) const
inline

Definition at line 144 of file TrackerTopology.h.

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

Referenced by FWTGeoRecoGeometryESProducer::addPixelBarrelGeometry(), TrackerAlignmentLevelBuilder::addPXBDetUnitInfo(), SiPixelDigiValid::analyze(), SiPixelLorentzAngleDB::analyze(), SiPixelVCalDB::analyze(), SiPixelDynamicInefficiencyReader::analyze(), SiPixelRecHitsValid::analyze(), SiPixelVCalReader::analyze(), SiPixelGenErrorDBObjectUploader::analyze(), SiPixelTemplateDBObjectUploader::analyze(), SiPixel2DTemplateDBObjectUploader::analyze(), SiPixelTrackResidualSource::analyze(), SiPixelErrorEstimation::analyze(), TrackerTreeGenerator::analyze(), PixelBaryCentreAnalyzer::analyze(), PrimaryVertexValidation::analyze(), CosmicRateAnalyzer::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiPixelLorentzAnglePCLWorker::analyze(), DMRChecker::analyze(), SiPixelLorentzAnglePCLHarvester::beginRun(), SiPixelLorentzAnglePCLHarvesterMCS::beginRun(), Phase1PixelMaps::bookBarrelBins(), PixelTopologyMap::buildTopologyMaps(), PixelThresholdClusterizer::clusterizeDetUnitT(), SiPixelGainCalibScaler::computeAndStorePalyoads(), TrackingLayer::createFromDetId(), PixelRegions::detIdToPixelId(), PixelInactiveAreaFinder::detInfo(), Phase1PixelMaps::fill(), gainCalibHelper::SiPixelGainCalibrationMap< myType, PayloadType, myDetType >::fill(), SiPixelRecHitsValid::fillBarrel(), Phase1PixelMaps::fillBarrelBin(), 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(), getITPixelLayerNumber(), PixelInactiveAreaFinder::getPhiSpanBarrel(), GlobalMuonRefitter::getRidOfSelectStationHits(), PixelInactiveAreaFinder::getSpan(), TrackTransformerForGlobalCosmicMuons::getTransientRecHits(), align::TrackerNameSpace::TPB::halfBarrelNumber(), GeometricSearchTracker::idToLayer(), Phase1PixelROCMaps::isBPixOuterLadder(), AlignmentPI::isBPixOuterLadder(), SiPixelPI::isBPixOuterLadder(), TrackCleaner::isCompatible(), align::TrackerNameSpace::TPB::ladderNumber(), SiPixelCoordinates::layer(), layer(), SeedFinderSelector::Layer_tuple(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), align::TrackerNameSpace::TPB::layerNumber(), SeedingLayerSetsBuilder::makeSeedingLayerSetsHitsforFastSim(), TrajectoryManager::makeSinglePSimHit(), SiPixelDigitizerAlgorithm::missCalibrate(), HitComparatorByRadius::operator()(), SiPixelCoordinates::outer(), AlignmentParameterSelector::outsideDetIdRanges(), Phase2TrackerDigitizerAlgorithm::pixel_inefficiency(), print(), PixelClusterShapeExtractor::processPixelRecHits(), SiPixelFakeLorentzAngleESSource::produce(), PixelFitterByHelixProjections::run(), NearbyPixelClustersAnalyzer::setTopoInfo(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), trackerHierarchy(), and TrackerAlignableId::typeAndLayerFromDetId().

144  {
145  return int((id.rawId() >> pbVals_.layerStartBit_) & pbVals_.layerMask_);
146  }
const PixelBarrelValues pbVals_

◆ pxbModule()

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(), SiPixel2DTemplateDBObjectUploader::analyze(), SiPixelTemplateDBObjectUploader::analyze(), SiPixelErrorEstimation::analyze(), TrackerTreeGenerator::analyze(), PrimaryVertexValidation::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiPixelLorentzAnglePCLWorker::analyze(), SiPixelLorentzAnglePCLHarvester::beginRun(), SiPixelLorentzAnglePCLHarvesterMCS::beginRun(), PixelTopologyMap::buildTopologyMaps(), PixelInactiveAreaFinder::detInfo(), SiPixelRecHitsValid::fillBarrel(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), HitInfo::getInfo(), TrackCleaner::isCompatible(), SiPixelCoordinates::module(), module(), align::TrackerNameSpace::TPB::moduleNumber(), AlignmentParameterSelector::outsideDetIdRanges(), SiPixelDigitizerAlgorithm::pixel_aging(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), print(), SiPixelFakeLorentzAngleESSource::produce(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), and trackerHierarchy().

160  {
161  return ((id.rawId() >> pbVals_.moduleStartBit_) & pbVals_.moduleMask_);
162  }
const PixelBarrelValues pbVals_

◆ pxfBlade()

unsigned int TrackerTopology::pxfBlade ( const DetId id) const
inline

Definition at line 447 of file TrackerTopology.h.

References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, createfilelist::int, 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(), PixelTopologyMap::buildTopologyMaps(), PixelRegions::detIdToPixelId(), PixelInactiveAreaFinder::detInfo(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), SiPixelTrackResidualSource::getepixrococcupancyontrk(), HitInfo::getInfo(), phase2tkutil::getITHistoId(), align::TrackerNameSpace::TPE::halfCylinderNumber(), TrackCleaner::isCompatible(), AlignmentParameterSelector::outsideDetIdRanges(), print(), TrackingNtuple::DetIdPixelOnly::push_back(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), and trackerHierarchy().

447  {
448  return int((id.rawId() >> pfVals_.bladeStartBit_) & pfVals_.bladeMask_);
449  }
const PixelEndcapValues pfVals_

◆ pxfDetId()

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_, l1ctLayer2EG_cff::id, module(), TrackerTopology::PixelEndcapValues::moduleMask_, TrackerTopology::PixelEndcapValues::moduleStartBit_, TrackerTopology::PixelEndcapValues::panelMask_, TrackerTopology::PixelEndcapValues::panelStartBit_, pfVals_, PixelSubdetector::PixelEndcap, side(), TrackerTopology::PixelEndcapValues::sideMask_, TrackerTopology::PixelEndcapValues::sideStartBit_, and DetId::Tracker.

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

465  {
467  uint32_t rawid = id.rawId();
472  return DetId(rawid);
473  }
const PixelEndcapValues pfVals_
unsigned int side(const DetId &id) const
unsigned int module(const DetId &id) const
Definition: DetId.h:17

◆ pxfDetIdDiskComparator()

std::pair<DetId, SameLayerComparator> TrackerTopology::pxfDetIdDiskComparator ( uint32_t  side,
uint32_t  disk 
) const
inline

Definition at line 536 of file TrackerTopology.h.

References pxfDetId(), and side().

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

◆ pxfDisk()

unsigned int TrackerTopology::pxfDisk ( const DetId id) const
inline

Definition at line 446 of file TrackerTopology.h.

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

Referenced by FWTGeoRecoGeometryESProducer::addPixelForwardGeometry(), TrackerAlignmentLevelBuilder::addPXEDetUnitInfo(), SiPixelDigiValid::analyze(), SiPixelVCalDB::analyze(), SiPixelLorentzAngleDB::analyze(), SiPixelRecHitsValid::analyze(), SiPixelVCalReader::analyze(), SiPixelGenErrorDBObjectUploader::analyze(), SiPixel2DTemplateDBObjectUploader::analyze(), SiPixelTemplateDBObjectUploader::analyze(), SiPixelErrorEstimation::analyze(), TrackerTreeGenerator::analyze(), PixelBaryCentreAnalyzer::analyze(), CosmicRateAnalyzer::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiPixelLorentzAnglePCLWorker::analyze(), DMRChecker::analyze(), PixelInactiveAreaFinder::badAdjecentDetsEndcap(), Phase1PixelMaps::bookForwardBins(), PixelTopologyMap::buildTopologyMaps(), TrackingLayer::createFromDetId(), PixelRegions::detIdToPixelId(), PixelInactiveAreaFinder::detInfo(), SiPixelCoordinates::disk(), Phase1PixelMaps::fill(), SiPixelRecHitsValid::fillForward(), Phase1PixelMaps::fillForwardBin(), 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(), getITPixelLayerNumber(), GlobalMuonRefitter::getRidOfSelectStationHits(), PixelInactiveAreaFinder::getSpan(), TrackTransformerForGlobalCosmicMuons::getTransientRecHits(), align::TrackerNameSpace::TPE::halfDiskNumber(), GeometricSearchTracker::idToLayer(), TrackCleaner::isCompatible(), layer(), SeedFinderSelector::Layer_tuple(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), SeedingLayerSetsBuilder::makeSeedingLayerSetsHitsforFastSim(), TrajectoryManager::makeSinglePSimHit(), HitComparatorByRadius::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), Phase2TrackerDigitizerAlgorithm::pixel_inefficiency(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), print(), 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_

◆ pxfModule()

unsigned int TrackerTopology::pxfModule ( const DetId id) const
inline

Definition at line 163 of file TrackerTopology.h.

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

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

163  {
164  return int((id.rawId() >> pfVals_.moduleStartBit_) & pfVals_.moduleMask_);
165  }
const PixelEndcapValues pfVals_

◆ pxfPanel()

unsigned int TrackerTopology::pxfPanel ( const DetId id) const
inline

Definition at line 450 of file TrackerTopology.h.

References createfilelist::int, 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(), TrackerTreeGenerator::analyze(), PixelBaryCentreAnalyzer::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiPixelLorentzAnglePCLWorker::analyze(), PixelInactiveAreaFinder::detInfo(), SiPixelRecHitsValid::fillForward(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), Phase1PixelROCMaps::findDetCoordinates(), SiPixelTrackResidualSource::getepixrococcupancyontrk(), HitInfo::getInfo(), TrackCleaner::isCompatible(), HitComparatorByRadius::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), SiPixelCoordinates::panel(), align::TrackerNameSpace::TPE::panelNumber(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), print(), 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_

◆ pxfSide()

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(), CosmicRateAnalyzer::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiPixelLorentzAnglePCLWorker::analyze(), DMRChecker::analyze(), Phase1PixelMaps::bookForwardBins(), AlignmentPI::TkAlBarycenters::computeBarycenters(), TrackingLayer::createFromDetId(), AlignmentTrackSelector::detailedHitsCheck(), PixelRegions::detIdToPixelId(), align::TrackerNameSpace::TPE::endcapNumber(), Phase1PixelMaps::fill(), Phase1PixelMaps::fillForwardBin(), 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(), getITPixelLayerNumber(), GeometricSearchTracker::idToLayer(), TrackCleaner::isCompatible(), SeedFinderSelector::Layer_tuple(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), SeedingLayerSetsBuilder::makeSeedingLayerSetsHitsforFastSim(), AlignmentParameterSelector::outsideDetIdRanges(), Phase2TrackerDigitizerAlgorithm::pixel_inefficiency(), print(), NearbyPixelClustersAnalyzer::setTopoInfo(), TrackerOfflineValidation::setUpTreeMembers(), SiPixelCoordinates::side(), SiPixelTopoFinder::side(), side(), ResidualRefitting::StoreTrackerRecHits(), and trackerHierarchy().

192 { return ((id.rawId() >> pfVals_.sideStartBit_) & pfVals_.sideMask_); }
const PixelEndcapValues pfVals_

◆ side()

unsigned int TrackerTopology::side ( const DetId id) const

Definition at line 28 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pxfSide(), SiStripSubdetector::TEC, tecSide(), SiStripSubdetector::TIB, SiStripSubdetector::TID, tidSide(), and SiStripSubdetector::TOB.

Referenced by tmtt::StubKiller::addDeadLayerModulesToDeadModuleList(), FWTGeoRecoGeometryESProducer::addPixelForwardGeometry(), MCMisalignmentScaler::analyze(), MkFitSeedConverter::convertSeeds(), MkFitGeometryESProducer::fillShapeAndPlacement(), MTVHistoProducerAlgoForTracker::getSeedingLayerSetBin(), HLTPixelActivityFilter::hltFilter(), tmtt::StubKiller::killStub(), SiStripDetCabling::layerSearch(), TrackerTopology::SameLayerComparator::operator()(), print(), SiPixelFakeLorentzAngleESSource::produce(), TrackingNtuple::DetIdCommon::push_back(), pxfDetId(), pxfDetIdDiskComparator(), l1tVertexFinder::Stub::setModuleInfo(), reco::modules::TrackerTrackHitFilter::sideFromId(), APVGain::subdetectorSide(), tecDetId(), tecDetIdWheelComparator(), tidDetId(), tidDetIdWheelComparator(), and tmtt::TrackerModule::TrackerModule().

28  {
29  uint32_t subdet = id.subdetId();
30  if (subdet == PixelSubdetector::PixelBarrel)
31  return 0;
32  if (subdet == PixelSubdetector::PixelEndcap)
33  return pxfSide(id);
34  if (subdet == SiStripSubdetector::TIB)
35  return 0;
36  if (subdet == SiStripSubdetector::TID)
37  return tidSide(id);
38  if (subdet == SiStripSubdetector::TOB)
39  return 0;
40  if (subdet == SiStripSubdetector::TEC)
41  return tecSide(id);
42 
43  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::side";
44  return 0;
45 }
unsigned int tidSide(const DetId &id) const
unsigned int tecSide(const DetId &id) const
unsigned int pxfSide(const DetId &id) const

◆ stack()

uint32_t TrackerTopology::stack ( const DetId id) const

Definition at line 104 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, SiStripSubdetector::TEC, tecStack(), SiStripSubdetector::TIB, tibStack(), SiStripSubdetector::TID, tidStack(), SiStripSubdetector::TOB, and tobStack().

Referenced by TrackerGeomBuilderFromGeometricDet::buildGeomDet(), l1tVertexFinder::InputData::InputData(), TTStubAssociator< T >::produce(), TTStubBuilder< T >::produce(), TrackingNtuple::DetIdPhase2OTOnly::push_back(), VectorHitBuilderAlgorithm::run(), and tmtt::TrackerModule::TrackerModule().

104  {
105  uint32_t subdet = id.subdetId();
106  if (subdet == PixelSubdetector::PixelBarrel)
107  return 0;
108  if (subdet == PixelSubdetector::PixelEndcap)
109  return 0;
110  if (subdet == SiStripSubdetector::TIB)
111  return tibStack(id);
112  if (subdet == SiStripSubdetector::TID)
113  return tidStack(id);
114  if (subdet == SiStripSubdetector::TOB)
115  return tobStack(id);
116  if (subdet == SiStripSubdetector::TEC)
117  return tecStack(id);
118 
119  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::stack";
120 }
uint32_t tidStack(const DetId &id) const
uint32_t tibStack(const DetId &id) const
uint32_t tobStack(const DetId &id) const
uint32_t tecStack(const DetId &id) const

◆ tecDetId()

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 module(), TrackerTopology::TECValues::moduleMask_, TrackerTopology::TECValues::moduleStartBit_, TrackerTopology::TECValues::petal_fw_bwMask_, TrackerTopology::TECValues::petal_fw_bwStartBit_, TrackerTopology::TECValues::petalMask_, TrackerTopology::TECValues::petalStartBit_, relativeConstraints::ring, TrackerTopology::TECValues::ringMask_, TrackerTopology::TECValues::ringStartBit_, side(), TrackerTopology::TECValues::sideMask_, TrackerTopology::TECValues::sideStartBit_, TrackerTopology::TECValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, SiStripSubdetector::TEC, tecVals_, DetId::Tracker, makeMuonMisalignmentScenario::wheel, 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

◆ tecDetIdWheelComparator()

std::pair<DetId, SameLayerComparator> TrackerTopology::tecDetIdWheelComparator ( uint32_t  side,
uint32_t  wheel 
) const
inline

Definition at line 540 of file TrackerTopology.h.

References side(), tecDetId(), and makeMuonMisalignmentScenario::wheel.

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

◆ tecGlued()

uint32_t TrackerTopology::tecGlued ( const DetId id) const
inline

Definition at line 342 of file TrackerTopology.h.

References mathSSE::return(), TrackerTopology::TECValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, and tecVals_.

Referenced by glued(), 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_
return((rh ^ lh) &mask)

◆ tecIsBackPetal()

bool TrackerTopology::tecIsBackPetal ( const DetId id) const
inline

◆ tecIsDoubleSide()

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

◆ tecIsFrontPetal()

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

◆ tecIsRPhi()

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

◆ tecIsStereo()

bool TrackerTopology::tecIsStereo ( const DetId id) const
inline

◆ tecIsZMinusSide()

bool TrackerTopology::tecIsZMinusSide ( const DetId id) const
inline

◆ tecIsZPlusSide()

bool TrackerTopology::tecIsZPlusSide ( const DetId id) const
inline

◆ tecLower()

uint32_t TrackerTopology::tecLower ( const DetId id) const
inline

Definition at line 295 of file TrackerTopology.h.

References tecStereo().

Referenced by isLower(), and lower().

295 { return tecStereo(id); }
uint32_t tecStereo(const DetId &id) const

◆ tecModule()

unsigned int TrackerTopology::tecModule ( const DetId id) const
inline

◆ tecOrder()

unsigned int TrackerTopology::tecOrder ( const DetId id) const
inline

◆ tecPartnerDetId()

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

Referenced by partnerDetId().

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

◆ tecPetalInfo()

std::vector<unsigned int> TrackerTopology::tecPetalInfo ( const DetId id) const
inline

◆ tecPetalNumber()

unsigned int TrackerTopology::tecPetalNumber ( const DetId id) const
inline

◆ tecRing()

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(), SiStripHitEfficiencyWorker::fillForTraj(), 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(), TrajectoryManager::makeSinglePSimHit(), moduleGeometry(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), TrackingNtuple::DetIdOTCommon::parse(), print(), 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_

◆ tecRPhi()

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 isRPhi(), 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_

◆ tecSide()

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(), SiStripGainsPCLWorker::checkBookAPVColls(), AlignmentPI::TkAlBarycenters::computeBarycenters(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::TrackerNameSpace::TEC::endcapNumber(), SiStripPI::fillBCArrays(), SiStripMonitorTrack::fillControlViewHistos(), SiStripHitEfficiencyWorker::fillForTraj(), AlignmentPI::topolInfo::fillGeometryInfo(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), SiStripPI::fillTotalComponents(), TrackerOfflineValidationSummary::fillTree(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), 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(), print(), SiStripTrackerMapCreator::printBadModuleList(), SiStripTrackerMapCreator::printTopModules(), SiStripFolderOrganizer::setLayerFolder(), SiStripDB2Tree::setTopoInfo(), SiStripCondVisualizer::setTopoInfo(), TrackerOfflineValidation::setUpTreeMembers(), side(), APVGain::subdetectorPlane(), tecIsZMinusSide(), trackerHierarchy(), and LaserDQM::trackerStatistics().

184 { return ((id.rawId() >> tecVals_.sideStartBit_) & tecVals_.sideMask_); }
const TECValues tecVals_

◆ tecStack()

uint32_t TrackerTopology::tecStack ( const DetId id) const
inline

Definition at line 361 of file TrackerTopology.h.

References tecGlued().

Referenced by stack().

361 { return tecGlued(id); }
uint32_t tecGlued(const DetId &id) const

◆ tecStereo()

uint32_t TrackerTopology::tecStereo ( const DetId id) const
inline

◆ tecUpper()

uint32_t TrackerTopology::tecUpper ( const DetId id) const
inline

Definition at line 334 of file TrackerTopology.h.

References tecRPhi().

Referenced by isUpper(), and upper().

334 { return tecRPhi(id); }
uint32_t tecRPhi(const DetId &id) const

◆ tecWheel()

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(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), SiStripDigitizerAlgorithm::digitize(), align::TrackerNameSpace::TEC::diskNumber(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripPI::fillBCArrays(), AlignmentPI::topolInfo::fillGeometryInfo(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), SiStripPI::fillTotalComponents(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), 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(), TrackTransformerForGlobalCosmicMuons::getTransientRecHits(), GeometricSearchTracker::idToLayer(), layer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), TkLayerMap::layerSearch(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), print(), PreMixingSiStripWorker::put(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), SiStripDB2Tree::setTopoInfo(), SiStripCondVisualizer::setTopoInfo(), 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_

◆ tibDetId()

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 layer(), TrackerTopology::TIBValues::layerMask_, TrackerTopology::TIBValues::layerStartBit_, module(), TrackerTopology::TIBValues::moduleMask_, TrackerTopology::TIBValues::moduleStartBit_, TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIBValues::sterStartBit_, str, 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 layer(const DetId &id) const
unsigned int module(const DetId &id) const
const TIBValues tibVals_
Definition: DetId.h:17
#define str(s)

◆ tibDetIdLayerComparator()

std::pair<DetId, SameLayerComparator> TrackerTopology::tibDetIdLayerComparator ( uint32_t  layer) const
inline

Definition at line 544 of file TrackerTopology.h.

References layer(), and 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

◆ tibGlued()

uint32_t TrackerTopology::tibGlued ( const DetId id) const
inline

Definition at line 337 of file TrackerTopology.h.

References mathSSE::return(), TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIBValues::sterStartBit_, and tibVals_.

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

337  {
338  uint32_t testId = (id.rawId() >> tibVals_.sterStartBit_) & tibVals_.sterMask_;
339  return (testId == 0) ? 0 : (id.rawId() - testId);
340  }
return((rh ^ lh) &mask)
const TIBValues tibVals_

◆ tibIsDoubleSide()

bool TrackerTopology::tibIsDoubleSide ( const DetId id) const
inline

◆ tibIsExternalString()

bool TrackerTopology::tibIsExternalString ( const DetId id) const
inline

◆ tibIsInternalString()

bool TrackerTopology::tibIsInternalString ( const DetId id) const
inline

◆ tibIsRPhi()

bool TrackerTopology::tibIsRPhi ( const DetId id) const
inline

◆ tibIsStereo()

bool TrackerTopology::tibIsStereo ( const DetId id) const
inline

◆ tibIsZMinusSide()

bool TrackerTopology::tibIsZMinusSide ( const DetId id) const
inline

◆ tibIsZPlusSide()

bool TrackerTopology::tibIsZPlusSide ( const DetId id) const
inline

◆ tibLayer()

unsigned int TrackerTopology::tibLayer ( const DetId id) const
inline

Definition at line 150 of file TrackerTopology.h.

References createfilelist::int, 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(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), SiStripDigitizerAlgorithm::digitize(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripPI::fillBCArrays(), AlignmentPI::topolInfo::fillGeometryInfo(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), SiStripLorentzAngleDQM::fillMEsForLayer(), SiStripBackPlaneCorrectionDQM::fillMEsForLayer(), SiStripPI::fillTotalComponents(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), 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(), TrackTransformerForGlobalCosmicMuons::getTransientRecHits(), TkLayerMap::getXY_TIB(), align::TrackerNameSpace::TIB::halfShellNumber(), GeometricSearchTracker::idToLayer(), TrajectoryAtInvalidHit::isDoubleSided(), layer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), LA_Filler_Fitter::layerLabel(), align::TrackerNameSpace::TIB::layerNumber(), TkLayerMap::layerSearch(), TrajectoryManager::makeSinglePSimHit(), moduleGeometry(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), print(), PreMixingSiStripWorker::put(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), SiStripDB2Tree::setTopoInfo(), SiStripCondVisualizer::setTopoInfo(), 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_

◆ tibLower()

uint32_t TrackerTopology::tibLower ( const DetId id) const
inline

Definition at line 292 of file TrackerTopology.h.

References tibStereo().

Referenced by isLower(), and lower().

292 { return tibStereo(id); }
uint32_t tibStereo(const DetId &id) const

◆ tibModule()

unsigned int TrackerTopology::tibModule ( const DetId id) const
inline

◆ tibOrder()

unsigned int TrackerTopology::tibOrder ( const DetId id) const
inline

◆ tibPartnerDetId()

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

Referenced by partnerDetId().

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

◆ tibRPhi()

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 isRPhi(), 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_

◆ tibSide()

unsigned int TrackerTopology::tibSide ( const DetId id) const
inline

◆ tibStack()

uint32_t TrackerTopology::tibStack ( const DetId id) const
inline

Definition at line 358 of file TrackerTopology.h.

References tibGlued().

Referenced by stack().

358 { return tibGlued(id); }
uint32_t tibGlued(const DetId &id) const

◆ tibStereo()

uint32_t TrackerTopology::tibStereo ( const DetId id) const
inline

◆ tibString()

unsigned int TrackerTopology::tibString ( const DetId id) const
inline

◆ tibStringInfo()

std::vector<unsigned int> TrackerTopology::tibStringInfo ( const DetId id) const
inline

◆ tibUpper()

uint32_t TrackerTopology::tibUpper ( const DetId id) const
inline

Definition at line 331 of file TrackerTopology.h.

References tibRPhi().

Referenced by isUpper(), and upper().

331 { return tibRPhi(id); }
uint32_t tibRPhi(const DetId &id) const

◆ tidDetId()

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 module(), TrackerTopology::TIDValues::module_fw_bwMask_, TrackerTopology::TIDValues::module_fw_bwStartBit_, TrackerTopology::TIDValues::moduleMask_, TrackerTopology::TIDValues::moduleStartBit_, relativeConstraints::ring, TrackerTopology::TIDValues::ringMask_, TrackerTopology::TIDValues::ringStartBit_, side(), TrackerTopology::TIDValues::sideMask_, TrackerTopology::TIDValues::sideStartBit_, TrackerTopology::TIDValues::sterMask_, TrackerTopology::TIDValues::sterStartBit_, SiStripSubdetector::TID, tidVals_, DetId::Tracker, makeMuonMisalignmentScenario::wheel, 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_

◆ tidDetIdWheelComparator()

std::pair<DetId, SameLayerComparator> TrackerTopology::tidDetIdWheelComparator ( uint32_t  side,
uint32_t  wheel 
) const
inline

Definition at line 548 of file TrackerTopology.h.

References side(), tidDetId(), and makeMuonMisalignmentScenario::wheel.

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

◆ tidGlued()

uint32_t TrackerTopology::tidGlued ( const DetId id) const
inline

Definition at line 352 of file TrackerTopology.h.

References mathSSE::return(), TrackerTopology::TIDValues::sterMask_, TrackerTopology::TIDValues::sterStartBit_, and tidVals_.

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

352  {
353  uint32_t testId = (id.rawId() >> tidVals_.sterStartBit_) & tidVals_.sterMask_;
354  return (testId == 0) ? 0 : (id.rawId() - testId);
355  }
return((rh ^ lh) &mask)
const TIDValues tidVals_

◆ tidIsBackRing()

bool TrackerTopology::tidIsBackRing ( const DetId id) const
inline

◆ tidIsDoubleSide()

bool TrackerTopology::tidIsDoubleSide ( const DetId id) const
inline

◆ tidIsFrontRing()

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

◆ tidIsRPhi()

bool TrackerTopology::tidIsRPhi ( const DetId id) const
inline

◆ tidIsStereo()

bool TrackerTopology::tidIsStereo ( const DetId id) const
inline

◆ tidIsZMinusSide()

bool TrackerTopology::tidIsZMinusSide ( const DetId id) const
inline

◆ tidIsZPlusSide()

bool TrackerTopology::tidIsZPlusSide ( const DetId id) const
inline

◆ tidLower()

uint32_t TrackerTopology::tidLower ( const DetId id) const
inline

Definition at line 293 of file TrackerTopology.h.

References tidStereo().

Referenced by isLower(), and lower().

293 { return tidStereo(id); }
uint32_t tidStereo(const DetId &id) const

◆ tidModule()

unsigned int TrackerTopology::tidModule ( const DetId id) const
inline

◆ tidModuleInfo()

std::vector<unsigned int> TrackerTopology::tidModuleInfo ( const DetId id) const
inline

◆ tidOrder()

unsigned int TrackerTopology::tidOrder ( const DetId id) const
inline

◆ tidPartnerDetId()

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

Referenced by partnerDetId().

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_

◆ tidRing()

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(), SiStripHitEfficiencyWorker::fillForTraj(), 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(), TrajectoryManager::makeSinglePSimHit(), moduleGeometry(), ShallowClustersProducer::moduleVars::moduleVars(), L1TrackSelectionProducer::TTTrackNPSStubsMinSelector::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), TrackingNtuple::DetIdOTCommon::parse(), print(), L1TrackJetProducer::produce(), L1TrackFastJetProducer::produce(), L1TrackJetEmulationProducer::produce(), L1FastTrackingJetProducer::produce(), TTStubBuilder< T >::produce(), L1FPGATrackProducer::produce(), align::TrackerNameSpace::TID::ringNumber(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), tt::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_

◆ tidRPhi()

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 isRPhi(), 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_

◆ tidSide()

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(), SiStripGainFromData::algoBeginJob(), SiStripDigiValid::analyze(), HitEff::analyze(), TrackerTreeGenerator::analyze(), SiStripGainsPCLWorker::checkBookAPVColls(), AlignmentPI::TkAlBarycenters::computeBarycenters(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::TrackerNameSpace::TID::endcapNumber(), SiStripPI::fillBCArrays(), SiStripHitEfficiencyWorker::fillForTraj(), AlignmentPI::topolInfo::fillGeometryInfo(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), SiStripPI::fillTotalComponents(), TrackerOfflineValidationSummary::fillTree(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), phase2tkutil::getOTHistoId(), getOTLayerNumber(), 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(), print(), SiStripTrackerMapCreator::printBadModuleList(), SiStripTrackerMapCreator::printTopModules(), SiStripFolderOrganizer::setLayerFolder(), SiStripDB2Tree::setTopoInfo(), SiStripCondVisualizer::setTopoInfo(), TrackerOfflineValidation::setUpTreeMembers(), side(), ResidualRefitting::StoreTrackerRecHits(), APVGain::subdetectorPlane(), tidIsZMinusSide(), and trackerHierarchy().

190 { return ((id.rawId() >> tidVals_.sideStartBit_) & tidVals_.sideMask_); }
const TIDValues tidVals_

◆ tidStack()

uint32_t TrackerTopology::tidStack ( const DetId id) const
inline

Definition at line 359 of file TrackerTopology.h.

References tidGlued().

Referenced by stack().

359 { return tidGlued(id); }
uint32_t tidGlued(const DetId &id) const

◆ tidStereo()

uint32_t TrackerTopology::tidStereo ( const DetId id) const
inline

◆ tidUpper()

uint32_t TrackerTopology::tidUpper ( const DetId id) const
inline

Definition at line 332 of file TrackerTopology.h.

References tidRPhi().

Referenced by isUpper(), and upper().

332 { return tidRPhi(id); }
uint32_t tidRPhi(const DetId &id) const

◆ tidWheel()

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(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), SiStripDigitizerAlgorithm::digitize(), align::TrackerNameSpace::TID::diskNumber(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripPI::fillBCArrays(), AlignmentPI::topolInfo::fillGeometryInfo(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), SiStripPI::fillTotalComponents(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), phase2tkutil::getOTHistoId(), getOTLayerNumber(), SiStripMiscalibrate::getRegionsFromDetId(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripHistoId::getSubdetid(), TrackTransformerForGlobalCosmicMuons::getTransientRecHits(), GeometricSearchTracker::idToLayer(), tmtt::StubKiller::killStub(), layer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), tt::Setup::layerId(), TkLayerMap::layerSearch(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), print(), TTStubBuilder< T >::produce(), PreMixingSiStripWorker::put(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), tt::SensorModule::SensorModule(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), l1tVertexFinder::Stub::setModuleInfo(), SiStripDB2Tree::setTopoInfo(), SiStripCondVisualizer::setTopoInfo(), TrackerOfflineValidation::setUpTreeMembers(), tmtt::StubFEWindows::storedWindowSize(), ResidualRefitting::StoreTrackerRecHits(), APVGain::subdetectorPlane(), TrackerDpgAnalysis::toStringName(), trackerHierarchy(), tmtt::TrackerModule::TrackerModule(), and TrackerAlignableId::typeAndLayerFromDetId().

201  {
202  return ((id.rawId() >> tidVals_.wheelStartBit_) & tidVals_.wheelMask_);
203  }
const TIDValues tidVals_

◆ tobDetId()

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 layer(), TrackerTopology::TOBValues::layerMask_, TrackerTopology::TOBValues::layerStartBit_, module(), 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 layer(const DetId &id) const
unsigned int module(const DetId &id) const
const TOBValues tobVals_
Definition: DetId.h:17

◆ tobDetIdLayerComparator()

std::pair<DetId, SameLayerComparator> TrackerTopology::tobDetIdLayerComparator ( uint32_t  layer) const
inline

Definition at line 552 of file TrackerTopology.h.

References layer(), and 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

◆ tobGlued()

uint32_t TrackerTopology::tobGlued ( const DetId id) const
inline

Definition at line 347 of file TrackerTopology.h.

References mathSSE::return(), TrackerTopology::TOBValues::sterMask_, TrackerTopology::TOBValues::sterStartBit_, and tobVals_.

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

347  {
348  uint32_t testId = (id.rawId() >> tobVals_.sterStartBit_) & tobVals_.sterMask_;
349  return (testId == 0) ? 0 : (id.rawId() - testId);
350  }
return((rh ^ lh) &mask)
const TOBValues tobVals_

◆ tobIsDoubleSide()

bool TrackerTopology::tobIsDoubleSide ( const DetId id) const
inline

◆ tobIsRPhi()

bool TrackerTopology::tobIsRPhi ( const DetId id) const
inline

◆ tobIsStereo()

bool TrackerTopology::tobIsStereo ( const DetId id) const
inline

◆ tobIsZMinusSide()

bool TrackerTopology::tobIsZMinusSide ( const DetId id) const
inline

◆ tobIsZPlusSide()

bool TrackerTopology::tobIsZPlusSide ( const DetId id) const
inline

◆ tobLayer()

unsigned int TrackerTopology::tobLayer ( const DetId id) const
inline

Definition at line 147 of file TrackerTopology.h.

References createfilelist::int, 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(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), SiStripDigitizerAlgorithm::digitize(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), l1tVertexFinder::VertexFinder::fastHisto(), SiStripPI::fillBCArrays(), AlignmentPI::topolInfo::fillGeometryInfo(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), SiStripLorentzAngleDQM::fillMEsForLayer(), SiStripBackPlaneCorrectionDQM::fillMEsForLayer(), SiStripPI::fillTotalComponents(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripFakeAPVParameters::getIndex(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripGainCosmicCalculator::getNewObject(), SiStripCalibLorentzAngle::getNewObject(), getOTLayerNumber(), SiStripMiscalibrate::getRegionsFromDetId(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripBaseCondObjDQM::getStringNameAndId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripHistoId::getSubdetid(), TrackTransformerForGlobalCosmicMuons::getTransientRecHits(), TkLayerMap::getXY_TOB(), GeometricSearchTracker::idToLayer(), TrajectoryAtInvalidHit::isDoubleSided(), layer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), LA_Filler_Fitter::layerLabel(), align::TrackerNameSpace::TOB::layerNumber(), TkLayerMap::layerSearch(), TrajectoryManager::makeSinglePSimHit(), TkGluedMeasurementDet::measurements(), moduleGeometry(), ShallowClustersProducer::moduleVars::moduleVars(), L1TrackSelectionProducer::TTTrackNPSStubsMinSelector::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), print(), L1TrackJetProducer::produce(), L1TrackFastJetProducer::produce(), L1FastTrackingJetProducer::produce(), L1TrackJetEmulationProducer::produce(), PreMixingSiStripWorker::put(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), SiStripDB2Tree::setTopoInfo(), SiStripCondVisualizer::setTopoInfo(), 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_

◆ tobLower()

uint32_t TrackerTopology::tobLower ( const DetId id) const
inline

Definition at line 294 of file TrackerTopology.h.

References tobStereo().

Referenced by isLower(), and lower().

294 { return tobStereo(id); }
uint32_t tobStereo(const DetId &id) const

◆ tobModule()

unsigned int TrackerTopology::tobModule ( const DetId id) const
inline

Definition at line 166 of file TrackerTopology.h.

References TrackerTopology::TOBValues::moduleMask_, TrackerTopology::TOBValues::moduleStartBit_, and tobVals_.

Referenced by FWTGeoRecoGeometryESProducer::addTOBGeometry(), SiStripDigiValid::analyze(), SiPixelErrorEstimation::analyze(), TrackerTreeGenerator::analyze(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), AlignmentPI::topolInfo::fillGeometryInfo(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), TkLayerMap::getXY_TOB(), module(), align::TrackerNameSpace::TOB::moduleNumber(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), print(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), TrackerDpgAnalysis::toStringName(), and trackerHierarchy().

166  {
167  return ((id.rawId() >> tobVals_.moduleStartBit_) & tobVals_.moduleMask_);
168  }
const TOBValues tobVals_

◆ tobPartnerDetId()

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

Referenced by partnerDetId().

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

◆ tobRod()

unsigned int TrackerTopology::tobRod ( const DetId id) const
inline

◆ tobRodInfo()

std::vector<unsigned int> TrackerTopology::tobRodInfo ( const DetId id) const
inline

◆ tobRPhi()

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 isRPhi(), 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_

◆ tobSide()

unsigned int TrackerTopology::tobSide ( const DetId id) const
inline

◆ tobStack()

uint32_t TrackerTopology::tobStack ( const DetId id) const
inline

Definition at line 360 of file TrackerTopology.h.

References tobGlued().

Referenced by stack().

360 { return tobGlued(id); }
uint32_t tobGlued(const DetId &id) const

◆ tobStereo()

uint32_t TrackerTopology::tobStereo ( const DetId id) const
inline

◆ tobUpper()

uint32_t TrackerTopology::tobUpper ( const DetId id) const
inline

Definition at line 333 of file TrackerTopology.h.

References tobRPhi().

Referenced by isUpper(), and upper().

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

◆ upper()

uint32_t TrackerTopology::upper ( const DetId id) const

Definition at line 140 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, SiStripSubdetector::TEC, tecUpper(), SiStripSubdetector::TIB, tibUpper(), SiStripSubdetector::TID, tidUpper(), SiStripSubdetector::TOB, and tobUpper().

140  {
141  uint32_t subdet = id.subdetId();
142  if (subdet == PixelSubdetector::PixelBarrel)
143  return 0;
144  if (subdet == PixelSubdetector::PixelEndcap)
145  return 0;
146  if (subdet == SiStripSubdetector::TIB)
147  return tibUpper(id);
148  if (subdet == SiStripSubdetector::TID)
149  return tidUpper(id);
150  if (subdet == SiStripSubdetector::TOB)
151  return tobUpper(id);
152  if (subdet == SiStripSubdetector::TEC)
153  return tecUpper(id);
154 
155  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::upper";
156 }
uint32_t tidUpper(const DetId &id) const
uint32_t tobUpper(const DetId &id) const
uint32_t tecUpper(const DetId &id) const
uint32_t tibUpper(const DetId &id) const

Member Data Documentation

◆ bits_per_field

const BitmaskAndSubdet TrackerTopology::bits_per_field[DETID_FIELDS_MAX]
private

Definition at line 589 of file TrackerTopology.h.

Referenced by getField(), and hasField().

◆ pbVals_

const PixelBarrelValues TrackerTopology::pbVals_
private

Definition at line 576 of file TrackerTopology.h.

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

◆ pfVals_

const PixelEndcapValues TrackerTopology::pfVals_
private

◆ tecVals_

const TECValues TrackerTopology::tecVals_
private

◆ tibVals_

const TIBValues TrackerTopology::tibVals_
private

◆ tidVals_

const TIDValues TrackerTopology::tidVals_
private

◆ tobVals_

const TOBValues TrackerTopology::tobVals_
private