test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCTMBMiniScope.h
Go to the documentation of this file.
1 //_______________________________________
2 //
3 // Class for TMB Logic Analyzer Data
4 // CSCTMBMiniScope July 2010 Alexander Sakharov (Wayne State University)
5 //_______________________________________
6 //
7 
8 #ifndef CSCTMBMiniScope_h
9 #define CSCTMBMiniScope_h
10 #include <vector>
11 #include <map>
12 
14 
15 public:
16 
17  CSCTMBMiniScope() {size_ = 0;} //default constructor
18  CSCTMBMiniScope(unsigned short *buf,int Line6b07,int Line6E07);
19  int getSize() const {return size_;}
20  int getTbinCount() const {return miniScopeTbinCount;}
22  std::vector<int> getAdr() const {return miniScopeAdress;}
23  std::vector<int> getData() const {return miniScopeData;}
24  std::vector<int> getChannelsInTbin(int data) const;
25 
26  void print() const;
27 
28 private:
29 
30  int UnpackMiniScope(unsigned short *buf,int Line6b07,int Line6E07);
31 
32  std::vector <int> miniScopeAdress;
33  std::vector <int> miniScopeData;
36  unsigned size_;
37 
38 };
39 
40 #endif
41 
std::vector< int > getData() const
std::vector< int > getAdr() const
int getSize() const
std::vector< int > miniScopeAdress
std::vector< int > miniScopeData
stores all mini scope adresses
std::vector< int > getChannelsInTbin(int data) const
UnpackScope.
void print() const
int miniScopeTbinCount
stores all mini scope data
int getTbinCount() const
int getTbinPreTrigger() const
int UnpackMiniScope(unsigned short *buf, int Line6b07, int Line6E07)
Print the maped content of the miniscope.