Go to the documentation of this file. 1 #ifndef DataFormats_CSCDigi_CSCCLCTDigi_h
2 #define DataFormats_CSCDigi_CSCCLCTDigi_h
34 const uint16_t striptype,
39 const uint16_t trknmb = 0,
40 const uint16_t fullbx = 0,
41 const int16_t compCode = -1,
200 void setDataWord(
const uint16_t newWord, uint16_t&
word,
const unsigned shift,
const unsigned mask);
void setTrknmb(const uint16_t number)
Set track number (1,2) after sorting CLCTs.
void setStripType(const uint16_t stripType)
set stripType
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 setBend(const uint16_t bend)
set bend
void setPattern(const uint16_t pattern)
set pattern
void setStrip(const uint16_t strip)
set strip
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
std::ostream & operator<<(std::ostream &o, const CSCCLCTDigi &digi)
const uint32_t *__restrict__ Quality * quality
ComparatorContainer hits_
uint16_t getQuality() const
return quality of a pattern (number of layers hit!)
void setValid(const uint16_t valid)
set valid
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)
uint16_t getBXData() const
return 2-bit BX as in data
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
std::vector< std::vector< uint16_t > > ComparatorContainer
uint16_t getStripType() const
return striptype
bool getQuartStrip() const
get single quart strip bit
void setQuality(const uint16_t quality)
set quality
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 setCompCode(const int16_t code)
void setCFEB(const uint16_t cfeb)
set Key CFEB ID
void setSlope(const uint16_t slope)
set the slope
void setHits(const ComparatorContainer &hits)
uint16_t getSlope() const
return the slope
void setFullBX(const uint16_t fullbx)
Set 12-bit full BX.
uint16_t getBX() const
return BX
static unsigned const int shift
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 setBX(const uint16_t bx)
set bx
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]
const ComparatorContainer & getHits() const
uint16_t getRun3Pattern() const
return pattern