Go to the documentation of this file.
14 bool value(
int distrip) {
return (
data_ >> distrip) & 0x1; }
27 CSCCLCTData(
int ncfebs,
int ntbins,
int firmware_version = 2007);
28 CSCCLCTData(
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;
66 bool bitValue(
int cfeb,
int tbin,
int layer,
int distrip) {
return dataWord(cfeb, tbin, layer).
value(distrip); }
void set(int distrip, bool value)
@ not right! doesn't set zero
unsigned short theData[7 *6 *32]
CSCCLCTDataWord & dataWord(int cfeb, int tbin, int layer) const
bool bitValue(int cfeb, int tbin, int layer, int distrip)
std::vector< CSCComparatorDigi > comparatorDigis(int layer)
layers count from one
int sizeInWords() const
in 16-bit words
void add(const CSCComparatorDigi &digi, int layer)
TODO for packing. Doesn't do flipping yet.
CSCCLCTDataWord & dataWord(int iline) const
static std::atomic< bool > debug
CSCCLCTData(const CSCTMBHeader *tmbHeader)
static void setDebug(const bool value)
char data[epos_bytes_allocation]
CSCCLCTDataWord(unsigned cfeb, unsigned tbin, unsigned data)