1 #ifndef DataFormats_Phase2TrackerDigi_Phase2TrackerDigi_H 2 #define DataFormats_Phase2TrackerDigi_Phase2TrackerDigi_H 42 static std::pair<unsigned int,unsigned int>
channelToPixel(
unsigned int ch) {
54 static unsigned int channelToRow(
unsigned int ch) {
return ch & 0x03FF; }
55 static unsigned int channelToColumn(
unsigned int ch) {
return ((ch >> 10) & 0x1F); }
56 static unsigned int otBit(
unsigned int ch) {
return ((ch >> 15) & 0x1) ; }
72 return o <<
" " << digi.
channel();
75 #endif // DataFormats_Phase2TrackerDigi_Phase2TrackerDigi_H unsigned int column() const
bool overThreshold() const
bool operator<(const Phase2TrackerDigi &one, const Phase2TrackerDigi &other)
Phase2TrackerDigi(unsigned int packed_channel)
Phase2TrackerDigi(unsigned int row, unsigned int col, bool ot_flag)
int operator-(const Phase2TrackerDigi &one, const Phase2TrackerDigi &other)
static PackedDigiType pixelToChannel(unsigned int row, unsigned int col)
unsigned int channel() const
uint16_t packedPosition() const
std::ostream & operator<<(std::ostream &o, const Phase2TrackerDigi &digi)
static unsigned int otBit(unsigned int ch)
static unsigned int channelToRow(unsigned int ch)
unsigned int edge() const
PackedDigiType theChannel
unsigned int strip() const
Phase2TrackerDigi(unsigned int row, unsigned int col)
static std::pair< unsigned int, unsigned int > channelToPixel(unsigned int ch)
static unsigned int channelToColumn(unsigned int ch)