1 #ifndef CSCAnodeData2006_h 2 #define CSCAnodeData2006_h 16 bool isHit(
unsigned wireGroup)
const {
17 assert(wireGroup < 8);
52 unsigned short *
data()
override {
return theDataFrames;}
54 unsigned short int sizeInWords()
const override {
return nAFEBs_ * nTimeBins_ * 6 * 2;}
57 std::vector<CSCWireDigi> wireDigis(
int layer)
const override;
61 static void selfTest();
69 int index(
int afeb,
int tbin,
int layer)
const;
71 void addHit(
int afeb,
int tbin,
int layer,
int halfLayer,
unsigned wireBit);
74 unsigned short theDataFrames[2700];
unsigned short * data() override
void addHit(unsigned wireBit)
sets a bit, from 0 to 7
CSCAnodeDataFrame2006(unsigned short frame)
unsigned short int sizeInWords() const override
the amount of the input binary buffer read, in 16-bit words
unsigned tbin() const
time bin
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
unsigned short data() const
int nAFEBs_
in 2007 format the max number of frames is 1860
bool isHit(unsigned wireGroup) const
given a wiregroup between 0 and 7, it tells whether this bit was on
unsigned short frame() const