1 #ifndef EventFilter_CSCRawToDigi_CSCAnodeData2006_h 2 #define EventFilter_CSCRawToDigi_CSCAnodeData2006_h 15 bool isHit(
unsigned wireGroup)
const {
63 int index(
int afeb,
int tbin,
int layer)
const;
65 void addHit(
int afeb,
int tbin,
int layer,
int halfLayer,
unsigned wireBit);
int index(int afeb, int tbin, int layer) const
the index into theDataFrames
unsigned short * data() override
void addHit(unsigned wireBit)
sets a bit, from 0 to 7
unsigned short frame() const
CSCAnodeDataFrame2006(unsigned short frame)
bool isHit(unsigned wireGroup) const
given a wiregroup between 0 and 7, it tells whether this bit was on
unsigned short theDataFrames[2700]
we don't know the size at first. Max should be 7 boards * 32 bins * 6 layers * 2
unsigned tbin() const
time bin
constexpr std::array< uint8_t, layerIndexSize > layer
unsigned short data() const
CSCAnodeDataFrame2006 rawHit(int afeb, int tbin, int layer, int halfLayer) const
CSCAnodeData2006(const CSCALCTHeader &)
a blank one, for Monte Carlo
int nAFEBs_
in 2007 format the max number of frames is 1860
void add(const CSCWireDigi &, int layer) override
void addHit(int afeb, int tbin, int layer, int halfLayer, unsigned wireBit)
unsigned short int sizeInWords() const override
the amount of the input binary buffer read, in 16-bit words
std::vector< CSCWireDigi > wireDigis(int layer) const override
input layer is from 1 to 6