1 #ifndef CSCAnodeData2007_h 2 #define CSCAnodeData2007_h 15 bool isHit(
unsigned wireGroup)
const {
16 assert(wireGroup < 12);
17 return ( (
data_>>wireGroup) & 0
x1 );
22 data_ |= (1 << wireGroup);
42 unsigned short *
data()
override {
return theDataFrames;}
44 unsigned short int sizeInWords()
const override {
return sizeInWords2007_;}
47 std::vector<CSCWireDigi> wireDigis(
int layer)
const override;
51 static void selfTest();
55 int index(
int tbin,
int layer,
int layerPart)
const;
59 enum {MAXFRAMES=2700};
60 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_