#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 339 of file CTPPSPixelIndices.h.
340 int rowROC = (
chan >> 6) & 0x7F;
341 int colROC =
chan & 0x3F;
342 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...
static int CTPPSPixelIndices::convertDcolToCol |
( |
const int |
dcol, |
|
|
const int |
pix, |
|
|
int & |
colROC, |
|
|
int & |
rowROC |
|
) |
| |
|
inlinestatic |
Definition at line 136 of file CTPPSPixelIndices.h.
References funct::abs().
Referenced by CTPPSPixelROC::toGlobalfromDcol().
139 if(CTPPS_CHECK_LIMITS) {
140 if(dcol<0||dcol>=DColsPerROC||pix<2||pix>161) {
141 edm::LogError(
"RPix")<<
"CTPPSPixelIndices: wrong dcol or pix "<<dcol<<
" "<<pix;
149 int colEvenOdd = pix%2;
151 colROC = dcol * 2 + colEvenOdd;
152 rowROC =
abs(
int(pix/2) - 80);
154 if(CTPPS_CHECK_LIMITS) {
155 if(colROC<0||colROC>=ROCSizeInY||rowROC<0||rowROC>=ROCSizeInX ) {
156 edm::LogError(
"RPix")<<
"CTPPSPixelIndices: wrong col or row "<<colROC<<
" "<<rowROC<<
" "
Abs< T >::type abs(const T &t)
static int CTPPSPixelIndices::DColumn |
( |
const int |
colROC | ) |
|
|
inlinestatic |
Definition at line 315 of file CTPPSPixelIndices.h.
317 int dColumnId = (colROC)/2;
318 if(CTPPS_CHECK_LIMITS) {
319 if(dColumnId<0 || dColumnId>=26) {
320 edm::LogError(
"RPix")<<
"CTPPSPixelIndices: wrong dcol index "<<dColumnId<<
" "<<colROC;
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 |
Definition at line 252 of file CTPPSPixelIndices.h.
References rocIndex(), theChipsInX, and theChipsInY.
256 if(CTPPS_CHECK_LIMITS) {
257 if(col<0 || col>=(ROCSizeInY*
theChipsInY) || row<0 ||
265 int chipX = row / ROCSizeInX;
266 int chipY =
col / ROCSizeInY;
270 if(CTPPS_CHECK_LIMITS && (rocId<0 || rocId>=6) ) {
271 edm::LogError(
"RPix")<<
"CTPPSPixelIndices: wrong roc index "<<rocId;
static int rocIndex(const int chipX, const int chipY)
bool CTPPSPixelIndices::isOnEdge |
( |
const int |
col, |
|
|
const int |
row |
|
) |
| const |
|
inline |
Definition at line 281 of file CTPPSPixelIndices.h.
282 if(
col == 0 || row == 0 ||
col == (defaultDetSizeInY-1) || row == (defaultDetSizeInX-1))
return true;
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 292 of file CTPPSPixelIndices.h.
Referenced by getROCId(), and transformToROC().
295 if(CTPPS_CHECK_LIMITS) {
296 if(chipX<0 || chipX>=2 ||chipY<0 || chipY>=3) {
297 edm::LogError(
"RPix")<<
"PixelChipIndices: wrong index "<<chipX<<
" "<<chipY;
301 if(chipX==0) rocId = 5 - chipY;
302 else if(chipX==1) rocId = chipY;
304 if(CTPPS_CHECK_LIMITS) {
305 if(rocId < 0 || rocId >= (maxROCsInX*maxROCsInY) ) {
306 edm::LogError(
"RPix") <<
"CTPPSPixelIndices: Error in ROC index " << rocId ;
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 |
Definition at line 211 of file CTPPSPixelIndices.h.
References rocIndex(), theChipsInX, and theChipsInY.
Referenced by CTPPSPixelDQMSource::analyze(), and CTPPSPixelROC::toLocal().
213 if(CTPPS_CHECK_LIMITS) {
214 if(col<0 || col>=(ROCSizeInY*
theChipsInY) || row<0 ||
222 int chipX = row / ROCSizeInX;
223 int chipY =
col / ROCSizeInY;
227 if(CTPPS_CHECK_LIMITS && (rocId<0 || rocId>=6) ) {
228 edm::LogError(
"RPix")<<
"CTPPSPixelIndices: wrong roc index "<<rocId;
232 rowROC = (row%ROCSizeInX);
233 colROC = (
col%ROCSizeInY);
236 colROC = 51 - colROC;
237 rowROC = 79 - rowROC;
240 if(CTPPS_CHECK_LIMITS) {
241 if(colROC<0||colROC>=ROCSizeInY||rowROC<0||rowROC>=ROCSizeInX) {
242 edm::LogError(
"RPix")<<
"CTPPSPixelIndices: wrong index "<<colROC<<
" "<<rowROC;
static int rocIndex(const int chipX, const int chipY)
int CTPPSPixelIndices::theChipsInX |
|
private |
int CTPPSPixelIndices::theChipsInY |
|
private |
int CTPPSPixelIndices::theColsInDet |
|
private |
int CTPPSPixelIndices::theRowsInDet |
|
private |