CMS 3D CMS Logo

Functions | Variables
phase1PixelTopology Namespace Reference

Functions

constexpr uint16_t divu52 (uint16_t n)
 
constexpr bool isBigPixX (uint16_t px)
 
constexpr bool isBigPixY (uint16_t py)
 
constexpr bool isEdgeX (uint16_t px)
 
constexpr bool isEdgeY (uint16_t py)
 
constexpr uint16_t localX (uint16_t px)
 
constexpr uint16_t localY (uint16_t py)
 
constexpr uint16_t toRocX (uint16_t px)
 
constexpr uint16_t toRocY (uint16_t py)
 

Variables

constexpr uint16_t lastColInModule = numColsInModule - 1
 
constexpr uint16_t lastColInRoc = numColsInRoc - 1
 
constexpr uint16_t lastRowInModule = numRowsInModule - 1
 
constexpr uint16_t lastRowInRoc = numRowsInRoc - 1
 
constexpr uint16_t numColsInModule = 8 * numColsInRoc
 
constexpr uint16_t numColsInRoc = 52
 
constexpr uint32_t numPixsInModule = uint32_t(numRowsInModule) * uint32_t(numColsInModule)
 
constexpr uint16_t numRowsInModule = 2 * numRowsInRoc
 
constexpr uint16_t numRowsInRoc = 80
 
constexpr int16_t xOffset = -81
 
constexpr int16_t yOffset = -54 * 4
 

Function Documentation

◆ divu52()

constexpr uint16_t phase1PixelTopology::divu52 ( uint16_t  n)
inlineconstexpr

Definition at line 24 of file phase1PixelTopology.h.

24  {
25  n = n >> 2;
26  uint16_t q = (n >> 1) + (n >> 4);
27  q = q + (q >> 4) + (q >> 5);
28  q = q >> 3;
29  uint16_t r = n - q * 13;
30  return q + ((r + 3) >> 4);
31  }

References dqmiodumpmetadata::n, submitPVResolutionJobs::q, and alignCSCRings::r.

Referenced by localY(), and toRocY().

◆ isBigPixX()

constexpr bool phase1PixelTopology::isBigPixX ( uint16_t  px)
inlineconstexpr

Definition at line 42 of file phase1PixelTopology.h.

42 { return (px == 79) | (px == 80); }

References multPhiCorr_741_25nsDY_cfi::px.

◆ isBigPixY()

constexpr bool phase1PixelTopology::isBigPixY ( uint16_t  py)
inlineconstexpr

Definition at line 44 of file phase1PixelTopology.h.

44  {
45  auto ly = toRocY(py);
46  return (ly == 0) | (ly == lastColInRoc);
47  }

References lastColInRoc, multPhiCorr_741_25nsDY_cfi::py, and toRocY().

◆ isEdgeX()

constexpr bool phase1PixelTopology::isEdgeX ( uint16_t  px)
inlineconstexpr

Definition at line 33 of file phase1PixelTopology.h.

33 { return (px == 0) | (px == lastRowInModule); }

References lastRowInModule, and multPhiCorr_741_25nsDY_cfi::px.

◆ isEdgeY()

constexpr bool phase1PixelTopology::isEdgeY ( uint16_t  py)
inlineconstexpr

Definition at line 34 of file phase1PixelTopology.h.

34 { return (py == 0) | (py == lastColInModule); }

References lastColInModule, and multPhiCorr_741_25nsDY_cfi::py.

◆ localX()

constexpr uint16_t phase1PixelTopology::localX ( uint16_t  px)
inlineconstexpr

◆ localY()

constexpr uint16_t phase1PixelTopology::localY ( uint16_t  py)
inlineconstexpr

◆ toRocX()

constexpr uint16_t phase1PixelTopology::toRocX ( uint16_t  px)
inlineconstexpr

Definition at line 36 of file phase1PixelTopology.h.

36 { return (px < numRowsInRoc) ? px : px - numRowsInRoc; }

References numRowsInRoc, and multPhiCorr_741_25nsDY_cfi::px.

◆ toRocY()

