-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTigScaler.h
35 lines (27 loc) · 867 Bytes
/
TigScaler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef TIGSCALER_H
#define TIGSCALER_H
#include <vector>
#include <cstring>
class TigScaler
{
public:
TigScaler();
~TigScaler();
void AddRequest(std::string pName, int pChannel);
std::string Bank(){return mBank;}
void Initialize(void);
std::string Name(int pIndex);
std::vector<std::string> Names(void) { return mNames; }
bool ProcessEvent(std::vector<int> pData);
void Reset();
void SetBank(std::string pBank){mBank = pBank;}
// void SetEventID(int pEventID){mEventID = pEventID;}
int Size(){return mRequested.size();}
int* mEventData;
protected: //----- protected ------------------
std::string mBank;
std::vector<int> mRequested; // channels requested
std::vector<std::string> mNames; // names for requested channels (branch names in tree)
private: //----- private --------------------
};
#endif /* TIGSCALER_H */