1 #ifndef DataFormats_Phase2TrackerDigi_Phase2TrackerDigi_H
2 #define DataFormats_Phase2TrackerDigi_Phase2TrackerDigi_H
39 static std::pair<unsigned int, unsigned int>
channelToPixel(
unsigned int ch) {
46 return row | (col << 10);
51 static unsigned int channelToRow(
unsigned int ch) {
return ch & 0x03FF; }
52 static unsigned int channelToColumn(
unsigned int ch) {
return ((ch >> 10) & 0x1F); }
53 static unsigned int otBit(
unsigned int ch) {
return ((ch >> 15) & 0x1); }
69 #endif // DataFormats_Phase2TrackerDigi_Phase2TrackerDigi_H
unsigned int column() const
bool overThreshold() const
MatrixMeschach operator-(const MatrixMeschach &mat1, const MatrixMeschach &mat2)
Phase2TrackerDigi(unsigned int packed_channel)
Phase2TrackerDigi(unsigned int row, unsigned int col, bool ot_flag)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
static PackedDigiType pixelToChannel(unsigned int row, unsigned int col)
unsigned int channel() const
static unsigned int otBit(unsigned int ch)
static unsigned int channelToRow(unsigned int ch)
unsigned int edge() const
bool operator<(DTCELinkId const &lhs, DTCELinkId const &rhs)
static std::pair< unsigned int, unsigned int > channelToPixel(unsigned int ch)
PackedDigiType theChannel
unsigned int strip() const
Phase2TrackerDigi(unsigned int row, unsigned int col)
static unsigned int channelToColumn(unsigned int ch)