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 25 of file phase1PixelTopology.h.

References constexpr, lumiQueryAPI::q, and alignCSCRings::r.

Referenced by localY(), and toRocY().

25  {
26  n = n>>2;
27  uint16_t q = (n>>1) + (n>>4);
28  q = q + (q>>4) + (q>>5); 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 48 of file phase1PixelTopology.h.

References constexpr.

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

Definition at line 53 of file phase1PixelTopology.h.

References constexpr, lastColInRoc, and toRocY().

53  {
54  auto ly=toRocY(py);
55  return (ly==0) | (ly==lastColInRoc);
56  }
constexpr uint16_t lastColInRoc
constexpr uint16_t toRocY(uint16_t py)
constexpr bool phase1PixelTopology::isEdgeX ( uint16_t  px)
inline

Definition at line 34 of file phase1PixelTopology.h.

References constexpr, and lastRowInModule.

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

Definition at line 36 of file phase1PixelTopology.h.

References constexpr, and lastColInModule.

36 { 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 40 of file phase1PixelTopology.h.

References constexpr, and numRowsInRoc.

40 { return (px<numRowsInRoc) ? px : px-numRowsInRoc; }
constexpr uint16_t numRowsInRoc
constexpr uint16_t phase1PixelTopology::toRocY ( uint16_t  py)
inline

Definition at line 42 of file phase1PixelTopology.h.

References constexpr, and divu52().

Referenced by isBigPixY().

42  {
43  auto roc = divu52(py);
44  return py - 52*roc;
45  }
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().