Go to the documentation of this file. 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
Phase2TrackerDigi(unsigned int row, unsigned int col)
std::ostream & operator<<(std::ostream &o, const Phase2TrackerDigi &digi)
unsigned int edge() const
Phase2TrackerDigi(unsigned int packed_channel)
Phase2TrackerDigi(unsigned int row, unsigned int col, bool ot_flag)
unsigned int column() const
static PackedDigiType pixelToChannel(unsigned int row, unsigned int col)
static unsigned int channelToRow(unsigned int ch)
bool operator<(const Phase2TrackerDigi &one, const Phase2TrackerDigi &other)
static std::pair< unsigned int, unsigned int > channelToPixel(unsigned int ch)
int operator-(const Phase2TrackerDigi &one, const Phase2TrackerDigi &other)
PackedDigiType theChannel
static unsigned int otBit(unsigned int ch)
unsigned int channel() const
static unsigned int channelToColumn(unsigned int ch)
unsigned int strip() const
bool overThreshold() const