17 : strip_(
strip), comparator_(comparator), timeBinWord_(timeBinWord) {}
55 for (
int i = 0;
i < 16; ++
i) {
82 std::vector<int> tbins;
84 const uint16_t
one = 1;
85 for (
int i = 0;
i < 16; ++
i) {
104 std::ostringstream ost;
105 ost <<
"CSCComparatorDigi | strip " <<
getStrip() <<
" | comparator " <<
getComparator() <<
" | first time bin " 108 std::copy(tbins.begin(), tbins.end(), std::ostream_iterator<int>(ost,
" "));
114 <<
", First Time Bin On: " << digi.
getTimeBin() <<
", Time Bins On: ";
116 std::copy(tbins.begin(), tbins.end(), std::ostream_iterator<int>(
o,
" "));
Log< level::Info, true > LogVerbatim
int getComparator() const
Get Comparator readings. Can be 0 or 1.
bool operator==(const CSCComparatorDigi &digi) const
Digis are equal if they are on the same strip and have same Comparator data.
void setComparator(int comparator)
Set Comparator data.
int getTimeBin() const
Return bin number of first time bin which is ON. Counts from 0.
void setStrip(int strip)
Set the strip number.
CSCComparatorDigi()
comparator here can be either 0 or 1 for left or right halfstrip of given strip
float getFractionalStrip() const
Return the fractional half-strip. Counts from 0.25.
int getCFEB() const
Get the CFEB number. Counts from 0.
std::vector< int > getTimeBinsOn() const
int getTimeBinWord() const
Return the word with each bit corresponding to a time bin.
std::ostream & operator<<(std::ostream &o, const CSCComparatorDigi &digi)
Output operator.
int getHalfStrip() const
Get the associated halfstrip number for this comparator digi. Counts from 0.
bool operator<(const CSCComparatorDigi &digi) const
sort by time first, then by strip
int getStrip() const
Get the strip number. Counts from 1.
int getDiStrip() const
Get the distrip number. Counts from 0.
void print() const
Print content of digi.
static constexpr int NUM_STRIPS_PER_CFEB