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
bool operator==(const CSCCLCTDigi &) const
True if the two LCTs have exactly the same members (except the number).
ret
prodAgent to be discontinued
static const double slope[3]
uint16_t getTrknmb() const
return track number (1,2)
uint16_t getQuality() const
return quality of a pattern (number of layers hit!)
uint16_t getKeyStrip(const uint16_t n=2) const
bool getEighthStripBit() const
get single eighth strip bit
static const uint16_t valid_
static const ComparatorContainer & emptyContainer()
bool isRun3() const
Distinguish Run-1/2 from Run-3.
int16_t getCompCode() const
float getFractionalStrip(const uint16_t n=2) const
return the fractional strip (middle of the strip)
bool run3_eighth_strip_bit_
CSCCLCTDigi()
default (calls clear())
uint16_t getStrip() const
return halfstrip that goes from 0 to 31 in a (D)CFEB
std::vector< std::vector< uint16_t > > ComparatorContainer
bool getQuartStripBit() const
get single quart strip bit
uint16_t getFullBX() const
return 12-bit full BX.
void setRun3(bool isRun3)
ComparatorContainer hits_
uint16_t getStripType() const
return striptype
bool isValid() const
check CLCT validity (1 - valid CLCT)
std::ostream & operator<<(std::ostream &o, const CSCCLCTDigi &digi)
bool operator>(const CSCCLCTDigi &) const
uint16_t getCFEB() const
return Key CFEB ID
bool run3_quart_strip_bit_
void print() const
Print content of digi.
uint16_t getBX() const
return BX
uint16_t getPattern() const
return pattern
uint16_t getSlope() const
return the slope
uint16_t getRun3Pattern() const
return pattern
void clear()
clear this CLCT
float getFractionalSlope() const
bool operator!=(const CSCCLCTDigi &) const
True if the preceding one is false.