1 #ifndef CSCAnodeData2006_h 2 #define CSCAnodeData2006_h 16 bool isHit(
unsigned wireGroup)
const {
17 assert(wireGroup < 8);
18 return ( (
theFrame>>wireGroup) & 0x1 );
52 virtual unsigned short *
data() {
return theDataFrames;}
54 virtual unsigned short int sizeInWords()
const {
return nAFEBs_ * nTimeBins_ * 6 * 2;}
57 virtual std::vector<CSCWireDigi> wireDigis(
int layer)
const;
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];
void addHit(unsigned wireBit)
sets a bit, from 0 to 7
CSCAnodeDataFrame2006(unsigned short frame)
virtual unsigned short int sizeInWords() const
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
virtual unsigned short * data()
unsigned short frame() const