StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
L2UpsilonResult2012.h
1 //
2 // Example container for results from L2-algo
3 //
4 // L2Result must have a size N*4 char,
5 //
6 
7 #ifndef L2_BEMC_UPSILON_RESULT_2012_H
8 #define L2_BEMC_UPSILON_RESULT_2012_H
9 
11 // enum {mySizeChar=24};
12  enum {mySizeChar=8};
13  unsigned short L0SeedTowerID;
14  unsigned short L2SeedTowerID;
15  unsigned char energyOfL0Cluster; // cluster Energy with 25.6Gev Max. bits=energyOfL0Cluster*10
16  unsigned char energyOfL2Cluster; // cluster Energy with 25.6Gev Max. bits=energyOfL0Cluster*10
17  unsigned char invMass; // invMass with 25.6Gev Max. bits=energyOfL0Cluster*10
18  bool trigger;
19 // unsigned short numberOfL0SeedTowers;
20 // unsigned short numberOfL2SeedTowers;
21 };
22 
23 //...................................
24 inline void
25 L2UpsilonResult2012_print(L2UpsilonResult2012 *p){
26  if(p==0) {printf("print L2UpsilonResult2012 - NULL pointer ????\n"); return;}
27  printf("print L2UpsilonResult2012: L0SeedTowerID=%d, L0SeedTowerID=%d, energyOfL0Cluster=%f, energyOfL2Cluster=%f, invMass=%f \n",
28  p->L0SeedTowerID,
29  p->L2SeedTowerID,
30  p->energyOfL0Cluster*0.1,
31  p->energyOfL2Cluster*0.1,
32  p->invMass*0.1);
33 
34 };
35 
36 
37 
38 #endif