StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
pp2ppTypes.h
1 #ifndef _PP2PP_TYPES_H_
2 #define _PP2PP_TYPES_H_
3 
4 // Tonko's flags
5 // event type bits
6 #define EVT_TYPE_EL (1<<0)
7 #define EVT_TYPE_SD (1<<1)
8 #define EVT_TYPE_PULS (1<<2)
9 
10 // wish list for dead-time readout...
11 #define INP_SI_E_DEAD (1<<3)
12 #define INP_SI_W_DEAD (1<<4)
13 #define INP_CAM_DEAD (1<<5)
14 #define INP_MASTER_DEAD (1<<6)
15 
16 
17 // spin states
18 #define INP_B_PLUS (1<<8)
19 #define INP_B_MIN (1<<9)
20 #define INP_B_NULL (1<<10)
21 
22 #define INP_Y_PLUS (1<<12)
23 #define INP_Y_MIN (1<<13)
24 #define INP_Y_NUL (1<<14)
25 
26 // these are not really inputs
27 #define EVT_TYPE_DEAD (1<<30) // deadtime event
28 #define EVT_TYPE_DUMMY (1<<31) // dummy (test) event - do not try to unpack CAMAC!
29 
30 // output register bits
31 #define PULS_COMP_READY (1<<0)
32 #define PULS_DEAD_READY (1<<1)
33 #define ENA_EL (1<<2)
34 #define ENA_SD (1<<3)
35 
36 #define ENA_DD (1<<4)
37 #define ENA_TYPE_4 (1<<5)
38 #define ENA_PULS (1<<6)
39 #define PULS_BUNCH_READY (1<<7)
40 
41 #define ENA_CAMAC (1<<8)
42 #define ENA_SILICON_1 (1<<9)
43 #define ENA_SILICON_2 (1<<10)
44 #define INH_DEAD_TIME (1<<11)
45 
46 // end of Tonko's flags
47 
48 #endif