1 #ifndef L2JETRESULTS2009_H
2 #define L2JETRESULTS2009_H
15 #define L2JET_RESULTS_VERSION 4
18 unsigned char version;
19 unsigned char decision;
32 unsigned short iTotEne;
33 unsigned char checkSum;
37 unsigned short nBtowTw;
38 unsigned short nEtowTw;
45 unsigned short rmsEta;
46 unsigned short rmsPhi;
60 #define GET_OB(x,n) ( (x & 1 << n)!=0 )
64 if(p==0) {printf(
"print L2jetResults2009 - NULL pointer ????\n");
return;}
66 unsigned int x=p->int0.decision;
67 printf(
"L2jetResults2009:\n Accept: rnd=%d oneJet=%d diJet=%d \n useBtowEast=%d useBtowWest=%d useEndcap=%d bemcIn=%d eemcIn=%d\n", GET_OB(x,5), GET_OB(x,6), GET_OB(x,7), GET_OB(x,0), GET_OB(x,1), GET_OB(x,2), GET_OB(x,3), GET_OB(x,4));
69 printf(
" Jet1: Et/GeV=%.2f phi/deg=%3d eta=%.2f RMS: phi/deg=%.1f eta=%.2f\n", p->jet1.iEne/100.,p->jet1.jPhi*2,p->jet1.jEta/50.-1., p->jet1.rmsPhi/10.,p->jet1.rmsEta/100.);
71 printf(
" Jet2: Et/GeV=%.2f phi/deg=%3d eta=%.2f RMS: phi/deg=%.1f eta=%.2f\n", p->jet2.iEne/100.,p->jet2.jPhi*2,p->jet2.jEta/50.-1., p->jet2.rmsPhi/10.,p->jet2.rmsEta/100.);
73 printf(
" totEne/GeV=%.2f nBtowTw=%d nEtwTw=%d, \n CPU kTicks=%d format=%d checkSum=%d\n", p->int1.iTotEne/100., p->int2.nBtowTw, p->int2.nEtowTw, p->int0.kTick,p->int0.version, p->int1.checkSum);
84 if(p==0) {printf(
"print L2jetResults2009 - NULL pointer ????\n");
return 0xff;}
85 unsigned char* buf=(
unsigned char*) p;
89 for(i=0;i<len;i++) sum+=buf[i];