Go to the documentation of this file. 1 #ifndef DataFormats_CSCDigi_CSCComparatorDigi_h
2 #define DataFormats_CSCDigi_CSCComparatorDigi_h
void setComparator(int comparator)
Set Comparator data.
void print() const
Print content of digi.
float getFractionalStrip() const
Return the fractional half-strip. Counts from 0.25.
bool operator==(const CSCComparatorDigi &digi) const
Digis are equal if they are on the same strip and have same Comparator data.
void setStrip(int strip)
Set the strip number.
int getComparator() const
Get Comparator readings. Can be 0 or 1.
int getTimeBin() const
Return bin number of first time bin which is ON. Counts from 0.
int getCFEB() const
Get the CFEB number. Counts from 0.
CSCComparatorDigi()
comparator here can be either 0 or 1 for left or right halfstrip of given strip
std::vector< int > getTimeBinsOn() const
std::ostream & operator<<(std::ostream &o, const CSCComparatorDigi &digi)
Output operator.
int getTimeBinWord() const
Return the word with each bit corresponding to a time bin.
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.