14 #ifdef IS_REAL_L2 //in l2-ana environmen
15 #include "L2VirtualAlgo2009.h"
17 #include "L2algoUtil/L2VirtualAlgo2009.h"
18 #include "L2algoUtil/L2EmcGeom.h"
27 enum {MaxBtowRdo=(BtowGeom::mxEtaBin) * (BtowGeom::mxPhiBin)};
28 enum {MaxEtowRdo=(EtowGeom::mxEtaBin) * (EtowGeom::mxPhiBin)};
29 enum {cl2jetMaxEtaBins=15, cl2jetMaxPhiBins=30};
35 enum {cl2jet_par_mxPhiBin=5, cl2jet_par_mxEtaBin=5};
42 int par_minPhiBinDiff;
44 float par_diJetThrHigh;
45 float par_diJetThrLow;
51 float par_diJetEtaLow;
52 float par_diJetEtaHigh;
60 enum { mxHA=256, mxJ=2};
67 int run_nEventOneJet, run_nEventDiJet, run_nEventRnd;
70 unsigned short db_btowL2PhiBin[MaxBtowRdo];
71 unsigned short db_btowL2PatchBin[MaxBtowRdo];
74 unsigned short db_etowL2PhiBin[MaxEtowRdo];
75 unsigned short db_etowL2PatchBin[MaxEtowRdo];
95 fphiBin=fetaBin=phiRad=eneGeV=iene=0.;
101 float eve_patchEne[cl2jetMaxEtaBins*cl2jetMaxPhiBins];
102 float eve_phiEne[cl2jetMaxPhiBins+cl2jet_par_mxPhiBin-1];
103 L2Jet * eve_Jet[mxJ];
109 unsigned short *phiBin,
unsigned short *patchBin,
112 void scanEta(
int iJ);
114 void weightedEtaPhi(
int iK);
115 void weightedPhi(
int iJ);
116 void dumpPatchEneA();
117 void finishRunHisto();
118 bool paramsChanged(
int *rc_ints,
float *rc_floats);
119 void computeE(
int token);
124 L2jetAlgo2009(
const char* name,
L2EmcDb* db,
char* outDir,
int resOff,
bool writeHighResult=
false);
126 int initRunUser(
int runNo,
int *rc_ints,
float *rc_floats);
127 bool decisionUser(
int token,
int *myL2Result);
128 void computeUser(
int token);
129 void finishRunUser();