1 #ifndef DataFormats_Phase2TrackerDigi_Phase2TrackerDigi_H 2 #define DataFormats_Phase2TrackerDigi_Phase2TrackerDigi_H 39 static std::pair<unsigned int, unsigned int>
channelToPixel(
unsigned int ch) {
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) & 0
x1); }
58 return one.channel() <
other.channel();
69 #endif // DataFormats_Phase2TrackerDigi_Phase2TrackerDigi_H
unsigned int column() 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)
std::ostream & operator<<(std::ostream &o, const Phase2TrackerDigi &digi)
static unsigned int otBit(unsigned int ch)
static unsigned int channelToRow(unsigned int ch)
static std::pair< unsigned int, unsigned int > channelToPixel(unsigned int ch)
bool overThreshold() const
PackedDigiType theChannel
unsigned int channel() const
Phase2TrackerDigi(unsigned int row, unsigned int col)
static unsigned int channelToColumn(unsigned int ch)
unsigned int edge() const
unsigned int strip() const