1 #ifndef PPSObjects_PixelROC_H 2 #define PPSObjects_PixelROC_H 44 std::pair<int, int>
toLocal(
const std::pair<int, int> &modulePixel)
const {
45 int rocPixelRow, rocPixelColumn, idDU;
46 int modulePixelRow = modulePixel.first;
47 int modulePixelColumn = modulePixel.second;
51 std::pair<int, int> rocPixel;
52 rocPixel = std::make_pair(rocPixelRow, rocPixelColumn);
57 std::pair<int, int>
toGlobal(
const std::pair<int, int> &rocPixel)
const {
58 int modulePixelRow = -1;
59 int modulePixelColumn = -1;
60 int rocPixelRow = rocPixel.first;
61 int rocPixelColumn = rocPixel.second;
65 std::pair<int, int> modulePixel;
66 modulePixel = std::make_pair(modulePixelRow, modulePixelColumn);
72 int modulePixelRow = -1;
73 int modulePixelColumn = -1;
74 int rocDcol = rocPixel.first;
75 int rocPxl = rocPixel.second;
84 std::pair<int, int> modulePixel;
85 modulePixel = std::make_pair(modulePixelRow, modulePixelColumn);
static int convertDcolToCol(const int dcol, const int pix, int &colROC, int &rowROC)
void setParameters(uint32_t du, int idInDU, int idLk)
std::string print(int depth=0) const
printout for debug
unsigned int idInDetUnit() const
id of this ROC in DetUnit etermined by token path
int transformToROC(const int col, const int row, int &rocId, int &colROC, int &rowROC) const
uint32_t rawId() const
return the DetUnit to which this ROC belongs to.
unsigned int idInLink() const
id of this ROC in parent Link.
std::pair< int, int > toLocal(const std::pair< int, int > &modulePixel) const
#define COND_SERIALIZABLE
int transformToModule(const int colROC, const int rowROC, const int rocId, int &col, int &row) const
CTPPSPixelIndices theIndices
std::pair< int, int > toGlobalfromDcol(const std::pair< int, int > &rocPixel) const
std::pair< int, int > toGlobal(const std::pair< int, int > &rocPixel) const