00001 #ifndef CSCRPCData_h 00002 #define CSCRPCData_h 00003 00004 #include <vector> 00005 00006 class CSCRPCDigi; 00007 00008 00009 class CSCRPCData { 00010 public: 00012 CSCRPCData(int ntbins=7); 00013 // length is in 16-bit words 00014 CSCRPCData(const unsigned short *b04buf , int length); 00015 00016 std::vector<int> BXN() const; 00017 std::vector<CSCRPCDigi> digis() const; 00018 void add(const CSCRPCDigi &); 00019 int sizeInWords() {return size_;} 00020 int nTbins() {return ntbins_;} 00021 void Print() const; 00022 bool check() const {return theData[0]==0x6b04 && theData[size_-1] == 0x6e04;} 00023 00024 static void setDebug(bool debugValue) {debug = debugValue;} 00025 00026 private: 00027 static bool debug; 00028 int ntbins_; 00029 int size_; 00030 unsigned short theData[2*4*32+2]; 00031 }; 00032 00033 #endif 00034