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

uint32_t doubleSensor (const DetId &id) const
 
uint32_t first (const DetId &id) const
 
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 isDoubleSens (const DetId &id) const
 
bool isFirst (const DetId &id) const
 
bool isLower (const DetId &id) const
 
bool isRPhi (const DetId &id) const
 
bool isSecond (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
 
uint32_t pixDouble (const DetId &id) const
 
uint32_t pixFirst (const DetId &id) const
 
DetId pixPartnerDetId (const DetId &id) const
 
uint32_t pixSecond (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
 
uint32_t second (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

Examples:
/tmp/cmsbuild/jenkins/workspace/cmssw-doxygen/cmsdoxy/TMP/CMSSW_14_0_7_patch2/src/CalibTracker/SiStripLorentzAngle/interface/SiStripLorentzAngleCalibrationHelpers.h.

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

◆ doubleSensor()

uint32_t TrackerTopology::doubleSensor ( const DetId id) const

Definition at line 122 of file TrackerTopology.cc.

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

Referenced by TrackerGeomBuilderFromGeometricDet::buildGeomDet().

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

◆ first()

uint32_t TrackerTopology::first ( const DetId id) const

Definition at line 140 of file TrackerTopology.cc.

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

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

◆ getField()

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

◆ getITPixelLayerNumber()

int TrackerTopology::getITPixelLayerNumber ( const DetId id) const

Definition at line 554 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().

554  {
555  int layer = -1;
556 
557  if (id.det() == DetId::Tracker) {
558  if (id.subdetId() == PixelSubdetector::PixelBarrel) {
559  layer = pxbLayer(id);
560  } else if (id.subdetId() == PixelSubdetector::PixelEndcap) {
561  layer = 100 * pxfSide(id) + pxfDisk(id);
562  } else {
563  edm::LogInfo("TrackerTopology") << ">>> Invalid subdetId() ";
564  }
565  }
566  return layer;
567 }
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 539 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().

539  {
540  int layer = -1;
541 
542  if (id.det() == DetId::Tracker) {
543  if (id.subdetId() == SiStripSubdetector::TOB) {
544  layer = tobLayer(id);
545  } else if (id.subdetId() == SiStripSubdetector::TID) {
546  layer = 100 * tidSide(id) + tidWheel(id);
547  } else {
548  edm::LogInfo("TrackerTopology") << ">>> Invalid subdetId() ";
549  }
550  }
551  return layer;
552 }
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 HitResol::analyze(), 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

◆ isDoubleSens()

bool TrackerTopology::isDoubleSens ( const DetId id) const

Definition at line 250 of file TrackerTopology.cc.

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

250  {
251  uint32_t subdet = id.subdetId();
252  if (subdet == PixelSubdetector::PixelBarrel)
253  return pixDouble(id) != 0;
254  if (subdet == PixelSubdetector::PixelEndcap)
255  return false;
256  if (subdet == SiStripSubdetector::TIB)
257  return false;
258  if (subdet == SiStripSubdetector::TID)
259  return false;
260  if (subdet == SiStripSubdetector::TOB)
261  return false;
262  if (subdet == SiStripSubdetector::TEC)
263  return false;
264 
265  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::isDoubleSens";
266  return false;
267 }
uint32_t pixDouble(const DetId &id) const

◆ isFirst()

bool TrackerTopology::isFirst ( const DetId id) const

Definition at line 307 of file TrackerTopology.cc.

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

Referenced by print().

307  {
308  uint32_t subdet = id.subdetId();
309  if (subdet == PixelSubdetector::PixelBarrel)
310  return pixFirst(id) != 0;
311  if (subdet == PixelSubdetector::PixelEndcap)
312  return false;
313  if (subdet == SiStripSubdetector::TIB)
314  return false;
315  if (subdet == SiStripSubdetector::TID)
316  return false;
317  if (subdet == SiStripSubdetector::TOB)
318  return false;
319  if (subdet == SiStripSubdetector::TEC)
320  return false;
321 
322  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::isFirst";
323  return false;
324 }
uint32_t pixFirst(const DetId &id) const

◆ isLower()

bool TrackerTopology::isLower ( const DetId id) const

Definition at line 269 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(), StubKiller::chooseModulesToKill(), 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().

269  {
270  uint32_t subdet = id.subdetId();
271  if (subdet == PixelSubdetector::PixelBarrel)
272  return false;
273  if (subdet == PixelSubdetector::PixelEndcap)
274  return false;
275  if (subdet == SiStripSubdetector::TIB)
276  return tibLower(id) != 0;
277  if (subdet == SiStripSubdetector::TID)
278  return tidLower(id) != 0;
279  if (subdet == SiStripSubdetector::TOB)
280  return tobLower(id) != 0;
281  if (subdet == SiStripSubdetector::TEC)
282  return tecLower(id) != 0;
283 
284  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::isLower";
285  return false;
286 }
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 231 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().

231  {
232  uint32_t subdet = id.subdetId();
233  if (subdet == PixelSubdetector::PixelBarrel)
234  return false;
235  if (subdet == PixelSubdetector::PixelEndcap)
236  return false;
237  if (subdet == SiStripSubdetector::TIB)
238  return tibRPhi(id) != 0;
239  if (subdet == SiStripSubdetector::TID)
240  return tidRPhi(id) != 0;
241  if (subdet == SiStripSubdetector::TOB)
242  return tobRPhi(id) != 0;
243  if (subdet == SiStripSubdetector::TEC)
244  return tecRPhi(id) != 0;
245 
246  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::isRPhi";
247  return false;
248 }
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

◆ isSecond()

bool TrackerTopology::isSecond ( const DetId id) const

Definition at line 326 of file TrackerTopology.cc.

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

Referenced by print().

326  {
327  uint32_t subdet = id.subdetId();
328  if (subdet == PixelSubdetector::PixelBarrel)
329  return pixSecond(id) != 0;
330  if (subdet == PixelSubdetector::PixelEndcap)
331  return false;
332  if (subdet == SiStripSubdetector::TIB)
333  return false;
334  if (subdet == SiStripSubdetector::TID)
335  return false;
336  if (subdet == SiStripSubdetector::TOB)
337  return false;
338  if (subdet == SiStripSubdetector::TEC)
339  return false;
340 
341  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::isSecond";
342  return false;
343 }
uint32_t pixSecond(const DetId &id) const

◆ isStereo()

bool TrackerTopology::isStereo ( const DetId id) const

Definition at line 212 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 HitResol::analyze(), SiStripCPEAnalyzer::analyze(), mkfit::convertHits(), MkFitSeedConverter::convertSeeds(), MkFitGeometryESProducer::fillShapeAndPlacement(), MkFitGeometry::mkFitLayerNumber(), print(), and TrackingNtuple::DetIdStripOnly::push_back().

212  {
213  uint32_t subdet = id.subdetId();
214  if (subdet == PixelSubdetector::PixelBarrel)
215  return false;
216  if (subdet == PixelSubdetector::PixelEndcap)
217  return false;
218  if (subdet == SiStripSubdetector::TIB)
219  return tibStereo(id) != 0;
220  if (subdet == SiStripSubdetector::TID)
221  return tidStereo(id) != 0;
222  if (subdet == SiStripSubdetector::TOB)
223  return tobStereo(id) != 0;
224  if (subdet == SiStripSubdetector::TEC)
225  return tecStereo(id) != 0;
226 
227  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::isStereo";
228  return false;
229 }
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 288 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().

288  {
289  uint32_t subdet = id.subdetId();
290  if (subdet == PixelSubdetector::PixelBarrel)
291  return false;
292  if (subdet == PixelSubdetector::PixelEndcap)
293  return false;
294  if (subdet == SiStripSubdetector::TIB)
295  return tibUpper(id) != 0;
296  if (subdet == SiStripSubdetector::TID)
297  return tidUpper(id) != 0;
298  if (subdet == SiStripSubdetector::TOB)
299  return tobUpper(id) != 0;
300  if (subdet == SiStripSubdetector::TEC)
301  return tecUpper(id) != 0;
302 
303  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::isUpper";
304  return false;
305 }
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
Examples:
/tmp/cmsbuild/jenkins/workspace/cmssw-doxygen/cmsdoxy/TMP/CMSSW_14_0_7_patch2/src/CalibTracker/SiStripLorentzAngle/interface/SiStripLorentzAngleCalibrationHelpers.h.

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 StubKiller::addDeadLayerModulesToDeadModuleList(), tmtt::StubKiller::addDeadLayerModulesToDeadModuleList(), TrackMerger::addSecondTrackHits(), TrackingNtuple::addStripMatchedHit(), OuterTrackerMonitorTrackingParticles::analyze(), SiPixelDynamicInefficiencyReader::analyze(), TrackingRecoMaterialAnalyser::analyze(), OuterTrackerMonitorTTCluster::analyze(), OuterTrackerMonitorTTStub::analyze(), SiPhase2OuterTrackerLorentzAngleWriter::analyze(), TestHits::analyze(), TestSmoothHits::analyze(), TestOutliers::analyze(), TestTrackHits::analyze(), SiStripCPEAnalyzer::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(), StubKiller::killStub(), 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(), siStripLACalibration::moduleLocationType(), SiStripLorentzAnglePCLMonitor::moduleLocationType(), TrackerTopology::SameLayerComparator::operator()(), SiStripTrackerMapCreator::paintTkMapFromAlarm(), SiPixelDigitizerAlgorithm::pixel_aging(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), CtfSpecialSeedGenerator::preliminaryCheck(), VectorHitBuilderAlgorithmBase::printCluster(), SiStripQuality::printDetInfo(), MuonReSeeder::produce(), reco::CentralityProducer::produce(), TPFastJetProducer::produce(), PixelClusterTagInfoProducer::produce(), TTStubBuilder< T >::produce(), DeepCoreSeedGenerator::produce(), TrackingNtuple::DetIdCommon::push_back(), pxbDetId(), pxbDetIdLayerComparator(), PixelCPEClusterRepair::Rule::recommend(), tt::SensorModule::ringId(), 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 176 of file TrackerTopology.cc.

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

176  {
177  uint32_t subdet = id.subdetId();
178  if (subdet == PixelSubdetector::PixelBarrel)
179  return 0;
180  if (subdet == PixelSubdetector::PixelEndcap)
181  return 0;
182  if (subdet == SiStripSubdetector::TIB)
183  return tibLower(id);
184  if (subdet == SiStripSubdetector::TID)
185  return tidLower(id);
186  if (subdet == SiStripSubdetector::TOB)
187  return tobLower(id);
188  if (subdet == SiStripSubdetector::TEC)
189  return tecLower(id);
190 
191  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::lower";
192 }
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(), and TrackingNtuple::DetIdCommon::push_back().

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

502  {
503  switch (id.subdetId()) {
509  switch (tidRing(id)) {
510  case 1:
512  case 2:
514  case 3:
516  }
519  switch (tecRing(id)) {
520  case 1:
522  case 2:
524  case 3:
526  case 4:
528  //generic function to return DetIds and boolean factors
529  case 5:
531  case 6:
533  case 7:
535  }
536  }
538 }
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 345 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pixPartnerDetId(), 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().

345  {
346  uint32_t subdet = id.subdetId();
347  if (subdet == PixelSubdetector::PixelBarrel)
348  return pixPartnerDetId(id);
349  if (subdet == PixelSubdetector::PixelEndcap)
350  return 0;
351  if (subdet == SiStripSubdetector::TIB)
352  return tibPartnerDetId(id);
353  if (subdet == SiStripSubdetector::TID)
354  return tidPartnerDetId(id);
355  if (subdet == SiStripSubdetector::TOB)
356  return tobPartnerDetId(id);
357  if (subdet == SiStripSubdetector::TEC)
358  return tecPartnerDetId(id);
359 
360  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::partnerDetId";
361  return 0;
362 }
DetId tibPartnerDetId(const DetId &id) const
DetId tidPartnerDetId(const DetId &id) const
DetId pixPartnerDetId(const DetId &id) const
uint32_t tecPartnerDetId(const DetId &id) const
DetId tobPartnerDetId(const DetId &id) const

◆ pixDouble()

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

Definition at line 378 of file TrackerTopology.h.

References TrackerTopology::PixelBarrelValues::doubleMask_, TrackerTopology::PixelBarrelValues::doubleStartBit_, pbVals_, and mathSSE::return().

Referenced by doubleSensor(), and isDoubleSens().

378  {
379  uint32_t testId = (id.rawId() >> pbVals_.doubleStartBit_) & pbVals_.doubleMask_;
380  return (testId == 0) ? 0 : (id.rawId() - testId);
381  }
return((rh ^ lh) &mask)
const PixelBarrelValues pbVals_

◆ pixFirst()

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

◆ pixPartnerDetId()

DetId TrackerTopology::pixPartnerDetId ( const DetId id) const
inline

Definition at line 392 of file TrackerTopology.h.

References TrackerTopology::PixelBarrelValues::doubleMask_, TrackerTopology::PixelBarrelValues::doubleStartBit_, pbVals_, and nano_mu_digi_cff::rawId.

Referenced by partnerDetId().

392  {
393  if (((id.rawId() >> pbVals_.doubleStartBit_) & pbVals_.doubleMask_) == 1) {
394  return DetId(id.rawId() + 1);
395  } else if (((id.rawId() >> pbVals_.doubleStartBit_) & pbVals_.doubleMask_) == 2) {
396  return DetId(id.rawId() - 1);
397  } else {
398  return DetId();
399  }
400  }
const PixelBarrelValues pbVals_
Definition: DetId.h:17

◆ pixSecond()

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

Definition at line 343 of file TrackerTopology.h.

References TrackerTopology::PixelBarrelValues::doubleMask_, TrackerTopology::PixelBarrelValues::doubleStartBit_, pbVals_, and nano_mu_digi_cff::rawId.

Referenced by isSecond(), and second().

343  {
344  if (((id.rawId() >> pbVals_.doubleStartBit_) & pbVals_.doubleMask_) == 2) {
345  return ((id.rawId() >> pbVals_.doubleStartBit_) & pbVals_.doubleMask_);
346  } else {
347  return 0;
348  }
349  }
const PixelBarrelValues pbVals_

◆ print()

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

Definition at line 364 of file TrackerTopology.cc.

References Exception, isFirst(), isLower(), isRPhi(), isSecond(), 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().

364  {
365  uint32_t subdet = id.subdetId();
366  std::stringstream strstr;
367 
368  if (subdet == PixelSubdetector::PixelBarrel) {
369  unsigned int theLayer = pxbLayer(id);
370  unsigned int theLadder = pxbLadder(id);
371  unsigned int theModule = pxbModule(id);
372  std::string typeUpgrade;
373  typeUpgrade = (isFirst(id)) ? "first" : typeUpgrade;
374  typeUpgrade = (isSecond(id)) ? "second" : typeUpgrade;
375  typeUpgrade = (isFirst(id) || isSecond(id)) ? typeUpgrade + " double" : "module";
376  strstr << "PixelBarrel"
377  << " Layer " << theLayer << " Ladder " << theLadder;
378  strstr << " Module for phase0 " << theModule;
379  strstr << " Module for phase2 " << theModule << " " << typeUpgrade;
380  strstr << " (" << id.rawId() << ")";
381  return strstr.str();
382  }
383 
384  if (subdet == PixelSubdetector::PixelEndcap) {
385  unsigned int theSide = pxfSide(id);
386  unsigned int theDisk = pxfDisk(id);
387  unsigned int theBlade = pxfBlade(id);
388  unsigned int thePanel = pxfPanel(id);
389  unsigned int theModule = pxfModule(id);
390  std::string side = (pxfSide(id) == 1) ? "-" : "+";
391  strstr << "PixelEndcap"
392  << " Side " << theSide << side << " Disk " << theDisk << " Blade " << theBlade << " Panel " << thePanel
393  << " Module " << theModule;
394  strstr << " (" << id.rawId() << ")";
395  return strstr.str();
396  }
397 
398  if (subdet == SiStripSubdetector::TIB) {
399  unsigned int theLayer = tibLayer(id);
400  std::vector<unsigned int> theString = tibStringInfo(id);
401  unsigned int theModule = tibModule(id);
404  side = (theString[0] == 1) ? "-" : "+";
405  part = (theString[1] == 1) ? "int" : "ext";
407  type = (isStereo(id)) ? "stereo" : type;
408  type = (isRPhi(id)) ? "r-phi" : type;
409  type = (isStereo(id) || isRPhi(id)) ? type + " glued" : "module";
410  std::string typeUpgrade;
411  typeUpgrade = (isLower(id)) ? "lower" : typeUpgrade;
412  typeUpgrade = (isUpper(id)) ? "upper" : typeUpgrade;
413  typeUpgrade = (isUpper(id) || isLower(id)) ? typeUpgrade + " stack" : "module";
414  strstr << "TIB" << side << " Layer " << theLayer << " " << part << " String " << theString[2];
415  strstr << " Module for phase0 " << theModule << " " << type;
416  strstr << " Module for phase2 " << theModule << " " << typeUpgrade;
417  strstr << " (" << id.rawId() << ")";
418  return strstr.str();
419  }
420 
421  if (subdet == SiStripSubdetector::TID) {
422  unsigned int theSide = tidSide(id);
423  unsigned int theWheel = tidWheel(id);
424  unsigned int theRing = tidRing(id);
425  std::vector<unsigned int> theModule = tidModuleInfo(id);
428  side = (tidSide(id) == 1) ? "-" : "+";
429  part = (theModule[0] == 1) ? "back" : "front";
431  type = (isStereo(id)) ? "stereo" : type;
432  type = (isRPhi(id)) ? "r-phi" : type;
433  type = (isStereo(id) || isRPhi(id)) ? type + " glued" : "module";
434  std::string typeUpgrade;
435  typeUpgrade = (isLower(id)) ? "lower" : typeUpgrade;
436  typeUpgrade = (isUpper(id)) ? "upper" : typeUpgrade;
437  typeUpgrade = (isUpper(id) || isLower(id)) ? typeUpgrade + " stack" : "module";
438  strstr << "TID"
439  << " Side " << theSide << side << " Wheel " << theWheel << " Ring " << theRing << " " << part;
440  strstr << " Module for phase0 " << theModule[1] << " " << type;
441  strstr << " Module for phase2 " << theModule[1] << " " << typeUpgrade;
442  strstr << " (" << id.rawId() << ")";
443  return strstr.str();
444  }
445 
446  if (subdet == SiStripSubdetector::TOB) {
447  unsigned int theLayer = tobLayer(id);
448  std::vector<unsigned int> theRod = tobRodInfo(id);
449  unsigned int theModule = tobModule(id);
452  side = (((theRod[0] == 1) ? "-" : ((theRod[0] == 2) ? "+" : (theRod[0] == 3) ? "0" : "")));
453  // side = (theRod[0] == 2 ) ? "+" : "";
454  // side = (theRod[0] == 3 ) ? "0" : "";
456  type = (isStereo(id)) ? "stereo" : type;
457  type = (isRPhi(id)) ? "r-phi" : type;
458  type = (isStereo(id) || isRPhi(id)) ? type + " glued" : "module";
459  std::string typeUpgrade;
460  typeUpgrade = (isLower(id)) ? "lower" : typeUpgrade;
461  typeUpgrade = (isUpper(id)) ? "upper" : typeUpgrade;
462  typeUpgrade = (isUpper(id) || isLower(id)) ? typeUpgrade + " stack" : "module";
463  strstr << "TOB" << side << " Layer " << theLayer << " Rod " << theRod[1];
464  strstr << " Module for phase0 " << theModule << " " << type;
465  strstr << " Module for phase2 " << theModule << " " << typeUpgrade;
466  strstr << " (" << id.rawId() << ")";
467  return strstr.str();
468  }
469 
470  if (subdet == SiStripSubdetector::TEC) {
471  unsigned int theSide = tecSide(id);
472  unsigned int theWheel = tecWheel(id);
473  unsigned int theModule = tecModule(id);
474  std::vector<unsigned int> thePetal = tecPetalInfo(id);
475  unsigned int theRing = tecRing(id);
477  std::string petal;
478  side = (tecSide(id) == 1) ? "-" : "+";
479  petal = (thePetal[0] == 1) ? "back" : "front";
481  type = (isStereo(id)) ? "stereo" : type;
482  type = (isRPhi(id)) ? "r-phi" : type;
483  type = (isStereo(id) || isRPhi(id)) ? type + " glued" : "module";
484  std::string typeUpgrade;
485  typeUpgrade = (isLower(id)) ? "lower" : typeUpgrade;
486  typeUpgrade = (isUpper(id)) ? "upper" : typeUpgrade;
487  typeUpgrade = (isUpper(id) || isLower(id)) ? typeUpgrade + " stack" : "module";
488  strstr << "TEC"
489  << " Side " << theSide << side << " Wheel " << theWheel << " Petal " << thePetal[1] << " " << petal
490  << " Ring " << theRing;
491  strstr << " Module for phase0 " << theModule << " " << type;
492  strstr << " Module for phase2 " << theModule << " " << typeUpgrade;
493  strstr << " (" << id.rawId() << ")";
494 
495  return strstr.str();
496  }
497 
498  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::module";
499  return strstr.str();
500 }
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
bool isSecond(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
bool isFirst(const DetId &id) const

◆ pxbDetId()

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

Definition at line 491 of file TrackerTopology.h.

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

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

◆ pxbDetIdLayerComparator()

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

Definition at line 568 of file TrackerTopology.h.

References layer(), and pxbDetId().

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

568  {
569  return std::make_pair(pxbDetId(layer, 1, 1), SameLayerComparator(this));
570  }
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 157 of file TrackerTopology.h.

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

Referenced by FWTGeoRecoGeometryESProducer::addPixelBarrelGeometry(), TrackerAlignmentLevelBuilder::addPXBDetUnitInfo(), SiPixelDigiValid::analyze(), SiPixelLorentzAngleDBLoader::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().

157  {
158  return ((id.rawId() >> pbVals_.ladderStartBit_) & pbVals_.ladderMask_);
159  }
const PixelBarrelValues pbVals_

◆ pxbLayer()

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

Definition at line 146 of file TrackerTopology.h.

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

Referenced by FWTGeoRecoGeometryESProducer::addPixelBarrelGeometry(), TrackerAlignmentLevelBuilder::addPXBDetUnitInfo(), SiPixelDigiValid::analyze(), SiPixelLorentzAngleDBLoader::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(), 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().

◆ pxbModule()

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

Definition at line 162 of file TrackerTopology.h.

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

Referenced by FWTGeoRecoGeometryESProducer::addPixelBarrelGeometry(), SiPixelDigiValid::analyze(), SiPixelLorentzAngleDBLoader::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().

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

◆ pxfBlade()

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

Definition at line 483 of file TrackerTopology.h.

References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, createfilelist::int, pfVals_, and nano_mu_digi_cff::rawId.

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

◆ pxfDetId()

DetId TrackerTopology::pxfDetId ( uint32_t  side,
uint32_t  disk,
uint32_t  blade,
uint32_t  panel,
uint32_t  module 
) const
inline

Definition at line 501 of file TrackerTopology.h.

References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, TrackerTopology::PixelEndcapValues::diskMask_, TrackerTopology::PixelEndcapValues::diskStartBit_, l1ctLayer2EG_cff::id, 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().

501  {
503  uint32_t rawid = id.rawId();
508  return DetId(rawid);
509  }
const PixelEndcapValues pfVals_
unsigned int side(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 572 of file TrackerTopology.h.

References pxfDetId(), and side().

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

572  {
573  return std::make_pair(pxfDetId(side, disk, 1, 1, 1), SameLayerComparator(this));
574  }
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 482 of file TrackerTopology.h.

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

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

◆ pxfModule()

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

Definition at line 165 of file TrackerTopology.h.

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

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

◆ pxfPanel()

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

Definition at line 486 of file TrackerTopology.h.

References createfilelist::int, TrackerTopology::PixelEndcapValues::panelMask_, TrackerTopology::PixelEndcapValues::panelStartBit_, pfVals_, and nano_mu_digi_cff::rawId.

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

◆ pxfSide()

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

Definition at line 194 of file TrackerTopology.h.

References pfVals_, nano_mu_digi_cff::rawId, 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().

◆ second()

uint32_t TrackerTopology::second ( const DetId id) const

Definition at line 158 of file TrackerTopology.cc.

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

Referenced by SiStripMonitorTrack::book(), SiPixelHitEfficiencySource::bookHistograms(), SiPixelClusterSource::bookMEs(), SiPixelDigiSource::bookMEs(), SiPixelRecHitSource::bookMEs(), MonitorTrackResidualsBase< pixel_or_strip >::createMEs(), SiStripMonitorDigi::createMEs(), SiStripMonitorCluster::createMEs(), SiStripRecHitsValid::createMEs(), and SiStripTrackingRecHitsValid::createMEs().

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

◆ 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 StubKiller::addDeadLayerModulesToDeadModuleList(), tmtt::StubKiller::addDeadLayerModulesToDeadModuleList(), FWTGeoRecoGeometryESProducer::addPixelForwardGeometry(), SiPixelLorentzAngleDBLoader::analyze(), SiStripCPEAnalyzer::analyze(), MkFitSeedConverter::convertSeeds(), MkFitGeometryESProducer::fillShapeAndPlacement(), MTVHistoProducerAlgoForTracker::getSeedingLayerSetBin(), HLTPixelActivityFilter::hltFilter(), StubKiller::killStub(), 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 511 of file TrackerTopology.h.

References TrackerTopology::TECValues::moduleMask_, TrackerTopology::TECValues::moduleStartBit_, TrackerTopology::TECValues::petal_fw_bwMask_, TrackerTopology::TECValues::petal_fw_bwStartBit_, TrackerTopology::TECValues::petalMask_, TrackerTopology::TECValues::petalStartBit_, 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().

517  {
519  uint32_t rawid = id.rawId();
520 
521  rawid |= (side & tecVals_.sideMask_) << tecVals_.sideStartBit_ |
528  return DetId(rawid);
529  }
const TECValues tecVals_
unsigned int side(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 576 of file TrackerTopology.h.

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

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

576  {
577  return std::make_pair(tecDetId(side, wheel, 1, 1, 1, 1, 1), SameLayerComparator(this));
578  }
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 363 of file TrackerTopology.h.

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

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

363  {
364  uint32_t testId = (id.rawId() >> tecVals_.sterStartBit_) & tecVals_.sterMask_;
365  return (testId == 0) ? 0 : (id.rawId() - testId);
366  }
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

◆ tecIsFrontPetal()

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

Definition at line 452 of file TrackerTopology.h.

References tecIsBackPetal().

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

452 { return !tecIsBackPetal(id); }
bool tecIsBackPetal(const DetId &id) const

◆ tecIsRPhi()

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

Definition at line 278 of file TrackerTopology.h.

References tecIsDoubleSide(), and tecRPhi().

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

278 { 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 308 of file TrackerTopology.h.

References tecStereo().

Referenced by isLower(), and lower().

308 { 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 432 of file TrackerTopology.h.

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

Referenced by partnerDetId().

432  {
433  if (((id.rawId() >> tecVals_.sterStartBit_) & tecVals_.sterMask_) == 1) {
434  return DetId(id.rawId() + 1);
435  } else if (((id.rawId() >> tecVals_.sterStartBit_) & tecVals_.sterMask_) == 2) {
436  return DetId(id.rawId() - 1);
437  } else {
438  return DetId();
439  }
440  }
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 219 of file TrackerTopology.h.

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

Referenced by TrackerAlignmentLevelBuilder::addTECDetUnitInfo(), FWTGeoRecoGeometryESProducer::addTECGeometry(), SiStripDigiValid::analyze(), TrackerTreeGenerator::analyze(), SiStripCPEAnalyzer::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().

◆ tecRPhi()

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

Definition at line 335 of file TrackerTopology.h.

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

Referenced by isRPhi(), tecIsRPhi(), and tecUpper().

335  {
336  if (((id.rawId() >> tecVals_.sterStartBit_) & tecVals_.sterMask_) == 2) {
337  return ((id.rawId() >> tecVals_.sterStartBit_) & tecVals_.sterMask_);
338  } else {
339  return 0;
340  }
341  }
const TECValues tecVals_

◆ tecSide()

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

Definition at line 186 of file TrackerTopology.h.

References nano_mu_digi_cff::rawId, 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().

◆ tecStack()

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

Definition at line 387 of file TrackerTopology.h.

References tecGlued().

Referenced by stack().

387 { 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 355 of file TrackerTopology.h.

References tecRPhi().

Referenced by isUpper(), and upper().

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

◆ tecWheel()

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

Definition at line 200 of file TrackerTopology.h.

References nano_mu_digi_cff::rawId, 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().

200  {
201  return ((id.rawId() >> tecVals_.wheelStartBit_) & tecVals_.wheelMask_);
202  }
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 531 of file TrackerTopology.h.

References layer(), TrackerTopology::TIBValues::layerMask_, TrackerTopology::TIBValues::layerStartBit_, 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().

532  {
534  uint32_t rawid = id.rawId();
541  return DetId(rawid);
542  }
unsigned int layer(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 580 of file TrackerTopology.h.

References layer(), and tibDetId().

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

580  {
581  return std::make_pair(tibDetId(layer, 1, 1, 1, 1, 1), SameLayerComparator(this));
582  }
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 358 of file TrackerTopology.h.

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

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

358  {
359  uint32_t testId = (id.rawId() >> tibVals_.sterStartBit_) & tibVals_.sterMask_;
360  return (testId == 0) ? 0 : (id.rawId() - testId);
361  }
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 152 of file TrackerTopology.h.

References createfilelist::int, TrackerTopology::TIBValues::layerMask_, TrackerTopology::TIBValues::layerStartBit_, nano_mu_digi_cff::rawId, 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().

◆ tibLower()

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

Definition at line 305 of file TrackerTopology.h.

References tibStereo().

Referenced by isLower(), and lower().

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

◆ tibModule()

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

Definition at line 174 of file TrackerTopology.h.

References TrackerTopology::TIBValues::moduleMask_, TrackerTopology::TIBValues::moduleStartBit_, nano_mu_digi_cff::rawId, and tibVals_.

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

174  {
175  return ((id.rawId() >> tibVals_.moduleStartBit_) & tibVals_.moduleMask_);
176  }
const TIBValues tibVals_

◆ tibOrder()

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

◆ tibPartnerDetId()

DetId TrackerTopology::tibPartnerDetId ( const DetId id) const
inline

Definition at line 402 of file TrackerTopology.h.

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

Referenced by partnerDetId().

402  {
403  if (((id.rawId() >> tibVals_.sterStartBit_) & tibVals_.sterMask_) == 1) {
404  return DetId(id.rawId() + 1);
405  } else if (((id.rawId() >> tibVals_.sterStartBit_) & tibVals_.sterMask_) == 2) {
406  return DetId(id.rawId() - 1);
407  } else {
408  return DetId();
409  }
410  }
const TIBValues tibVals_
Definition: DetId.h:17

◆ tibRPhi()

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

Definition at line 319 of file TrackerTopology.h.

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

Referenced by isRPhi(), tibIsRPhi(), and tibUpper().

319  {
320  if (((id.rawId() >> tibVals_.sterStartBit_) & tibVals_.sterMask_) == 2) {
321  return ((id.rawId() >> tibVals_.sterStartBit_) & tibVals_.sterMask_);
322  } else {
323  return 0;
324  }
325  }
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 384 of file TrackerTopology.h.

References tibGlued().

Referenced by stack().

384 { 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 352 of file TrackerTopology.h.

References tibRPhi().

Referenced by isUpper(), and upper().

352 { 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 544 of file TrackerTopology.h.

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

545  {
547  uint32_t rawid = id.rawId();
548  rawid |= (side & tidVals_.sideMask_) << tidVals_.sideStartBit_ |
554  return DetId(rawid);
555  }
unsigned int side(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 584 of file TrackerTopology.h.

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

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

584  {
585  return std::make_pair(tidDetId(side, wheel, 1, 1, 1, 1), SameLayerComparator(this));
586  }
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 373 of file TrackerTopology.h.

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

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

373  {
374  uint32_t testId = (id.rawId() >> tidVals_.sterStartBit_) & tidVals_.sterMask_;
375  return (testId == 0) ? 0 : (id.rawId() - testId);
376  }
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 479 of file TrackerTopology.h.

References tidIsBackRing().

Referenced by TrackerDpgAnalysis::toStringName().

479 { 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 306 of file TrackerTopology.h.

References tidStereo().

Referenced by isLower(), and lower().

306 { 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 422 of file TrackerTopology.h.

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

Referenced by partnerDetId().

422  {
423  if (((id.rawId() >> tidVals_.sterStartBit_) & tidVals_.sterMask_) == 1) {
424  return DetId(id.rawId() + 1);
425  } else if (((id.rawId() >> tidVals_.sterStartBit_) & tidVals_.sterMask_) == 2) {
426  return DetId(id.rawId() - 1);
427  } else {
428  return DetId();
429  }
430  }
Definition: DetId.h:17
const TIDValues tidVals_

◆ tidRing()

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

Definition at line 220 of file TrackerTopology.h.

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

Referenced by TrackerAlignmentLevelBuilder::addTIDDetUnitInfo(), FWTGeoRecoGeometryESProducer::addTIDGeometry(), SiStripDigiValid::analyze(), L1TPhase2OuterTrackerTkMET::analyze(), OuterTrackerMonitorTTCluster::analyze(), OuterTrackerMonitorTTStub::analyze(), TrackerTreeGenerator::analyze(), SiStripCPEAnalyzer::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(), L1TruthTrackFastJetProducer::produce(), L1FastTrackingJetProducer::produce(), TTStubBuilder< T >::produce(), L1FPGATrackProducer::produce(), tt::SensorModule::ringId(), 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().

◆ tidRPhi()

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

Definition at line 327 of file TrackerTopology.h.

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

Referenced by isRPhi(), tidIsRPhi(), and tidUpper().

327  {
328  if (((id.rawId() >> tidVals_.sterStartBit_) & tidVals_.sterMask_) == 2) {
329  return ((id.rawId() >> tidVals_.sterStartBit_) & tidVals_.sterMask_);
330  } else {
331  return 0;
332  }
333  }
const TIDValues tidVals_

◆ tidSide()

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

Definition at line 192 of file TrackerTopology.h.

References nano_mu_digi_cff::rawId, 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().

◆ tidStack()

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

Definition at line 385 of file TrackerTopology.h.

References tidGlued().

Referenced by stack().

385 { 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 353 of file TrackerTopology.h.

References tidRPhi().

Referenced by isUpper(), and upper().

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

◆ tidWheel()

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

Definition at line 203 of file TrackerTopology.h.

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

Referenced by SiStripDetSummary::add(), StubKiller::addDeadLayerModulesToDeadModuleList(), 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(), StubKiller::killStub(), 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().

203  {
204  return ((id.rawId() >> tidVals_.wheelStartBit_) & tidVals_.wheelMask_);
205  }
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 557 of file TrackerTopology.h.

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

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

557  {
559  uint32_t rawid = id.rawId();
565  return DetId(rawid);
566  }
unsigned int layer(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 588 of file TrackerTopology.h.

References layer(), and tobDetId().

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

588  {
589  return std::make_pair(tobDetId(layer, 1, 1, 1, 1), SameLayerComparator(this));
590  }
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 368 of file TrackerTopology.h.

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

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

368  {
369  uint32_t testId = (id.rawId() >> tobVals_.sterStartBit_) & tobVals_.sterMask_;
370  return (testId == 0) ? 0 : (id.rawId() - testId);
371  }
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 149 of file TrackerTopology.h.

References createfilelist::int, TrackerTopology::TOBValues::layerMask_, TrackerTopology::TOBValues::layerStartBit_, nano_mu_digi_cff::rawId, 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(), L1TruthTrackFastJetProducer::produce(), L1FastTrackingJetProducer::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().

◆ tobLower()

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

Definition at line 307 of file TrackerTopology.h.

References tobStereo().

Referenced by isLower(), and lower().

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

◆ tobModule()

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

Definition at line 168 of file TrackerTopology.h.

References TrackerTopology::TOBValues::moduleMask_, TrackerTopology::TOBValues::moduleStartBit_, nano_mu_digi_cff::rawId, 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().

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

◆ tobPartnerDetId()

DetId TrackerTopology::tobPartnerDetId ( const DetId id) const
inline

Definition at line 412 of file TrackerTopology.h.

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

Referenced by partnerDetId().

412  {
413  if (((id.rawId() >> tobVals_.sterStartBit_) & tobVals_.sterMask_) == 1) {
414  return DetId(id.rawId() + 1);
415  } else if (((id.rawId() >> tobVals_.sterStartBit_) & tobVals_.sterMask_) == 2) {
416  return DetId(id.rawId() - 1);
417  } else {
418  return DetId();
419  }
420  }
const TOBValues tobVals_
Definition: DetId.h:17

◆ tobRod()

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

Definition at line 197 of file TrackerTopology.h.

References nano_mu_digi_cff::rawId, TrackerTopology::TOBValues::rodMask_, TrackerTopology::TOBValues::rodStartBit_, and tobVals_.

Referenced by TrackerAlignmentLevelBuilder::addTOBDetUnitInfo(), FWTGeoRecoGeometryESProducer::addTOBGeometry(), SiPixelErrorEstimation::analyze(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripLorentzAngleDQM::fillMEsForLayer(), SiStripBackPlaneCorrectionDQM::fillMEsForLayer(), SiStripFolderOrganizer::getFolderName(), SiStripBaseCondObjDQM::getStringNameAndId(), TkLayerMap::getXY_TOB(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), TrackingNtuple::DetIdOTCommon::parse(), L1FPGATrackProducer::produce(), tt::SensorModule::ringId(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), tt::SensorModule::SensorModule(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), tmtt::StubFEWindows::storedWindowSize(), tobRodInfo(), TrackerDpgAnalysis::toStringName(), and trackerHierarchy().

◆ 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 311 of file TrackerTopology.h.

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

Referenced by isRPhi(), tobIsRPhi(), and tobUpper().

311  {
312  if (((id.rawId() >> tobVals_.sterStartBit_) & tobVals_.sterMask_) == 2) {
313  return ((id.rawId() >> tobVals_.sterStartBit_) & tobVals_.sterMask_);
314  } else {
315  return 0;
316  }
317  }
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 386 of file TrackerTopology.h.

References tobGlued().

Referenced by stack().

386 { 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 354 of file TrackerTopology.h.

References tobRPhi().

Referenced by isUpper(), and upper().

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

◆ upper()

uint32_t TrackerTopology::upper ( const DetId id) const

Definition at line 194 of file TrackerTopology.cc.

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

194  {
195  uint32_t subdet = id.subdetId();
196  if (subdet == PixelSubdetector::PixelBarrel)
197  return 0;
198  if (subdet == PixelSubdetector::PixelEndcap)
199  return 0;
200  if (subdet == SiStripSubdetector::TIB)
201  return tibUpper(id);
202  if (subdet == SiStripSubdetector::TID)
203  return tidUpper(id);
204  if (subdet == SiStripSubdetector::TOB)
205  return tobUpper(id);
206  if (subdet == SiStripSubdetector::TEC)
207  return tecUpper(id);
208 
209  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::upper";
210 }
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 625 of file TrackerTopology.h.

Referenced by getField(), and hasField().

◆ pbVals_

const PixelBarrelValues TrackerTopology::pbVals_
private

◆ 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