#ifndef HVCONFIG_H_SEEN #define HVCONFIG_H_SEEN #include #include #include #include #include #define MAX_COM_SIZE 5000 #define NUM_CHAINS 4 #define NUM_CHANNELS 32 #define BUFFER_LENGTH 256 #define MIN_TIMEOUT 0.01 #define MAX_TIMEOUT 5.0 #define MIN_RATE 0.01 #define MAX_RATE 50.0 class HVConfig { public: HVConfig(const char *); ~HVConfig(); int NumHVBoards; char **fUSBDevice; // char (*fUSBDevice)[BUFFER_LENGTH]; char fLogFile[BUFFER_LENGTH]; char fSlowDir[BUFFER_LENGTH]; char fPixMapTable[BUFFER_LENGTH]; int fCCPort; float fTimeOut; float fStatusRefreshRate; int DACMin; int DACMax; float fHVCalibOffset; float fHVCalibSlope; unsigned int fHVMaxDiff; }; unsigned int ReadCard(const char *, void *, char, FILE *, unsigned int=1); #endif