1 #ifndef CSCAnodeData2006_h
2 #define CSCAnodeData2006_h
16 bool isHit(
unsigned wireGroup)
const {
18 return ( (
theFrame>>wireGroup) & 0x1 );
57 virtual std::vector<CSCWireDigi>
wireDigis(
int layer)
const;
69 int index(
int afeb,
int tbin,
int layer)
const;
71 void addHit(
int afeb,
int tbin,
int layer,
int halfLayer,
unsigned wireBit);
void addHit(unsigned wireBit)
sets a bit, from 0 to 7
CSCAnodeDataFrame2006 rawHit(int afeb, int tbin, int layer, int halfLayer) const
CSCAnodeDataFrame2006(unsigned short frame)
unsigned short theDataFrames[2700]
we don't know the size at first. Max should be 7 boards * 32 bins * 6 layers * 2
virtual std::vector< CSCWireDigi > wireDigis(int layer) const
input layer is from 1 to 6
virtual unsigned short int sizeInWords() const
the amount of the input binary buffer read, in 16-bit words
int index(int afeb, int tbin, int layer) const
the index into theDataFrames
unsigned tbin() const
time bin
CSCAnodeData2006(const CSCALCTHeader &)
a blank one, for Monte Carlo
virtual void add(const CSCWireDigi &, int layer)
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
void addHit(int afeb, int tbin, int layer, int halfLayer, unsigned wireBit)
virtual unsigned short * data()
unsigned short frame() const