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