1 #ifndef CSCAnodeData2007_h 2 #define CSCAnodeData2007_h 15 bool isHit(
unsigned wireGroup)
const {
16 assert(wireGroup < 12);
17 return ( (
data_>>wireGroup) & 0x1 );
22 data_ |= (1 << wireGroup);
42 virtual unsigned short *
data() {
return theDataFrames;}
44 virtual unsigned short int sizeInWords()
const {
return sizeInWords2007_;}
47 virtual std::vector<CSCWireDigi> wireDigis(
int layer)
const;
51 static void selfTest();
55 int index(
int tbin,
int layer,
int layerPart)
const;
59 enum {MAXFRAMES=2700};
60 unsigned short theDataFrames[MAXFRAMES];
void add(const std::vector< const T * > &source, std::vector< const T * > &dest)
CSCAnodeDataFrame2007(unsigned short data)
bool isHit(unsigned wireGroup) const
given a wiregroup between 0 and 11, it tells whether this bit was on
virtual unsigned short * data()
unsigned short int nAFEBs_
unsigned int alctBX_
number of wiregroups in the ALCT
virtual unsigned short int sizeInWords() const
the amount of the input binary buffer read, in 16-bit words
unsigned short int sizeInWords2007_
unsigned short int maxWireGroups_
number of layer parts in the ALCT
void addHit(unsigned wireGroup)
unsigned short data() const
unsigned short int nTimeBins_
unsigned short int layerParts_