16 bool value(
int distrip) {
return (
data_ >> distrip) & 0x1;}
31 CSCCLCTData(
int ncfebs,
int ntbins,
int firmware_version = 2007);
32 CSCCLCTData(
int ncfebs,
int ntbins,
const unsigned short *e0bbuf,
int firmware_version = 2007);
38 std::vector<CSCComparatorDigi> comparatorDigis(
int layer);
41 std::vector<CSCComparatorDigi> comparatorDigis(uint32_t idlayer,
unsigned icfeb);
44 unsigned short *
data() {
return theData;}
47 int nlines()
const {
return ncfebs_*ntbins_*6; }
56 assert(iline < nlines());
59 mptr.s = theData+
iline;
64 int iline = (layer-1) + tbin*6 + cfeb*6*ntbins_;
65 return dataWord(iline);
68 bool bitValue(
int cfeb,
int tbin,
int layer,
int distrip) {
69 return dataWord(cfeb, tbin, layer).value(distrip);
79 static void selfTest();
96 unsigned short theData[7*6*32];
int sizeInWords() const
in 16-bit words
CSCCLCTDataWord(unsigned cfeb, unsigned tbin, unsigned data)
CSCCLCTDataWord & dataWord(int iline) const
CSCCLCTDataWord & dataWord(int cfeb, int tbin, int layer) const
bool bitValue(int cfeb, int tbin, int layer, int distrip)
static std::atomic< bool > debug
static void setDebug(const bool value)
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
char data[epos_bytes_allocation]