-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTigScaler.h
More file actions
43 lines (35 loc) · 1.13 KB
/
TigScaler.h
File metadata and controls
43 lines (35 loc) · 1.13 KB
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
36
37
38
39
40
41
42
43
// part of TigSortGUI
// author: Ulrike Hager
#ifndef TIGSCALER_H
#define TIGSCALER_H
#include <vector>
#include <string>
#include "TigDataObject.h"
class TigScaler : public TigDataObject
{
public:
TigScaler();
~TigScaler();
void AddRequest(std::string pName, int pChannel);
std::string Bank(){return mBank;}
bool Initialize(void);
int Index(std::string pName);
std::string ScalerName(int pIndex);
std::vector<std::string> Names(void) { return mNames; }
virtual bool ParseInput(std::string line);
bool ParseSignal(std::string line);
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 --------------------
TigScaler( const TigScaler& );
TigScaler& operator=( const TigScaler& );
};
#endif /* TIGSCALER_H */