source: hvcontrol/src/HVCalib.h@ 63

Last change on this file since 63 was 40, checked in by lstark, 16 years ago
Calibration class added.
File size: 491 bytes
Line 
1
2#ifndef HVCALIB_H_SEEN
3#define HVCALIB_H_SEEN
4
5
6#include <string.h>
7#include <HVConfig.h>
8#include "Types.h"
9
10#define NCHAIN 4
11#define NCHANNEL 32
12
13
14class HVCalib {
15
16 // privat:
17 float ****HVArray;
18 int ****DACArray;
19
20
21 int NDACValues;
22 int NHVValues;
23
24 public:
25
26
27 HVCalib(HVConfig *hvConfig);
28 ~HVCalib();
29
30 int iDACMin;
31 float fHVCalibSlope;
32
33 int HVToDAC(float hv, int board, int chain, int channel);
34 float DACToHV(int dac, int board, int chain, int channel);
35
36
37};
38
39#endif
Note: See TracBrowser for help on using the repository browser.