StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
eemcDb.h
1 #ifndef __EEMC_DB_H_
2 #define __EEMC_DB_H_
3 
4 #include "eemcConstDB.hh"
5 
6 #include "eemcDbPMTconf.hh"
7 #include "eemcDbADCconf.hh"
8 #include "eemcDbBoxconf.hh"
9 
10 #include "eemcDbPMTcal.hh" // will retire next time, JB
11 #include "eemcDbPIXcal.hh"
12 #include "eemcDbPMTname.hh" // will retire next time, JB
13 #include "eemcDbPIXname.hh"
14 #include "eemcDbPMTped.hh"
15 #include "eemcDbPMTstat.hh"
16 
17 
18 #include "eemcDbPMTchar.hh"
19 #include "eemcDbCWchar.hh"
20 
21 #include "eemcDbHVsys.hh"
22 #include "eemcDbHVtemp.hh"
23 
24 #include "eemcDbXMLdata.hh"
25 
26 //#include "kretDbRingS.hh"
27 //#include "kretDbWCM.hh"
28 
29 //what a piece of scheisse .......
30 static const time_t EEmcDbMaxUnixTime = 1988150400; // Jan 1,2033 00:00:00 UTC
31 
32 static const int EEmcDbMaxDbPathLen = 1024;
33 static const int EEmcDbMaxKeyLength = 256;
34 static const char EEmcDbKeyFormat[] = "#%s/%s"; //dbNode->printName()/tableNodeName
35 
36 
37 enum EEmcDbAction { GetDB , SetDB , PrintTree , PrintHistory, PrintConfig };
38 
39 
40 #ifdef DEBUG
41 #define dprintf(str...) if(!quietMode) fprintf(stderr,str)
42 #else
43 #define dprintf(str...) ; /* nothing */
44 #endif
45 
46 //
47 time_t getTimeStamp(const char *dbTimeFormat[] , const char *timestr);
48 char *fmtSqlTime(const char* sqltime);
49 
50 //extern int quietMode;
51 extern int verboseMode;
52 extern int quietMode ;
53 #endif
54 
55 
56 
57 
58 
59 
60