1 #ifndef CSCAnodeData2007_h 2 #define CSCAnodeData2007_h 15 bool isHit(
unsigned wireGroup)
const {
16 assert(wireGroup < 12);
17 return ((
data_ >> wireGroup) & 0
x1);
20 void addHit(
unsigned wireGroup) {
data_ |= (1 << wireGroup); }
37 unsigned short *
data()
override {
return theDataFrames; }
39 unsigned short int sizeInWords()
const override {
return sizeInWords2007_; }
42 std::vector<CSCWireDigi> wireDigis(
int layer)
const override;
46 static void selfTest();
50 int index(
int tbin,
int layer,
int layerPart)
const;
54 enum { MAXFRAMES = 2700 };
55 unsigned short theDataFrames[MAXFRAMES];
unsigned short int sizeInWords() const override
the amount of the input binary buffer read, in 16-bit words
CSCAnodeDataFrame2007(unsigned short data)
bool isHit(unsigned wireGroup) const
given a wiregroup between 0 and 11, it tells whether this bit was on
unsigned short * data() override
unsigned short int nAFEBs_
unsigned int alctBX_
number of wiregroups in the ALCT
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
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_