Go to the documentation of this file.
20 const uint16_t striptype,
25 const uint16_t trknmb,
26 const uint16_t fullbx,
27 const int16_t compCode,
32 striptype_(striptype),
123 0.0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1.0, 1.125, 1.25, 1.375, 1.5, 1.625, 1.75, 2.0, 2.5};
126 int slope[11] = {0, 0, -8, 8, -6, 6, -4, 4, -2, 2, 0};
189 bool returnValue =
false;
220 if ((quality1 > quality2) || (quality1 == quality2 && pattern1 > pattern2) ||
230 bool returnValue =
false;
241 bool returnValue =
true;
255 <<
" Strip = " << std::setw(2) <<
getStrip() <<
" Quality = " << std::setw(1)
257 <<
" Bend = " << std::setw(1) <<
bend <<
" Strip type = " << std::setw(1) << stripType
258 <<
" CFEB ID = " << std::setw(1) <<
getCFEB() <<
" BX = " << std::setw(1) <<
getBX()
259 <<
" Full BX= " << std::setw(1) <<
getFullBX() <<
" Comp Code= " << std::setw(1)
uint16_t getTrknmb() const
return track number (1,2)
bool operator!=(const CSCCLCTDigi &) const
True if the preceding one is false.
int16_t getCompCode() const
void setPattern(const uint16_t pattern)
set pattern
uint16_t getDataWord(const uint16_t word, const unsigned shift, const unsigned mask) const
void setEighthStrip(const bool eighthStrip)
set single eighth strip bit
uint16_t getKeyStrip(const uint16_t n=2) const
void setQuartStrip(const bool quartStrip)
set single quart strip bit
bool getEighthStrip() const
get single eighth strip bit
const uint32_t *__restrict__ Quality * quality
static const uint16_t valid_
ComparatorContainer hits_
uint16_t getQuality() const
return quality of a pattern (number of layers hit!)
bool isRun3() const
Distinguish Run-1/2 from Run-3.
float getFractionalStrip(const uint16_t n=2) const
return the fractional strip (middle of the strip)
void setRun3(bool isRun3)
uint16_t getFullBX() const
return 12-bit full BX.
bool operator>(const CSCCLCTDigi &) const
uint16_t getStrip() const
return halfstrip that goes from 0 to 31 in a (D)CFEB
void setRun3Pattern(const uint16_t pattern)
set pattern
uint16_t getStripType() const
return striptype
bool getQuartStrip() const
get single quart strip bit
void setDataWord(const uint16_t newWord, uint16_t &word, const unsigned shift, const unsigned mask)
bool isValid() const
check CLCT validity (1 - valid CLCT)
void setSlope(const uint16_t slope)
set the slope
uint16_t getSlope() const
return the slope
uint16_t getBX() const
return BX
static unsigned const int shift
Log< level::Info, true > LogVerbatim
double bend(double r, double rinv, double stripPitch)
void clear()
clear this CLCT
float getFractionalSlope() const
uint16_t getCFEB() const
return Key CFEB ID
void print() const
Print content of digi.
bool operator==(const CSCCLCTDigi &) const
True if the two LCTs have exactly the same members (except the number).
uint16_t getPattern() const
return pattern
static const double slope[3]
std::ostream & operator<<(std::ostream &o, const CSCCLCTDigi &digi)
uint16_t getRun3Pattern() const
return pattern