Go to the documentation of this file. 1 #ifndef EventFilter_CSCRawToDigi_CSCComparatorData_h
2 #define EventFilter_CSCRawToDigi_CSCComparatorData_h
14 bool value(
int distrip) {
return (
data_ >> distrip) & 0x1; }
28 CSCComparatorData(
int ncfebs,
int ntbins,
const unsigned short *e0bbuf,
int firmware_version = 2007);
37 std::vector<CSCComparatorDigi>
comparatorDigis(uint32_t idlayer,
unsigned icfeb);
54 const unsigned short *
s;
int sizeInWords() const
in 16-bit words
CSCComparatorDataWord(unsigned cfeb, unsigned tbin, unsigned data)
bool bitValue(int cfeb, int tbin, int layer, int distrip)
static void setDebug(const bool value)
constexpr std::array< uint8_t, layerIndexSize > layer
CSCComparatorDataWord & dataWord(int cfeb, int tbin, int layer) const
CSCComparatorDataWord & dataWord(int iline) const
std::vector< CSCComparatorDigi > comparatorDigis(int layer)
layers count from one
unsigned short theData[7 *6 *32]
CSCComparatorData(const CSCTMBHeader *tmbHeader)
void add(const CSCComparatorDigi &digi, int layer)
TODO for packing. Doesn't do flipping yet.
char data[epos_bytes_allocation]
void set(int distrip, bool value)
@ not right! doesn't set zero
static std::atomic< bool > debug