StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
scReader.h
1 #ifndef _SC_READER_H_
2 #define _SC_READER_H_
3 #include "sys/types.h"
4 // returns EVP_DATA_ERR if no bank
5 // >0 if OK
6 //
7 // Note, even if bank is present, check
8 // "sc.valid"... this says if the information is timely...
9 //
10 namespace OLDEVP {
11 struct sc_t {
12  u_int valid;
13  u_int time;
14  int timelag; // lag between read time and event time (to 1 sec)
15  float mag_field;
16  u_int rich_scalers[17];
17 };
18 
19 extern struct sc_t sc;
20 
21 extern int scReader(char *m); // returns EVP_DATA_ERR
22 }
23 #endif