1 #ifndef DataFormats_CSCDigi_CSCCLCTDigi_h
2 #define DataFormats_CSCDigi_CSCCLCTDigi_h
28 const uint16_t pattern,
29 const uint16_t striptype,
34 const uint16_t trknmb = 0,
35 const uint16_t fullbx = 0,
36 const int16_t compCode = -1,
38 const bool run3_quart_strip_bit =
false,
39 const bool run3_eighth_strip_bit =
false,
40 const uint16_t run3_pattern = 0,
41 const uint16_t run3_slope = 0);
uint16_t getRun3Pattern() const
return pattern
uint16_t getFullBX() const
return 12-bit full BX.
void setQuartStripBit(const bool quartStripBit)
set single quart strip bit
void print() const
Print content of digi.
uint16_t getBX() const
return BX
void setBend(const uint16_t bend)
set bend
static const double slope[3]
void setStrip(const uint16_t strip)
set strip
void setStripType(const uint16_t stripType)
set stripType
float getFractionalStrip(const uint16_t n=2) const
return the fractional strip (middle of the strip)
void setPattern(const uint16_t pattern)
set pattern
std::ostream & operator<<(std::ostream &out, const ALILine &li)
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 setCompCode(const int16_t code)
void setRun3(bool isRun3)
ComparatorContainer hits_
void setSlope(const uint16_t slope)
set the slope
void setRun3Pattern(const uint16_t pattern)
set pattern
void setValid(const uint16_t valid)
set valid
void setHits(const 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
void setQuality(const uint16_t quality)
set quality
bool run3_quart_strip_bit_
const ComparatorContainer & getHits() const
void setFullBX(const uint16_t fullbx)
Set 12-bit full BX.
uint16_t getSlope() const
return the slope
uint16_t getPattern() const
return pattern
void setBX(const uint16_t bx)
set bx
void setCFEB(const uint16_t cfeb)
set Key CFEB ID
void setEighthStripBit(const bool eighthStripBit)
set single eighth strip bit
uint16_t getBXData() const
return 2-bit BX as in data
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
void setTrknmb(const uint16_t number)
Set track number (1,2) after sorting CLCTs.
bool getQuartStripBit() const
get single quart strip bit