35 const uint16_t pattern,
36 const uint16_t striptype,
41 const uint16_t trknmb,
42 const uint16_t fullbx,
43 const int16_t compCode,
45 const bool run3_quart_strip_bit,
46 const bool run3_eighth_strip_bit,
47 const uint16_t run3_pattern,
48 const uint16_t run3_slope)
52 striptype_(striptype),
60 run3_quart_strip_bit_(run3_quart_strip_bit),
61 run3_eighth_strip_bit_(run3_eighth_strip_bit),
62 run3_pattern_(run3_pattern),
63 run3_slope_(run3_slope),
99 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};
102 int slope[11] = {0, 0, -8, 8, -6, 6, -4, 4, -2, 2, 0};
139 bool returnValue =
false;
170 if ((quality1 > quality2) || (quality1 == quality2 && pattern1 > pattern2) ||
180 bool returnValue =
false;
191 bool returnValue =
true;
201 char bend = (
getBend() == 0) ?
'L' :
'R';
205 <<
" Strip = " << std::setw(2) <<
getStrip() <<
" Quality = " << std::setw(1)
207 <<
" Bend = " << std::setw(1) << bend <<
" Strip type = " << std::setw(1) << stripType
208 <<
" CFEB ID = " << std::setw(1) <<
getCFEB() <<
" BX = " << std::setw(1) <<
getBX()
209 <<
" Full BX= " << std::setw(1) <<
getFullBX() <<
" Comp Code= " << std::setw(1)
218 return o <<
"CSC CLCT #" << digi.
getTrknmb() <<
": Valid = " << digi.
isValid() <<
" BX = " << digi.
getBX()
221 <<
" Bend = " << digi.
getBend() <<
"\n"
226 return o <<
"CSC CLCT #" << digi.
getTrknmb() <<
": Valid = " << digi.
isValid() <<
" BX = " << digi.
getBX()
Log< level::Info, true > LogVerbatim
uint16_t getRun3Pattern() const
return pattern
tuple ret
prodAgent to be discontinued
uint16_t getFullBX() const
return 12-bit full BX.
void print() const
Print content of digi.
uint16_t getBX() const
return BX
uint32_t const *__restrict__ Quality * quality
static const double slope[3]
float getFractionalStrip(const uint16_t n=2) const
return the fractional strip (middle of the strip)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
static const uint16_t valid_
float getFractionalSlope() const
uint16_t getStripType() const
return striptype
bool run3_eighth_strip_bit_
uint16_t getKeyStrip(const uint16_t n=2) const
CSCCLCTDigi()
default (calls clear())
std::vector< std::vector< uint16_t > > ComparatorContainer
static const ComparatorContainer & emptyContainer()
bool operator>(const CSCCLCTDigi &) const
uint16_t getCFEB() const
return Key CFEB ID
void setRun3(bool isRun3)
ComparatorContainer hits_
bool getEighthStripBit() const
get single eighth strip bit
bool isValid() const
check CLCT validity (1 - valid CLCT)
bool operator!=(const CSCCLCTDigi &) const
True if the preceding one is false.
uint16_t getStrip() const
return halfstrip that goes from 0 to 31 in a (D)CFEB
bool run3_quart_strip_bit_
uint16_t getSlope() const
return the slope
uint16_t getPattern() const
return pattern
bool operator==(const CSCCLCTDigi &) const
True if the two LCTs have exactly the same members (except the number).
uint16_t getTrknmb() const
return track number (1,2)
void clear()
clear this CLCT
uint16_t getQuality() const
return quality of a pattern (number of layers hit!)
bool isRun3() const
Distinguish Run-1/2 from Run-3.
int16_t getCompCode() const
bool getQuartStripBit() const
get single quart strip bit