StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
eemcConstDB.hh
1 #ifndef __EEMC_CONST_DB_HH
2 #define __EEMC_CONST_DB_HH
3 
4 // number of tower PMTs BOXes per sector
5 #define EEMCDbMaxBox 5
6 
7 // number of tower PMTs per sector
8 #define EEMCDbMaxPmt 60
9 
10 // maximal no. of ADC channels (PMT+MAPMT) in one sector
11 #define EEMCDbMaxAdc 1000
12 
13 // maximal no. entries for any QA type of data
14 //#define EEMCDbMaxQAbatch 200
15 
16 // length of any name (string) used in EEMC DB tables
17 #define EEMCDbMaxName 16
18 
19 // length of a comment
20 #define EEMCDbMaxComment 160
21 
22 
23 // this delimiter may _not_ be a part of any name
24 #define EEMCDbStringDelim '$'
25 
26 
27 // ............. redundant dimensions, check it always .......!
28 
29 #define EEMCDbMaxPmtName 960
30 // 960 = EEMCDbMaxPmt * EEMCDbMaxName
31 
32 #define EEMCDbMaxBoxName 80
33 // 80 = EEMCDbMaxBox * EEMCDbMaxName
34 
35 #define EEMCDbMaxAdcName 16000
36 // 16000 = EEMCDbMaxAdc * EEMCDbMaxName
37 
38 //#define EEMCDbMaxQAbatchName 3200
39 //3200 =EEMCDbMaxQAbatch * EEMCDbMaxName
40 
41 
42 // 0.5 MB per record should be enough for now
43 #define EEMCDbMaxXMLData 524288
44 
45 /*
46 Use idividual bits of 'stat' to exclude individual
47 channels from a particular analysis, but let other
48 analysis make a different choice.
49 */
50 
51 // status bits (short int)
52 #define EEMCSTAT_ONLPED 0x0001 // only pedestal is visible
53 #define EEMCSTAT_STKBT 0x0002 // sticky lower bits
54 #define EEMCSTAT_HOTHT 0x0004 // masked for HT trigger
55 #define EEMCSTAT_HOTJP 0x0008 // masked for JP trigger
56 #define EEMCSTAT_HIGPED 0x0010 // ped is very high but channel seems to work
57 #define EEMCSTAT_HOTSTR 0x0020 // hot esmd strip
58 #define EEMCSTAT_JUMPED 0x0040 // jumpy ped over several chan over days
59 #define EEMCSTAT_WIDPED 0x0080 // wide ped over:2.5 ch towers, 1.5 ch MAPMT's
60 
61 //The remaing bits of 'stat' are free.
62 
63 /* The 'fail' 16-bits are meant as general abort of a given
64 channel.
65 */
66 
67 // failure bits (short int)
68 #define EEMCFAIL_GARBG 0x0001 // faulty channel
69 #define EEMCFAIL_HVOFF 0x0002 // HV was off or varied
70 #define EEMCFAIL_NOFIB 0x0004 // signal fiber is broken
71 #define EEMCFAIL_CPYCT 0x0008 // stuck in copyCat mode
72 
73 #endif
74 
75