StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
L2gammaResult2006.h
1 #ifndef __L2gammaResult2006_h__
2 #define __L2gammaResult2006_h__
3 
4 #define LEVEL2_GAMMA_RESULT_NBYTES 8
5 #define LEVEL2_GAMMA_RESULT_VERSION 2
6 
7 /*
8  * Version 2 3/28/2006 removes nested structures
9  */
10 
11 struct L2gammaResult {
12 
13  unsigned char result_version; /* 1-15 */
14 
15  unsigned char threshold; /* 0x1=ht1 0x2=tp1 0x4=ht2 0x8=tp2 */
16  unsigned char elapsed; /* cpu time [kTicks], 255=overflow for this event */
17 
18  unsigned char trigger; /* 0x0=abort, 0x1=ht 0x2=tp 0x4=preAccept 0x8=accept */
19  unsigned char phibin; /* 0=none, 0-119 bemc, 0-59 eemc, 0x8=eemc bit */
20  unsigned char etabin; /* 0=none, 1-40 bemc, 1-12 eemc */
21  unsigned char pttowerx2; /* E_T of the high tower times 2 */
22  unsigned char ptclusterx2; /* E_T of the cluster times 2 */
23 
24 };
25 
26 // ----------------------------------------------------------------------
27 // ----------------------------------------------------------------------
28 
29 inline void print_L2gammaResult( const L2gammaResult &result )
30 {
31  printf("----------------------------------------------------------------\n");
32  printf("L2gammaResult version %d\n", /* print header version */
33  result.result_version);
34  printf("bemc trig=%d / eemc trig=%d\n\n", /* is trigger b/eemc based? */
35  !(result.phibin&0x8),
36  result.phibin&0x8);
37  printf("ht1 tested=%d / ht2 tested=%d\n", /* what thresholds tested? */
38  result.threshold&0x1,
39  result.threshold&0x4);
40  printf("cl1 tested=%d / cl2 tested=%d\n",
41  result.threshold&0x2,
42  result.threshold&0x8);
43  printf("ht met=%d cl met=%d trig met=%d\n", /* what threshold met? */
44  result.trigger&0x1,
45  result.trigger&0x2,
46  result.trigger&0x8);
47  printf("phibin=%d etabin=%d\n", /* and where? */
48  result.phibin&0xef,
49  result.etabin);
50  printf("cpu time [kTicks]=%d\n", /* and how long? */
51  result.elapsed);
52 
53 };
54 
55 
56 
57 #endif
58 
59 // $Log: L2gammaResult2006.h,v $
60 // Revision 1.2 2008/01/17 01:57:09 kocolosk
61 // inline printing function
62 //
63 // Revision 1.1 2007/10/25 15:30:50 balewski
64 // added L2gamma, full
65 //
66 // Revision 1.1 2006/03/29 13:08:15 balewski
67 // ver 16c
68 //