Last change
on this file since 154 was 100, checked in by ogrimm, 15 years ago |
Number of HV boards (almost) unlimited.
|
File size:
857 bytes
|
Line | |
---|
1 |
|
---|
2 | #ifndef HVCONFIG_H_SEEN
|
---|
3 | #define HVCONFIG_H_SEEN
|
---|
4 |
|
---|
5 | #include <time.h>
|
---|
6 | #include <string.h>
|
---|
7 | #include <stdlib.h>
|
---|
8 | #include <stdio.h>
|
---|
9 | #include <limits.h>
|
---|
10 |
|
---|
11 | #define MAX_COM_SIZE 5000
|
---|
12 | #define NUM_CHAINS 4
|
---|
13 | #define NUM_CHANNELS 32
|
---|
14 | #define BUFFER_LENGTH 256
|
---|
15 |
|
---|
16 | #define MIN_TIMEOUT 0.01
|
---|
17 | #define MAX_TIMEOUT 5.0
|
---|
18 |
|
---|
19 | #define MIN_RATE 0.01
|
---|
20 | #define MAX_RATE 50.0
|
---|
21 |
|
---|
22 |
|
---|
23 | class HVConfig {
|
---|
24 |
|
---|
25 | public:
|
---|
26 |
|
---|
27 | HVConfig(const char *);
|
---|
28 | ~HVConfig();
|
---|
29 |
|
---|
30 | int NumHVBoards;
|
---|
31 | char **fUSBDevice;
|
---|
32 | // char (*fUSBDevice)[BUFFER_LENGTH];
|
---|
33 |
|
---|
34 | char fLogFile[BUFFER_LENGTH];
|
---|
35 | char fSlowDir[BUFFER_LENGTH];
|
---|
36 |
|
---|
37 | char fPixMapTable[BUFFER_LENGTH];
|
---|
38 | int fCCPort;
|
---|
39 |
|
---|
40 | float fTimeOut;
|
---|
41 | float fStatusRefreshRate;
|
---|
42 |
|
---|
43 | int DACMin;
|
---|
44 | int DACMax;
|
---|
45 | float fHVCalibOffset;
|
---|
46 | float fHVCalibSlope;
|
---|
47 | unsigned int fHVMaxDiff;
|
---|
48 | };
|
---|
49 |
|
---|
50 | unsigned int ReadCard(const char *, void *, char, FILE *, unsigned int=1);
|
---|
51 |
|
---|
52 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.