#include <PixelIndices.h>
Definition at line 40 of file PixelIndices.h.
PixelIndices::PixelIndices |
( |
const int |
colsInDet, |
|
|
const int |
rowsInDet |
|
) |
| |
|
inline |
PixelIndices::~PixelIndices |
( |
| ) |
|
|
inline |
static std::pair<int,int> PixelIndices::channelToPixelROC |
( |
const int |
chan | ) |
|
|
inlinestatic |
static int PixelIndices::convertDcolToCol |
( |
const int |
dcol, |
|
|
const int |
pix, |
|
|
int & |
colROC, |
|
|
int & |
rowROC |
|
) |
| |
|
inlinestatic |
Definition at line 88 of file PixelIndices.h.
References abs, and gather_cfg::cout.
92 if(dcol<0||dcol>=DColsPerROC||pix<2||pix>161) {
93 std::cout<<
"PixelIndices: wrong dcol or pix "<<dcol<<
" "<<pix<<std::endl;
101 int colEvenOdd = pix%2;
103 colROC = dcol * 2 + colEvenOdd;
104 rowROC =
abs(
int(pix/2) - 80);
106 if(TP_CHECK_LIMITS) {
107 if(colROC<0||colROC>=ROCSizeInY||rowROC<0||rowROC>=ROCSizeInX ) {
108 std::cout<<
"PixelIndices: wrong col or row "<<colROC<<
" "<<rowROC<<
" "
109 <<dcol<<
" "<<pix<<std::endl;
static int PixelIndices::DColumn |
( |
const int |
colROC | ) |
|
|
inlinestatic |
static int PixelIndices::DColumnInModule |
( |
const int |
dcol, |
|
|
const int |
chipIndex |
|
) |
| |
|
inlinestatic |
int PixelIndices::numberOfROCsInX |
( |
void |
| ) |
|
|
inline |
int PixelIndices::numberOfROCsInY |
( |
void |
| ) |
|
|
inline |
static int PixelIndices::pixelToChannelROC |
( |
const int |
rowROC, |
|
|
const int |
colROC |
|
) |
| |
|
inlinestatic |
void PixelIndices::print |
( |
void |
| ) |
const |
|
inline |
static int PixelIndices::rocIndex |
( |
const int |
chipX, |
|
|
const int |
chipY |
|
) |
| |
|
inlinestatic |
Definition at line 206 of file PixelIndices.h.
References gather_cfg::cout.
Referenced by transformToROC().
209 if(TP_CHECK_LIMITS) {
210 if(chipX<0 || chipX>=2 ||chipY<0 || chipY>=8) {
211 std::cout<<
"PixelChipIndices: wrong index "<<chipX<<
" "<<chipY<<std::endl;
215 if(chipX==0) rocId = chipY + 8;
216 else if(chipX==1) rocId = 7 - chipY;
218 if(TP_CHECK_LIMITS) {
219 if(rocId < 0 || rocId >= (maxROCsInX*maxROCsInY) ) {
220 std::cout <<
"PixelIndices: Error in ROC index " << rocId << std::endl;
int PixelIndices::transformToModule |
( |
const int |
colROC, |
|
|
const int |
rowROC, |
|
|
const int |
rocId, |
|
|
int & |
col, |
|
|
int & |
row |
|
) |
| const |
|
inline |
Definition at line 124 of file PixelIndices.h.
References gather_cfg::cout, theChipsInX, and theChipsInY.
128 if(TP_CHECK_LIMITS) {
129 if(colROC<0 || colROC>=ROCSizeInY || rowROC<0 ||rowROC>=ROCSizeInX) {
130 std::cout<<
"PixelIndices: wrong index "<<colROC<<
" "<<rowROC<<std::endl;
136 if(rocId>=0 && rocId<8) {
139 col = (8-rocId)*ROCSizeInY - colROC - 1;
140 }
else if(rocId>=8 && rocId<16) {
143 col = (rocId-8)*ROCSizeInY + colROC;
145 std::cout<<
"PixelIndices: wrong ROC ID "<<rocId<<std::endl;
148 if(TP_CHECK_LIMITS) {
149 if(col<0 || col>=(ROCSizeInY*
theChipsInY) || row<0 ||
151 std::cout<<
"PixelIndices: wrong index "<<col<<
" "<<row<<std::endl;
int PixelIndices::transformToROC |
( |
const int |
col, |
|
|
const int |
row, |
|
|
int & |
rocId, |
|
|
int & |
colROC, |
|
|
int & |
rowROC |
|
) |
| const |
|
inline |
Definition at line 163 of file PixelIndices.h.
References gather_cfg::cout, rocIndex(), theChipsInX, and theChipsInY.
Referenced by SiPixelDigitizerAlgorithm::pixel_inefficiency().
166 if(TP_CHECK_LIMITS) {
167 if(col<0 || col>=(ROCSizeInY*
theChipsInY) || row<0 ||
169 std::cout<<
"PixelIndices: wrong index 3 "<<std::endl;
175 int chipX = row / ROCSizeInX;
176 int chipY = col / ROCSizeInY;
180 if(TP_CHECK_LIMITS && (rocId<0 || rocId>=16) ) {
181 std::cout<<
"PixelIndices: wrong roc index "<<rocId<<std::endl;
185 rowROC = (row%ROCSizeInX);
186 colROC = (col%ROCSizeInY);
189 colROC = 51 - colROC;
190 rowROC = 79 - rowROC;
193 if(TP_CHECK_LIMITS) {
194 if(colROC<0||colROC>=ROCSizeInY||rowROC<0||rowROC>=ROCSizeInX) {
195 std::cout<<
"PixelIndices: wrong index "<<colROC<<
" "<<rowROC<<std::endl;
static int rocIndex(const int chipX, const int chipY)
int PixelIndices::theChipsInX |
|
private |
int PixelIndices::theChipsInY |
|
private |
int PixelIndices::theColsInDet |
|
private |
int PixelIndices::theRowsInDet |
|
private |