20 const int patternb,
const int keywire,
const int bx,
49 bool returnValue =
false;
52 if (getBX() < rhs.
getBX()) {returnValue =
true;}
53 if (getBX() != rhs.
getBX()) {
return returnValue;}
58 int quality1 = getQuality();
60 if (quality1 > quality2) {returnValue =
true;}
61 else if (quality1 == quality2 && getKeyWG() > rhs.
getKeyWG())
68 bool returnValue =
false;
80 bool returnValue =
true;
81 if ((*
this) == rhs) returnValue =
false;
88 std::cout <<
"CSC ALCT #" << setw(1) << getTrknmb()
89 <<
": Valid = " << setw(1) << isValid()
90 <<
" Quality = " << setw(2) << getQuality()
91 <<
" Accel. = " << setw(1) << getAccelerator()
92 <<
" PatternB = " << setw(1) << getCollisionB()
93 <<
" Key wire group = " << setw(3) << getKeyWG()
94 <<
" BX = " << setw(2) << getBX()
95 <<
" Full BX= " << std::setw(1) << getFullBX() << std::endl;
98 std::cout <<
"Not a valid Anode LCT." << std::endl;
103 return o <<
"CSC ALCT #" << digi.
getTrknmb()
104 <<
": Valid = " << digi.
isValid()
108 <<
" Key wire group = " << digi.
getKeyWG()
109 <<
" BX = " << digi.
getBX();
bool isValid() const
check ALCT validity (1 - valid ALCT)
void clear()
clear this ALCT
ostream & operator<<(std::ostream &o, vector< std::string > const &iValue)
bool operator!=(const CSCALCTDigi &) const
True if the preceding one is false.
static const uint16_t valid_
bool operator>(const CSCALCTDigi &) const
int getTrknmb() const
return track number (1,2)
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
int getBX() const
return BX - five low bits of BXN counter tagged by the ALCT
bool operator==(const CSCALCTDigi &) const
True if all members (except the number) of both ALCTs are equal.
int getQuality() const
return quality of a pattern
int getAccelerator() const
void print() const
Print content of digi.
int getKeyWG() const
return key wire group
int getCollisionB() const