constexpr uint16_t phase1PixelTopology::toRocY ( uint16_t  py)
inlineconstexpr

Definition at line 37 of file phase1PixelTopology.h.

37  {
38  auto roc = divu52(py);
39  return py - 52 * roc;
40  }

References divu52(), multPhiCorr_741_25nsDY_cfi::py, and PixelMapPlotter::roc.

Referenced by isBigPixY().

Variable Documentation

◆ lastColInModule

constexpr uint16_t phase1PixelTopology::lastColInModule = numColsInModule - 1
constexpr

Definition at line 16 of file phase1PixelTopology.h.

Referenced by isEdgeY().

◆ lastColInRoc

constexpr uint16_t phase1PixelTopology::lastColInRoc = numColsInRoc - 1
constexpr

Definition at line 11 of file phase1PixelTopology.h.

Referenced by isBigPixY().

◆ lastRowInModule

constexpr uint16_t phase1PixelTopology::lastRowInModule = numRowsInModule - 1
constexpr

Definition at line 15 of file phase1PixelTopology.h.

Referenced by isEdgeX().

◆ lastRowInRoc

constexpr uint16_t phase1PixelTopology::lastRowInRoc = numRowsInRoc - 1
constexpr

Definition at line 10 of file phase1PixelTopology.h.

Referenced by localX().

◆ numColsInModule

constexpr uint16_t phase1PixelTopology::numColsInModule = 8 * numColsInRoc
constexpr

Definition at line 14 of file phase1PixelTopology.h.

◆ numColsInRoc

constexpr uint16_t phase1PixelTopology::numColsInRoc = 52
constexpr

◆ numPixsInModule

constexpr uint32_t phase1PixelTopology::numPixsInModule = uint32_t(numRowsInModule) * uint32_t(numColsInModule)
constexpr

Definition at line 21 of file phase1PixelTopology.h.

◆ numRowsInModule

constexpr uint16_t phase1PixelTopology::numRowsInModule = 2 * numRowsInRoc
constexpr

Definition at line 13 of file phase1PixelTopology.h.

◆ numRowsInRoc

constexpr uint16_t phase1PixelTopology::numRowsInRoc = 80
constexpr

◆ xOffset

constexpr int16_t phase1PixelTopology::xOffset = -81
constexpr

◆ yOffset

constexpr int16_t phase1PixelTopology::yOffset = -54 * 4
constexpr

Definition at line 19 of file phase1PixelTopology.h.

Referenced by FWCheckBoxIcon::drawInsideBox().

dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
phase1PixelTopology::lastColInModule
constexpr uint16_t lastColInModule
Definition: phase1PixelTopology.h:16
multPhiCorr_741_25nsDY_cfi.py
py
Definition: multPhiCorr_741_25nsDY_cfi.py:12
phase1PixelTopology::toRocY
constexpr uint16_t toRocY(uint16_t py)
Definition: phase1PixelTopology.h:37
phase1PixelTopology::numRowsInRoc
constexpr uint16_t numRowsInRoc
Definition: phase1PixelTopology.h:8
phase1PixelTopology::lastRowInModule
constexpr uint16_t lastRowInModule
Definition: phase1PixelTopology.h:15
phase1PixelTopology::lastColInRoc
constexpr uint16_t lastColInRoc
Definition: phase1PixelTopology.h:11
phase1PixelTopology::lastRowInRoc
constexpr uint16_t lastRowInRoc
Definition: phase1PixelTopology.h:10
submitPVResolutionJobs.q
q
Definition: submitPVResolutionJobs.py:84
alignCSCRings.r
r
Definition: alignCSCRings.py:93
multPhiCorr_741_25nsDY_cfi.px
px
Definition: multPhiCorr_741_25nsDY_cfi.py:10
edm::shift
static unsigned const int shift
Definition: LuminosityBlockID.cc:7
PixelMapPlotter.roc
roc
Definition: PixelMapPlotter.py:498
phase1PixelTopology::divu52
constexpr uint16_t divu52(uint16_t n)
Definition: phase1PixelTopology.h:24