StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
L2wResult2012.h
1 // W-bose L2 trigger algorithm for 2012 data taking
2 // search for the highest 2x2 tower cluster in the barrel
3 // Jan Balewski ,MIT
4 //
5 //
6 // L2Result must have a size N*4 char,
7 //
8 
9 #ifndef L2_BEMC_WBOSE_RESULT_2012_H
10 #define L2_BEMC_WBOSE_RESULT_2012_H
11 
12 struct L2wResult2012 { // must be N*4 bytes
13  enum {mySizeChar=8};// negotiate size w/ Ross before extending
14  unsigned char seedEt; // seed Et with 60Gev Max. bits=Et*256/60
15  unsigned char clusterEt; // cluster Et with 60Gev Max. bits=Et*256/60
16  unsigned char seedEtaBin; // iEta bin
17  unsigned char seedPhiBin; // iPhi bin
18 
19  unsigned char trigger; // bit0=rnd, bit1=ET>thr
20  unsigned char dum1,dum2,dum3;
21 };
22 
23 //...................................
24 inline void
25 L2wResult2012_print(L2wResult2012 *p){
26 
27  if(p==0) {printf("print L2wResult2012 - NULL pointer ????\n"); return;}
28  printf("L2wResult2012: clust ET=%.1f seed: ET=%.1f iEta=%d, iPhi=%d, trig=%d\n",
29  p->clusterEt*60.0/256.0,
30  p->seedEt*60.0/256.0,
31  p->seedEtaBin,
32  p->seedPhiBin,
33  p->trigger
34  );
35 
36 };
37 
38 
39 
40 #endif