00001 #ifndef _SC_READER_H_ 00002 #define _SC_READER_H_ 00003 #include "sys/types.h" 00004 // returns EVP_DATA_ERR if no bank 00005 // >0 if OK 00006 // 00007 // Note, even if bank is present, check 00008 // "sc.valid"... this says if the information is timely... 00009 // 00010 namespace OLDEVP { 00011 struct sc_t { 00012 u_int valid; 00013 u_int time; 00014 int timelag; // lag between read time and event time (to 1 sec) 00015 float mag_field; 00016 u_int rich_scalers[17]; 00017 }; 00018 00019 extern struct sc_t sc; 00020 00021 extern int scReader(char *m); // returns EVP_DATA_ERR 00022 } 00023 #endif
1.5.9