StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
L2gammaResult2012.h
1 //
2 // Jan Balewski ,MIT
3 // Example container for results from L2-algo
4 //
5 // L2Result must have a size N*4 char,
6 //
7 
8 #ifndef L2_BEMC_GAMMA_RESULT_2012_H
9 #define L2_BEMC_GAMMA_RESULT_2012_H
10 
12  enum {mySizeChar=8};// negotiate size w/ John before extending
13  unsigned short TowerID; //Tower packed with culster quadrant
14  // Bits 0 - 12 represent Tower ID, 0-4788 BEMC, 4800-5519 EEMC
15  // Bits 13-15 represent the quadrant of the cluster 0-3
16  unsigned char meanEtaBin; //Eta bin packed with 8-bit resolution each
17  unsigned char meanPhiBin; //Phi bin packed with 8-bit resolution each
18  unsigned char trigger; // Trigger infromation packed
19  // Bits 0-3 EEMC trigger nibble
20  // Bits 4-7 BEMC trigger nibble
21  unsigned char clusterEt; // cluster Et with 60Gev Max. bits=Et*256/60
22  unsigned char isolationSum; // Isolation cluster energy
23  // isolation sum with 60Gev Max bits=E*256/60
24  unsigned char Time; // elapsed time to issue trigger find cluster
25 };
26 
27 //...................................
28 inline void
29 L2gammaResult2012_print(L2gammaResult2012 *p){
30  if(p==0) {printf("print L2gammaResult2012 - NULL pointer ????\n"); return;}
31  printf("print L2gammaResult2012: TowerID=%d, quadrant=%d, meanEtaBin=%3.3f, meanPhiBin=%3.3f, \ntrigger=%d, clusterEt=%f, isolationSum=%d\n",
32  (p->TowerID & 0x1FFF),
33  (p->TowerID & 0xE000)>>13,
34  p->meanEtaBin*BtowGeom::mxEtaBin/256.0,
35  p->meanPhiBin*BtowGeom::mxPhiBin/256.0,
36  p->trigger,
37  p->clusterEt*60.0/256.0,
38  p->isolationSum);/*,
39  p->Time);*/
40 
41 
42 };
43 
44 
45 
46 #endif