CMS 3D CMS Logo

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 public:
17  CSCTMBScope() { size_ = 0; } //default constructor
18  CSCTMBScope(const uint16_t *buf, int b05Line, int e05Line);
19  static unsigned short sizeInWords() { return 1538; }
20  static void setDebug(const bool value) { debug = value; };
21 
22  unsigned int data[52]; //scope data for ntuple
23  //public for now -- better way?
24 private:
25  int UnpackScope(const uint16_t *buf, int b05Line, int e05Line);
26  int GetPretrig(int ich);
27 
28  unsigned int scope_ram[256][6]; //stores all scope data
29  unsigned short size_;
30 #ifdef LOCAL_UNPACK
31  static bool debug;
32 #else
33  static std::atomic<bool> debug;
34 #endif
35 };
36 
37 #endif
unsigned short size_
Definition: CSCTMBScope.h:29
static void setDebug(const bool value)
Definition: CSCTMBScope.h:20
Definition: value.py:1
int UnpackScope(const uint16_t *buf, int b05Line, int e05Line)
Definition: CSCTMBScope.cc:22
static unsigned short sizeInWords()
Definition: CSCTMBScope.h:19
unsigned int data[52]
Definition: CSCTMBScope.h:20
static std::atomic< bool > debug
Definition: CSCTMBScope.h:33
int GetPretrig(int ich)
Definition: CSCTMBScope.cc:184
unsigned int scope_ram[256][6]
Definition: CSCTMBScope.h:28