CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCRPCData.h
Go to the documentation of this file.
1 #ifndef CSCRPCData_h
2 #define CSCRPCData_h
3 
4 #include <vector>
5 
6 class CSCRPCDigi;
7 
8 
9 class CSCRPCData {
10 public:
12  CSCRPCData(int ntbins=7);
13  // length is in 16-bit words
14  CSCRPCData(const unsigned short *b04buf , int length);
15 
16  std::vector<int> BXN() const;
17  std::vector<CSCRPCDigi> digis() const;
18  void add(const CSCRPCDigi &);
19  int sizeInWords() {return size_;}
20  int nTbins() {return ntbins_;}
21  void Print() const;
22  bool check() const {return theData[0]==0x6b04 && theData[size_-1] == 0x6e04;}
23 
24  static void setDebug(bool debugValue) {debug = debugValue;}
25 
26 private:
27  static bool debug;
28  int ntbins_;
29  int size_;
30  unsigned short theData[2*4*32+2];
31 };
32 
33 #endif
34 
std::vector< CSCRPCDigi > digis() const
Definition: CSCRPCData.cc:91
int nTbins()
Definition: CSCRPCData.h:20
bool check() const
Definition: CSCRPCData.h:22
void add(const CSCRPCDigi &)
int sizeInWords()
Definition: CSCRPCData.h:19
std::vector< int > BXN() const
Definition: CSCRPCData.cc:69
static bool debug
Definition: CSCRPCData.h:27
CSCRPCData(int ntbins=7)
default constructor
Definition: CSCRPCData.cc:21
unsigned short theData[2 *4 *32+2]
Definition: CSCRPCData.h:30
void Print() const
Definition: CSCRPCData.cc:46
static void setDebug(bool debugValue)
Definition: CSCRPCData.h:24
int ntbins_
Definition: CSCRPCData.h:28