#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() [1/2]
CTPPSPixelIndices::CTPPSPixelIndices |
( |
| ) |
|
|
inline |
◆ CTPPSPixelIndices() [2/2]
CTPPSPixelIndices::CTPPSPixelIndices |
( |
const int |
colsInDet, |
|
|
const int |
rowsInDet |
|
) |
| |
|
inline |
◆ ~CTPPSPixelIndices()
CTPPSPixelIndices::~CTPPSPixelIndices |
( |
| ) |
|
|
inline |
◆ channelToPixelROC()
static std::pair<int, int> CTPPSPixelIndices::channelToPixelROC |
( |
const int |
chan | ) |
|
|
inlinestatic |
Definition at line 316 of file CTPPSPixelIndices.h.
References officialStyle::chan.
317 int rowROC = (
chan >> 6) & 0x7F;
318 int colROC =
chan & 0x3F;
319 return std::pair<int, int>(rowROC, colROC);
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
◆ convertDcolToCol()
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)
◆ DColumn()
static int CTPPSPixelIndices::DColumn |
( |
const int |
colROC | ) |
|
|
inlinestatic |
◆ DColumnInModule()
static int CTPPSPixelIndices::DColumnInModule |
( |
const int |
dcol, |
|
|
const int |
chipIndex |
|
) |
| |
|
inlinestatic |
◆ getDefaultColDetSize()
int CTPPSPixelIndices::getDefaultColDetSize |
( |
| ) |
const |
|
inline |
◆ getDefaultRowDetSize()
int CTPPSPixelIndices::getDefaultRowDetSize |
( |
| ) |
const |
|
inline |
◆ getROCId()
int CTPPSPixelIndices::getROCId |
( |
const int |
col, |
|
|
const int |
row |
|
) |
| const |
|
inline |
◆ isOnEdge()
bool CTPPSPixelIndices::isOnEdge |
( |
const int |
col, |
|
|
const int |
row |
|
) |
| const |
|
inline |
◆ numberOfROCsInX()
int CTPPSPixelIndices::numberOfROCsInX |
( |
void |
| ) |
|
|
inline |
◆ numberOfROCsInY()
int CTPPSPixelIndices::numberOfROCsInY |
( |
void |
| ) |
|
|
inline |
◆ pixelToChannelROC()
static int CTPPSPixelIndices::pixelToChannelROC |
( |
const int |
rowROC, |
|
|
const int |
colROC |
|
) |
| |
|
inlinestatic |
◆ print()
void CTPPSPixelIndices::print |
( |
void |
| ) |
const |
|
inline |
◆ rocIndex()
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
◆ transformToModule()
int CTPPSPixelIndices::transformToModule |
( |
const int |
colROC, |
|
|
const int |
rowROC, |
|
|
const int |
rocId, |
|
|
int & |
col, |
|
|
int & |
row |
|
) |
| const |
|
inline |
◆ transformToROC()
int CTPPSPixelIndices::transformToROC |
( |
const int |
col, |
|
|
const int |
row, |
|
|
int & |
rocId, |
|
|
int & |
colROC, |
|
|
int & |
rowROC |
|
) |
| const |
|
inline |
◆ theChipsInX
int CTPPSPixelIndices::theChipsInX |
|
private |
◆ theChipsInY
int CTPPSPixelIndices::theChipsInY |
|
private |
◆ theColsInDet
int CTPPSPixelIndices::theColsInDet |
|
private |
◆ theRowsInDet
int CTPPSPixelIndices::theRowsInDet |
|
private |