00001
00002
00003
00004
00005
00006
00007
00008 #ifndef L2_BEMC_GAMMA_RESULT_2012_H
00009 #define L2_BEMC_GAMMA_RESULT_2012_H
00010
00011 struct L2gammaResult2012 {
00012 enum {mySizeChar=8};
00013 unsigned short TowerID;
00014
00015
00016 unsigned char meanEtaBin;
00017 unsigned char meanPhiBin;
00018 unsigned char trigger;
00019
00020
00021 unsigned char clusterEt;
00022 unsigned char isolationSum;
00023
00024 unsigned char Time;
00025 };
00026
00027
00028 inline void
00029 L2gammaResult2012_print(L2gammaResult2012 *p){
00030 if(p==0) {printf("print L2gammaResult2012 - NULL pointer ????\n"); return;}
00031 printf("print L2gammaResult2012: TowerID=%d, quadrant=%d, meanEtaBin=%3.3f, meanPhiBin=%3.3f, \ntrigger=%d, clusterEt=%f, isolationSum=%d\n",
00032 (p->TowerID & 0x1FFF),
00033 (p->TowerID & 0xE000)>>13,
00034 p->meanEtaBin*BtowGeom::mxEtaBin/256.0,
00035 p->meanPhiBin*BtowGeom::mxPhiBin/256.0,
00036 p->trigger,
00037 p->clusterEt*60.0/256.0,
00038 p->isolationSum);
00039
00040
00041
00042 };
00043
00044
00045
00046 #endif