CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
CTPPSPixelROC Class Reference

#include <CTPPSPixelROC.h>

Public Member Functions

 CTPPSPixelROC ()
 
 CTPPSPixelROC (uint32_t du, int idInDU, int idLk)
 
unsigned int idInDetUnit () const
 id of this ROC in DetUnit etermined by token path More...
 
unsigned int idInLink () const
 id of this ROC in parent Link. More...
 
std::string print (int depth=0) const
 printout for debug More...
 
uint32_t rawId () const
 return the DetUnit to which this ROC belongs to. More...
 
std::pair< int, int > toGlobal (const std::pair< int, int > &rocPixel) const
 
std::pair< int, int > toGlobalfromDcol (const std::pair< int, int > &rocPixel) const
 
std::pair< int, int > toLocal (const std::pair< int, int > &modulePixel) const
 
 ~CTPPSPixelROC ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

uint32_t theDetUnit
 
unsigned int theIdDU
 
unsigned int theIdLk
 
CTPPSPixelIndices theIndices
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 19 of file CTPPSPixelROC.h.

Constructor & Destructor Documentation

CTPPSPixelROC::CTPPSPixelROC ( )
inline

Definition at line 22 of file CTPPSPixelROC.h.

Referenced by ~CTPPSPixelROC().

22  : theDetUnit(0), theIdDU(0), theIdLk(0) {
23  }
unsigned int theIdDU
unsigned int theIdLk
uint32_t theDetUnit
CTPPSPixelROC::~CTPPSPixelROC ( )
inline

Definition at line 25 of file CTPPSPixelROC.h.

References CTPPSPixelROC().

25  {
26  }
CTPPSPixelROC::CTPPSPixelROC ( uint32_t  du,
int  idInDU,
int  idLk 
)

ctor with DetUnit id, ROC number in DU (given by token passage), ROC number in Link (given by token passage),

Definition at line 3 of file CTPPSPixelROC.cc.

4  : theDetUnit(du), theIdDU(idDU), theIdLk(idLk) {
5 }
unsigned int theIdDU
unsigned int theIdLk
uint32_t theDetUnit

Member Function Documentation

unsigned int CTPPSPixelROC::idInDetUnit ( ) const
inline

id of this ROC in DetUnit etermined by token path

Definition at line 37 of file CTPPSPixelROC.h.

References theIdDU.

37 { return theIdDU; }
unsigned int theIdDU
unsigned int CTPPSPixelROC::idInLink ( ) const
inline

id of this ROC in parent Link.

Definition at line 40 of file CTPPSPixelROC.h.

References theIdLk.

40 { return theIdLk; }
unsigned int theIdLk
std::string CTPPSPixelROC::print ( int  depth = 0) const

printout for debug

Referenced by toGlobalfromDcol().

uint32_t CTPPSPixelROC::rawId ( ) const
inline

return the DetUnit to which this ROC belongs to.

Definition at line 34 of file CTPPSPixelROC.h.

References theDetUnit.

Referenced by CTPPSPixelDataFormatter::interpretRawData().

34 { return theDetUnit; }
uint32_t theDetUnit
template<class Archive >
void CTPPSPixelROC::serialize ( Archive &  ar,
const unsigned int  version 
)
private
std::pair<int,int> CTPPSPixelROC::toGlobal ( const std::pair< int, int > &  rocPixel) const
inline

Definition at line 57 of file CTPPSPixelROC.h.

References theIdDU, theIndices, and CTPPSPixelIndices::transformToModule().

57  {
58 
59  int modulePixelRow=-1;
60  int modulePixelColumn=-1;
61  int rocPixelRow = rocPixel.first;
62  int rocPixelColumn = rocPixel.second;
63 
64  theIndices.transformToModule(rocPixelColumn, rocPixelRow, theIdDU, modulePixelColumn, modulePixelRow);
65 
66  std::pair<int,int> modulePixel;
67  modulePixel = std::make_pair(modulePixelRow, modulePixelColumn);
68 
69  return modulePixel;
70 
71  }
unsigned int theIdDU
int transformToModule(const int colROC, const int rowROC, const int rocId, int &col, int &row) const
CTPPSPixelIndices theIndices
std::pair<int,int> CTPPSPixelROC::toGlobalfromDcol ( const std::pair< int, int > &  rocPixel) const
inline

Definition at line 73 of file CTPPSPixelROC.h.

References CTPPSPixelIndices::convertDcolToCol(), particleFlowClusterECALTimeSelected_cfi::depth, print(), AlCaHLTBitMon_QueryRunRegistry::string, theIdDU, theIndices, and CTPPSPixelIndices::transformToModule().

Referenced by CTPPSPixelDataFormatter::interpretRawData().

73  {
74 
75  int modulePixelRow=-1;
76  int modulePixelColumn=-1;
77  int rocDcol = rocPixel.first;
78  int rocPxl = rocPixel.second;
79 
80  int rocPixelRow ;
81  int rocPixelColumn ;
82 
83  theIndices.convertDcolToCol(rocDcol, rocPxl, rocPixelColumn, rocPixelRow);
84 
85  theIndices.transformToModule(rocPixelColumn, rocPixelRow, theIdDU, modulePixelColumn, modulePixelRow);
86 
87  std::pair<int,int> modulePixel;
88  modulePixel = std::make_pair(modulePixelRow, modulePixelColumn);
89 
90  return modulePixel;
91 
92  }
static int convertDcolToCol(const int dcol, const int pix, int &colROC, int &rowROC)
unsigned int theIdDU
int transformToModule(const int colROC, const int rowROC, const int rocId, int &col, int &row) const
CTPPSPixelIndices theIndices
std::pair<int,int> CTPPSPixelROC::toLocal ( const std::pair< int, int > &  modulePixel) const
inline

Definition at line 42 of file CTPPSPixelROC.h.

References theIndices, and CTPPSPixelIndices::transformToROC().

42  {
43 
44  int rocPixelRow, rocPixelColumn, idDU;
45  int modulePixelRow = modulePixel.first;
46  int modulePixelColumn = modulePixel.second;
47 
48  theIndices.transformToROC(modulePixelColumn, modulePixelRow, idDU, rocPixelColumn, rocPixelRow);
49 
50  std::pair<int,int> rocPixel;
51  rocPixel = std::make_pair(rocPixelRow, rocPixelColumn);
52 
53  return rocPixel;
54 
55  }
int transformToROC(const int col, const int row, int &rocId, int &colROC, int &rowROC) const
CTPPSPixelIndices theIndices

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 108 of file CTPPSPixelROC.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 108 of file CTPPSPixelROC.h.

Member Data Documentation

uint32_t CTPPSPixelROC::theDetUnit
private

Definition at line 103 of file CTPPSPixelROC.h.

Referenced by rawId().

unsigned int CTPPSPixelROC::theIdDU
private

Definition at line 104 of file CTPPSPixelROC.h.

Referenced by idInDetUnit(), toGlobal(), and toGlobalfromDcol().

unsigned int CTPPSPixelROC::theIdLk
private

Definition at line 104 of file CTPPSPixelROC.h.

Referenced by idInLink().

CTPPSPixelIndices CTPPSPixelROC::theIndices
private

Definition at line 106 of file CTPPSPixelROC.h.

Referenced by toGlobal(), toGlobalfromDcol(), and toLocal().