1 #ifndef L2JETRESULTS2012_H
2 #define L2JETRESULTS2012_H
14 #include <fakeRtsLog.h>
16 #define L2JET_RESULTS_VERSION 4
19 unsigned char version;
20 unsigned char decision;
33 unsigned short iTotEne;
34 unsigned char checkSum;
38 unsigned short nBtowTw;
39 unsigned short nEtowTw;
46 unsigned short rmsEta;
47 unsigned short rmsPhi;
61 #define GET_OB(x,n) ( (x & 1 << n)!=0 )
65 if(p==0) {LOG(ERR,
"print L2jetResults2012 - NULL pointer ????\n");
return;}
67 unsigned int x=p->int0.decision;
68 LOG(DBG,
"L2jetResults2012:\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));
70 LOG(NOTE,
" 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.);
72 LOG(NOTE,
" 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.);
74 LOG(NOTE,
" 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);
85 if(p==0) {LOG(ERR,
"print L2jetResults2012 - NULL pointer ????\n");
return 0xff;}
86 unsigned char* buf=(
unsigned char*) p;
90 for(i=0;i<len;i++) sum+=buf[i];