Last change
on this file since 40 was 35, checked in by lstark, 16 years ago |
Calibration table (DAC - HV values) integrated
|
File size:
749 bytes
|
Line | |
---|
1 |
|
---|
2 | #ifndef HVCONFIG_H_SEEN
|
---|
3 | #define HVCONFIG_H_SEEN
|
---|
4 |
|
---|
5 | #include <time.h>
|
---|
6 |
|
---|
7 | #include <string.h>
|
---|
8 |
|
---|
9 | #include "Types.h"
|
---|
10 |
|
---|
11 | class HVConfig {
|
---|
12 |
|
---|
13 | public:
|
---|
14 |
|
---|
15 | HVConfig(FILE* fptr, char *configfile=NULL);
|
---|
16 | ~HVConfig();
|
---|
17 |
|
---|
18 | int ReadHVConfig(FILE* fptr, char *configfile);
|
---|
19 | int PrintHVConfig(FILE* fptr);
|
---|
20 | int WriteHVConfig(FILE* fptr, char *configfile);
|
---|
21 |
|
---|
22 | int NumHVBoards;
|
---|
23 | int USBDeviceNumber[MAX_NUM_HVBOARDS];
|
---|
24 |
|
---|
25 | int fCCPort;
|
---|
26 | char *fCCClient;
|
---|
27 |
|
---|
28 | bool IsDAC;
|
---|
29 | float Coef[MAX_NUM_HVBOARDS][MAX_NUM_CHAINS][2];
|
---|
30 |
|
---|
31 | char* FileName;
|
---|
32 | char* fLogPath;
|
---|
33 | char** fUSBDevice;
|
---|
34 |
|
---|
35 | float fTimeOut;
|
---|
36 | float fStatusRefreshRate;
|
---|
37 |
|
---|
38 | int DACMin;
|
---|
39 | int DACMax;
|
---|
40 | float HVMin;
|
---|
41 | float HVMax;
|
---|
42 |
|
---|
43 | float fHVCalibOffset;
|
---|
44 | float fHVCalibSlope;
|
---|
45 | float fHVMaxDiff;
|
---|
46 |
|
---|
47 | };
|
---|
48 |
|
---|
49 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.