00001 #ifndef L2PEDRESULTS2006_H 00002 #define L2PEDRESULTS2006_H 00003 00004 /********************************************************************* 00005 * $Id: L2pedResults2006.h,v 1.2 2008/01/17 01:57:33 kocolosk Exp $ 00006 * \author Jan Balewski, IUCF, 2006 00007 ********************************************************************* 00008 * Descripion: 00009 * Output container for pedestal algo in L2 00010 * stored in the trigger data 00011 ********************************************************************* 00012 */ 00013 00014 00015 struct L2pedOutInt0 { // 4 bytes 00016 unsigned char decision; /* meaning of bits: 00017 0-2 :free 00018 3,4 : seenBtow, seenEtow data block 00019 5: free 00020 6: pedSubtraction ON/OFF 00021 7: free 00022 */ 00023 unsigned char free; 00024 unsigned short kTick; /* CPU ticks used for this event in kTicks, 00025 2^32-1=overflow, */ 00026 }; 00027 00028 00029 struct L2pedResults2006 { // all output bits lump together 00030 struct L2pedOutInt0 int0; 00031 }; 00032 00033 //--------------- 00034 #define GET_OB(x,n) ( (x & 1 << n)!=0) // get one bit 00035 //--------------- 00036 inline void L2pedResults2006_print(struct L2pedResults2006 *p) { 00037 if(p==0) {printf("print L2pedResults2006() - NULL pointer ????\n"); return;} 00038 unsigned int x=p->int0.decision; 00039 printf("L2pedResults2006(): bemcIn=%d eemcIn=%d , pedSubtr=%d \n", GET_OB(x,3), GET_OB(x,4), GET_OB(x,6)); 00040 printf(" used CPU kTicks=%d \n", p->int0.kTick); 00041 00042 }; 00043 #undef GET_OB 00044 #endif 00045 /********************************************************************** 00046 $Log: L2pedResults2006.h,v $ 00047 Revision 1.2 2008/01/17 01:57:33 kocolosk 00048 inline printing functions 00049 00050 Revision 1.1 2007/10/11 00:33:25 balewski 00051 L2algo added 00052 00053 Revision 1.7 2006/03/28 19:46:51 balewski 00054 ver16b, in l2new 00055 00056 Revision 1.6 2006/03/11 17:08:35 balewski 00057 now CVS comments should work 00058 00059 */ 00060
1.5.9