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
bool bitValue(int cfeb, int tbin, int layer, int distrip)
CSCComparatorDataWord(unsigned cfeb, unsigned tbin, unsigned data)
constexpr std::array< uint8_t, layerIndexSize > layer
static void setDebug(const bool value)
CSCComparatorDataWord & dataWord(int iline) const
CSCComparatorDataWord & dataWord(int cfeb, int tbin, int layer) const
void add(const CSCComparatorDigi &digi, int layer)
TODO for packing. Doesn't do flipping yet.
CSCComparatorData(const CSCTMBHeader *tmbHeader)
char data[epos_bytes_allocation]
static std::atomic< bool > debug
std::vector< CSCComparatorDigi > comparatorDigis(int layer)
layers count from one
unsigned short theData[7 *6 *32]