1 #ifndef CTPPSReadoutObjects_PixelROC_H 2 #define CTPPSReadoutObjects_PixelROC_H 42 std::pair<int,int>
toLocal(
const std::pair<int,int> &modulePixel )
const {
44 int rocPixelRow, rocPixelColumn, idDU;
45 int modulePixelRow = modulePixel.first;
46 int modulePixelColumn = modulePixel.second;
50 std::pair<int,int> rocPixel;
51 rocPixel = std::make_pair(rocPixelRow, rocPixelColumn);
57 std::pair<int,int>
toGlobal(
const std::pair<int,int> &rocPixel )
const {
59 int modulePixelRow=-1;
60 int modulePixelColumn=-1;
61 int rocPixelRow = rocPixel.first;
62 int rocPixelColumn = rocPixel.second;
66 std::pair<int,int> modulePixel;
67 modulePixel = std::make_pair(modulePixelRow, modulePixelColumn);
75 int modulePixelRow=-1;
76 int modulePixelColumn=-1;
77 int rocDcol = rocPixel.first;
78 int rocPxl = rocPixel.second;
87 std::pair<int,int> modulePixel;
88 modulePixel = std::make_pair(modulePixelRow, modulePixelColumn);
static int convertDcolToCol(const int dcol, const int pix, int &colROC, int &rowROC)
std::string print(int depth=0) const
printout for debug
std::pair< int, int > toLocal(const std::pair< int, int > &modulePixel) const
std::pair< int, int > toGlobal(const std::pair< int, int > &rocPixel) 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.
int transformToModule(const int colROC, const int rowROC, const int rocId, int &col, int &row) const
#define COND_SERIALIZABLE
std::pair< int, int > toGlobalfromDcol(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