-
Notifications
You must be signed in to change notification settings - Fork 0
/
TrReadout.hh
47 lines (41 loc) · 998 Bytes
/
TrReadout.hh
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
44
45
46
47
#include <map>
#include <string>
#include <vector>
#include "CAENVMElib.h"
#include "CAENVMEtypes.h"
#include "TrSpillData.hh"
#include "TrGenerator.hh"
#include "TrGlobals.hh"
#include "TrVLSBController.hh"
#include "TrVLSBMasterController.hh"
#ifndef TRREADOUT_HH
#define TRREADOUT_HH
class TrVLSBController;
class TrReadout {
private:
/* Variables */
TrSpillData currentSpill;
std::map<std::string,int> vmeCommands;
int bankLengths[BOARDS][BANKS];
int vmeStatus;
TrVLSBMasterController master;
std::vector<TrVLSBController> vlsbs;
/* Functions */
/*unsigned long setupAddressArray();
unsigned long readVLSBBanks();
void fillCurrentSpill(unsigned long);
void resetCurrentSpill();
void getBankLengths();
*/
public:
TrReadout();
void setDataMode();
void setReadoutMode();
void enableTrigger();
int pollSpillDone();
void disableTrigger();
TrSpillData* readout();
TrSpillData* readout(TrGenerator);
TrSpillData compress(int*, int, int);
};
#endif