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

constexpr uint16_t phase1PixelTopology::divu52 ( uint16_t  n)
inline

Definition at line 24 of file phase1PixelTopology.h.

References data-class-funcs::q, and alignCSCRings::r.

Referenced by localY(), and toRocY().

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  }
constexpr bool phase1PixelTopology::isBigPixX ( uint16_t  px)
inline

Definition at line 42 of file phase1PixelTopology.h.

42 { return (px == 79) | (px == 80); }
constexpr bool phase1PixelTopology::isBigPixY ( uint16_t  py)
inline

Definition at line 44 of file phase1PixelTopology.h.

References lastColInRoc, and toRocY().

44  {
45  auto ly = toRocY(py);
46  return (ly == 0) | (ly == lastColInRoc);
47  }
constexpr uint16_t lastColInRoc
constexpr uint16_t toRocY(uint16_t py)
constexpr bool phase1PixelTopology::isEdgeX ( uint16_t  px)
inline

Definition at line 33 of file phase1PixelTopology.h.

References lastRowInModule.

33 { return (px == 0) | (px == lastRowInModule); }
constexpr uint16_t lastRowInModule
constexpr bool phase1PixelTopology::isEdgeY ( uint16_t  py)
inline

Definition at line 34 of file phase1PixelTopology.h.

References lastColInModule.

34 { return (py == 0) | (py == lastColInModule); }
constexpr uint16_t lastColInModule
constexpr uint16_t phase1PixelTopology::localX ( uint16_t  px)
inline
constexpr uint16_t phase1PixelTopology::localY ( uint16_t  py)
inline
constexpr uint16_t phase1PixelTopology::toRocX ( uint16_t  px)
inline

Definition at line 36 of file phase1PixelTopology.h.

References numRowsInRoc.

constexpr uint16_t phase1PixelTopology::toRocY ( uint16_t  py)
inline

Definition at line 37 of file phase1PixelTopology.h.

References divu52(), and PixelMapPlotter::roc.

Referenced by isBigPixY().

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

Variable Documentation

constexpr uint16_t phase1PixelTopology::lastColInModule = numColsInModule - 1

Definition at line 16 of file phase1PixelTopology.h.

Referenced by isEdgeY().

constexpr uint16_t phase1PixelTopology::lastColInRoc = numColsInRoc - 1

Definition at line 11 of file phase1PixelTopology.h.

Referenced by isBigPixY().

constexpr uint16_t phase1PixelTopology::lastRowInModule = numRowsInModule - 1

Definition at line 15 of file phase1PixelTopology.h.

Referenced by isEdgeX().

constexpr uint16_t phase1PixelTopology::lastRowInRoc = numRowsInRoc - 1

Definition at line 10 of file phase1PixelTopology.h.

constexpr uint16_t phase1PixelTopology::numColsInModule = 8 * numColsInRoc

Definition at line 14 of file phase1PixelTopology.h.

constexpr uint16_t phase1PixelTopology::numColsInRoc = 52
constexpr uint32_t phase1PixelTopology::numPixsInModule = uint32_t(numRowsInModule) * uint32_t(numColsInModule)

Definition at line 21 of file phase1PixelTopology.h.

constexpr uint16_t phase1PixelTopology::numRowsInModule = 2 * numRowsInRoc

Definition at line 13 of file phase1PixelTopology.h.

constexpr uint16_t phase1PixelTopology::numRowsInRoc = 80
constexpr int16_t phase1PixelTopology::xOffset = -81
constexpr int16_t phase1PixelTopology::yOffset = -54 * 4

Definition at line 19 of file phase1PixelTopology.h.

Referenced by FWCheckBoxIcon::drawInsideBox().