1 #ifndef PPSObjects_PixelROC_H
2 #define PPSObjects_PixelROC_H
38 std::pair<int, int>
toLocal(
const std::pair<int, int> &modulePixel)
const {
39 int rocPixelRow, rocPixelColumn, idDU;
40 int modulePixelRow = modulePixel.first;
41 int modulePixelColumn = modulePixel.second;
45 std::pair<int, int> rocPixel;
46 rocPixel = std::make_pair(rocPixelRow, rocPixelColumn);
51 std::pair<int, int>
toGlobal(
const std::pair<int, int> &rocPixel)
const {
52 int modulePixelRow = -1;
53 int modulePixelColumn = -1;
54 int rocPixelRow = rocPixel.first;
55 int rocPixelColumn = rocPixel.second;
59 std::pair<int, int> modulePixel;
60 modulePixel = std::make_pair(modulePixelRow, modulePixelColumn);
66 int modulePixelRow = -1;
67 int modulePixelColumn = -1;
68 int rocDcol = rocPixel.first;
69 int rocPxl = rocPixel.second;
78 std::pair<int, int> modulePixel;
79 modulePixel = std::make_pair(modulePixelRow, modulePixelColumn);
static int convertDcolToCol(const int dcol, const int pix, int &colROC, int &rowROC)
std::pair< int, int > toLocal(const std::pair< int, int > &modulePixel) const
std::pair< int, int > toGlobalfromDcol(const std::pair< int, int > &rocPixel) const
std::string print(int depth=0) const
printout for debug
uint32_t rawId() const
return the DetUnit to which this ROC belongs to.
unsigned int idInLink() const
id of this ROC in parent Link.
int transformToModule(const int colROC, const int rowROC, const int rocId, int &col, int &row) const
#define COND_SERIALIZABLE
std::pair< int, int > toGlobal(const std::pair< int, int > &rocPixel) const
int transformToROC(const int col, const int row, int &rocId, int &colROC, int &rowROC) const
unsigned int idInDetUnit() const
id of this ROC in DetUnit etermined by token path
CTPPSPixelIndices theIndices