1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "DataFormats/GEMDigi/interface/ME0Digi.h"
#include <iostream>
ME0Digi::ME0Digi(int strip, int bx) : strip_(strip), bx_(bx) {}
ME0Digi::ME0Digi() : strip_(0), bx_(0) {}
bool ME0Digi::operator==(const ME0Digi& digi) const { return strip_ == digi.strip() and bx_ == digi.bx(); }
bool ME0Digi::operator!=(const ME0Digi& digi) const { return strip_ != digi.strip() or bx_ != digi.bx(); }
bool ME0Digi::operator<(const ME0Digi& digi) const {
if (digi.bx() == bx_)
return digi.strip() < strip_;
else
return digi.bx() < bx_;
}
std::ostream& operator<<(std::ostream& o, const ME0Digi& digi) {
return o << " strip: " << digi.strip() << " bx: " << digi.bx();
}
|