#include <CTPPSPixelIndices.h>
|
| CTPPSPixelIndices () |
|
| CTPPSPixelIndices (const int colsInDet, const int rowsInDet) |
|
int | getDefaultColDetSize () const |
|
int | getDefaultRowDetSize () const |
|
int | getROCId (const int col, const int row) const |
|
bool | isOnEdge (const int col, const int row) const |
|
int | numberOfROCsInX (void) |
|
int | numberOfROCsInY (void) |
|
void | print (void) const |
|
int | transformToModule (const int colROC, const int rowROC, const int rocId, int &col, int &row) const |
|
int | transformToROC (const int col, const int row, int &rocId, int &colROC, int &rowROC) const |
|
| ~CTPPSPixelIndices () |
|
Definition at line 74 of file CTPPSPixelIndices.h.
CTPPSPixelIndices::CTPPSPixelIndices |
( |
| ) |
|
|
inline |
CTPPSPixelIndices::CTPPSPixelIndices |
( |
const int |
colsInDet, |
|
|
const int |
rowsInDet |
|
) |
| |
|
inline |
CTPPSPixelIndices::~CTPPSPixelIndices |
( |
| ) |
|
|
inline |
static std::pair<int, int> CTPPSPixelIndices::channelToPixelROC |
( |
const int |
chan | ) |
|
|
inlinestatic |
Definition at line 316 of file CTPPSPixelIndices.h.
317 int rowROC = (
chan >> 6) & 0x7F;
318 int colROC =
chan & 0x3F;
319 return std::pair<int, int>(rowROC, colROC);
tuple chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
static int CTPPSPixelIndices::convertDcolToCol |
( |
const int |
dcol, |
|
|
const int |
pix, |
|
|
int & |
colROC, |
|
|
int & |
rowROC |
|
) |
| |
|
inlinestatic |
Definition at line 126 of file CTPPSPixelIndices.h.
References funct::abs().
Referenced by CTPPSPixelROC::toGlobalfromDcol().
127 if (CTPPS_CHECK_LIMITS) {
128 if (dcol < 0 || dcol >= DColsPerROC || pix < 2 || pix > 161) {
129 edm::LogError(
"RPix") <<
"CTPPSPixelIndices: wrong dcol or pix " << dcol <<
" " << pix;
137 int colEvenOdd = pix % 2;
139 colROC = dcol * 2 + colEvenOdd;
140 rowROC =
abs(
int(pix / 2) - 80);
142 if (CTPPS_CHECK_LIMITS) {
143 if (colROC < 0 || colROC >= ROCSizeInY || rowROC < 0 || rowROC >= ROCSizeInX) {
144 edm::LogError(
"RPix") <<
"CTPPSPixelIndices: wrong col or row " << colROC <<
" " << rowROC <<
" " << dcol <<
" "
Log< level::Error, false > LogError
Abs< T >::type abs(const T &t)
static int CTPPSPixelIndices::DColumn |
( |
const int |
colROC | ) |
|
|
inlinestatic |
static int CTPPSPixelIndices::DColumnInModule |
( |
const int |
dcol, |
|
|
const int |
chipIndex |
|
) |
| |
|
inlinestatic |
int CTPPSPixelIndices::getDefaultColDetSize |
( |
| ) |
const |
|
inline |
int CTPPSPixelIndices::getDefaultRowDetSize |
( |
| ) |
const |
|
inline |
int CTPPSPixelIndices::getROCId |
( |
const int |
col, |
|
|
const int |
row |
|
) |
| const |
|
inline |
bool CTPPSPixelIndices::isOnEdge |
( |
const int |
col, |
|
|
const int |
row |
|
) |
| const |
|
inline |
Definition at line 259 of file CTPPSPixelIndices.h.
260 if (
col == 0 || row == 0 ||
col == (defaultDetSizeInY - 1) || row == (defaultDetSizeInX - 1))
int CTPPSPixelIndices::numberOfROCsInX |
( |
void |
| ) |
|
|
inline |
int CTPPSPixelIndices::numberOfROCsInY |
( |
void |
| ) |
|
|
inline |
static int CTPPSPixelIndices::pixelToChannelROC |
( |
const int |
rowROC, |
|
|
const int |
colROC |
|
) |
| |
|
inlinestatic |
void CTPPSPixelIndices::print |
( |
void |
| ) |
const |
|
inline |
static int CTPPSPixelIndices::rocIndex |
( |
const int |
chipX, |
|
|
const int |
chipY |
|
) |
| |
|
inlinestatic |
Definition at line 269 of file CTPPSPixelIndices.h.
Referenced by getROCId(), and transformToROC().
271 if (CTPPS_CHECK_LIMITS) {
272 if (chipX < 0 || chipX >= 2 || chipY < 0 || chipY >= 3) {
273 edm::LogError(
"RPix") <<
"PixelChipIndices: wrong index " << chipX <<
" " << chipY;
282 if (CTPPS_CHECK_LIMITS) {
283 if (rocId < 0 || rocId >= (maxROCsInX * maxROCsInY)) {
284 edm::LogError(
"RPix") <<
"CTPPSPixelIndices: Error in ROC index " << rocId;
Log< level::Error, false > LogError
int CTPPSPixelIndices::transformToModule |
( |
const int |
colROC, |
|
|
const int |
rowROC, |
|
|
const int |
rocId, |
|
|
int & |
col, |
|
|
int & |
row |
|
) |
| const |
|
inline |
int CTPPSPixelIndices::transformToROC |
( |
const int |
col, |
|
|
const int |
row, |
|
|
int & |
rocId, |
|
|
int & |
colROC, |
|
|
int & |
rowROC |
|
) |
| const |
|
inline |
int CTPPSPixelIndices::theChipsInX |
|
private |
int CTPPSPixelIndices::theChipsInY |
|
private |
int CTPPSPixelIndices::theColsInDet |
|
private |
int CTPPSPixelIndices::theRowsInDet |
|
private |