#include <PixelIndices.h>
Definition at line 40 of file PixelIndices.h.
◆ PixelIndices()
PixelIndices::PixelIndices |
( |
const int |
colsInDet, |
|
|
const int |
rowsInDet |
|
) |
| |
|
inline |
◆ ~PixelIndices()
PixelIndices::~PixelIndices |
( |
| ) |
|
|
inline |
◆ channelToPixelROC()
static std::pair<int, int> PixelIndices::channelToPixelROC |
( |
const int |
chan | ) |
|
|
inlinestatic |
◆ convertDcolToCol()
static int PixelIndices::convertDcolToCol |
( |
const int |
dcol, |
|
|
const int |
pix, |
|
|
int & |
colROC, |
|
|
int & |
rowROC |
|
) |
| |
|
inlinestatic |
Definition at line 80 of file PixelIndices.h.
81 if (TP_CHECK_LIMITS) {
82 if (dcol < 0 || dcol >= DColsPerROC || pix < 2 || pix > 161) {
83 std::cout <<
"PixelIndices: wrong dcol or pix " << dcol <<
" " << pix << std::endl;
91 int colEvenOdd = pix % 2;
93 colROC = dcol * 2 + colEvenOdd;
94 rowROC =
abs(
int(pix / 2) - 80);
96 if (TP_CHECK_LIMITS) {
97 if (colROC < 0 || colROC >= ROCSizeInY || rowROC < 0 || rowROC >= ROCSizeInX) {
98 std::cout <<
"PixelIndices: wrong col or row " << colROC <<
" " << rowROC <<
" " << dcol <<
" " << pix
References funct::abs(), and gather_cfg::cout.
◆ DColumn()
static int PixelIndices::DColumn |
( |
const int |
colROC | ) |
|
|
inlinestatic |
Definition at line 213 of file PixelIndices.h.
214 int dColumnId = (colROC) / 2;
215 if (TP_CHECK_LIMITS) {
216 if (dColumnId < 0 || dColumnId >= 26) {
217 std::cout <<
"PixelIndices: wrong dcol index " << dColumnId <<
" " << colROC << std::endl;
References gather_cfg::cout.
◆ DColumnInModule()
static int PixelIndices::DColumnInModule |
( |
const int |
dcol, |
|
|
const int |
chipIndex |
|
) |
| |
|
inlinestatic |
Definition at line 226 of file PixelIndices.h.
227 int dcolInMod = dcol + chipIndex * 26;
◆ numberOfROCsInX()
int PixelIndices::numberOfROCsInX |
( |
void |
| ) |
|
|
inline |
◆ numberOfROCsInY()
int PixelIndices::numberOfROCsInY |
( |
void |
| ) |
|
|
inline |
◆ pixelToChannelROC()
static int PixelIndices::pixelToChannelROC |
( |
const int |
rowROC, |
|
|
const int |
colROC |
|
) |
| |
|
inlinestatic |
◆ print()
void PixelIndices::print |
( |
void |
| ) |
const |
|
inline |
◆ rocIndex()
static int PixelIndices::rocIndex |
( |
const int |
chipX, |
|
|
const int |
chipY |
|
) |
| |
|
inlinestatic |
Definition at line 189 of file PixelIndices.h.
191 if (TP_CHECK_LIMITS) {
192 if (chipX < 0 || chipX >= 2 || chipY < 0 || chipY >= 8) {
193 std::cout <<
"PixelChipIndices: wrong index " << chipX <<
" " << chipY << std::endl;
202 if (TP_CHECK_LIMITS) {
203 if (rocId < 0 || rocId >= (maxROCsInX * maxROCsInY)) {
204 std::cout <<
"PixelIndices: Error in ROC index " << rocId << std::endl;
References gather_cfg::cout.
Referenced by transformToROC().
◆ transformToModule()
int PixelIndices::transformToModule |
( |
const int |
colROC, |
|
|
const int |
rowROC, |
|
|
const int |
rocId, |
|
|
int & |
col, |
|
|
int & |
row |
|
) |
| const |
|
inline |
Definition at line 114 of file PixelIndices.h.
115 if (TP_CHECK_LIMITS) {
116 if (colROC < 0 || colROC >= ROCSizeInY || rowROC < 0 || rowROC >= ROCSizeInX) {
117 std::cout <<
"PixelIndices: wrong index " << colROC <<
" " << rowROC << std::endl;
123 if (rocId >= 0 && rocId < 8) {
126 col = (8 - rocId) * ROCSizeInY - colROC - 1;
127 }
else if (rocId >= 8 && rocId < 16) {
130 col = (rocId - 8) * ROCSizeInY + colROC;
132 std::cout <<
"PixelIndices: wrong ROC ID " << rocId << std::endl;
135 if (TP_CHECK_LIMITS) {
137 std::cout <<
"PixelIndices: wrong index " <<
col <<
" " << row << std::endl;
References cuy::col, gather_cfg::cout, theChipsInX, and theChipsInY.
◆ transformToROC()
int PixelIndices::transformToROC |
( |
const int |
col, |
|
|
const int |
row, |
|
|
int & |
rocId, |
|
|
int & |
colROC, |
|
|
int & |
rowROC |
|
) |
| const |
|
inline |
Definition at line 149 of file PixelIndices.h.
150 if (TP_CHECK_LIMITS) {
152 std::cout <<
"PixelIndices: wrong index 3 " << std::endl;
158 int chipX = row / ROCSizeInX;
159 int chipY =
col / ROCSizeInY;
163 if (TP_CHECK_LIMITS && (rocId < 0 || rocId >= 16)) {
164 std::cout <<
"PixelIndices: wrong roc index " << rocId << std::endl;
168 rowROC = (row % ROCSizeInX);
169 colROC = (
col % ROCSizeInY);
172 colROC = 51 - colROC;
173 rowROC = 79 - rowROC;
176 if (TP_CHECK_LIMITS) {
177 if (colROC < 0 || colROC >= ROCSizeInY || rowROC < 0 || rowROC >= ROCSizeInX) {
178 std::cout <<
"PixelIndices: wrong index " << colROC <<
" " << rowROC << std::endl;
References cuy::col, gather_cfg::cout, rocIndex(), theChipsInX, and theChipsInY.
◆ theChipsInX
int PixelIndices::theChipsInX |
|
private |
◆ theChipsInY
int PixelIndices::theChipsInY |
|
private |
◆ theColsInDet
int PixelIndices::theColsInDet |
|
private |
◆ theRowsInDet
int PixelIndices::theRowsInDet |
|
private |