16 : strip_( strip ), comparator_( comparator ), timeBinWord_( timeBinWord ) {
21 : strip_( 0 ), comparator_( 0 ), timeBinWord_( 0 ) {
60 for(
int i=0;
i<16;++
i) {
71 std::vector<int> tbins;
74 for(
int i=0;
i<16;++
i) {
75 if(tbit & one) tbins.push_back(
i);
96 std::ostringstream ost;
97 ost <<
"CSCComparatorDigi | strip " <<
getStrip()
99 <<
" | first time bin " <<
getTimeBin() <<
" | time bins on ";
101 for(
unsigned int i=0;
i<tbins.size();
i++) {ost << tbins[
i] <<
" ";}
int getStrip() const
Get the strip number.
void setComparator(int comparator)
Set Comparator data.
void print() const
Print content of digi.
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
std::ostream & operator<<(std::ostream &out, const ALILine &li)
int getComparator() const
Get Comparator readings.
bool operator==(const CSCComparatorDigi &digi) const
Digis are equal if they are on the same strip and have same Comparator data.
int getTimeBin() const
Return bin number of first time bin which is ON. Counts from 0.
bool operator<(const CSCComparatorDigi &digi) const
sort by time first, then by strip
std::vector< int > getTimeBinsOn() const
int getTimeBinWord() const
Return the word with each bit corresponding to a time bin.