|
|
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,
29 const bool run3_quart_strip_bit,
30 const bool run3_eighth_strip_bit,
31 const uint16_t run3_pattern,
32 const uint16_t run3_slope)
36 striptype_(striptype),
44 run3_quart_strip_bit_(run3_quart_strip_bit),
45 run3_eighth_strip_bit_(run3_eighth_strip_bit),
46 run3_pattern_(run3_pattern),
47 run3_slope_(run3_slope),
91 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};
94 int slope[11] = {0, 0, -8, 8, -6, 6, -4, 4, -2, 2, 0};
131 bool returnValue =
false;
162 if ((quality1 > quality2) || (quality1 == quality2 && pattern1 > pattern2) ||
172 bool returnValue =
false;
183 bool returnValue =
true;
193 char bend = (
getBend() == 0) ?
'L' :
'R';
197 <<
" Strip = " << std::setw(2) <<
getStrip() <<
" Quality = " << std::setw(1)
199 <<
" Bend = " << std::setw(1) << bend <<
" Strip type = " << std::setw(1) << stripType
200 <<
" CFEB ID = " << std::setw(1) <<
getCFEB() <<
" BX = " << std::setw(1) <<
getBX()
201 <<
" Full BX= " << std::setw(1) <<
getFullBX() <<
" Comp Code= " << std::setw(1)
210 return o <<
"CSC CLCT #" << digi.
getTrknmb() <<
": Valid = " << digi.
isValid() <<
" BX = " << digi.
getBX()
213 <<
" Bend = " << digi.
getBend() <<
"\n"
218 return o <<
"CSC CLCT #" << digi.
getTrknmb() <<
": Valid = " << digi.
isValid() <<
" BX = " << digi.
getBX()
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
bool getEighthStripBit() const
get single eighth strip bit
uint16_t getKeyStrip(const uint16_t n=2) const
bool run3_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 getQuartStripBit() const
get single quart strip bit
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
CSCCLCTDigi()
default (calls clear())
uint16_t getStrip() const
return halfstrip that goes from 0 to 31 in a (D)CFEB
bool run3_quart_strip_bit_
uint16_t getStripType() const
return striptype
bool isValid() const
check CLCT validity (1 - valid CLCT)
uint16_t getSlope() const
return the slope
uint16_t getBX() const
return BX
Log< level::Info, true > LogVerbatim
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