CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCTMBScope.h
Go to the documentation of this file.
1 //_______________________________________
2 //
3 // Class for TMB Logic Analyzer Data
4 // CSCTMBScope 9/11/03 B.Mohr
5 //_______________________________________
6 //
7 
8 #ifndef CSCTMBScope_h
9 #define CSCTMBScope_h
10 
11 #ifndef LOCAL_UNPACK
12 #include <atomic>
13 #endif
14 
15 class CSCTMBScope {
16 
17 public:
18 
19  CSCTMBScope() {size_ = 0;} //default constructor
20  CSCTMBScope(unsigned short *buf,int b05Line,int e05Line);
21  static unsigned short sizeInWords() {return 1538;}
22  static void setDebug(const bool value) {debug = value;};
23 
24  unsigned int data[52]; //scope data for ntuple
25  //public for now -- better way?
26 private:
27 
28  int UnpackScope(unsigned short *buf,int b05Line,int e05Line);
29  int GetPretrig(int ich);
30 
31  unsigned int scope_ram[256][6]; //stores all scope data
32  unsigned short size_;
33 #ifdef LOCAL_UNPACK
34  static bool debug;
35 #else
36  static std::atomic<bool> debug;
37 #endif
38 
39 };
40 
41 #endif
42 
int UnpackScope(unsigned short *buf, int b05Line, int e05Line)
Definition: CSCTMBScope.cc:24
unsigned short size_
Definition: CSCTMBScope.h:32
static void setDebug(const bool value)
Definition: CSCTMBScope.h:22
static unsigned short sizeInWords()
Definition: CSCTMBScope.h:21
unsigned int data[52]
Definition: CSCTMBScope.h:22
static std::atomic< bool > debug
Definition: CSCTMBScope.h:36
int GetPretrig(int ich)
Definition: CSCTMBScope.cc:190
unsigned int scope_ram[256][6]
Definition: CSCTMBScope.h:31