00001 #ifndef L2PEDALGO09_H
00002 #define L2PEDALGO09_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 class L2Histo;
00015 #ifdef IS_REAL_L2 //in l2-ana environmen
00016 #include "L2VirtualAlgo2009.h"
00017 #else
00018 #include "StTriggerUtilities/L2Emulator/L2algoUtil/L2VirtualAlgo2009.h"
00019 #endif
00020
00021 class L2pedAlgo09 : public L2VirtualAlgo2009 {
00022 enum{minAdc=-20, maxAdc=4096};
00023
00024 bool par_pedSubtr;
00025 bool par_saveBinary;
00026 int par_speedFact;
00027 int par_dbg;
00028 int par_prescAccept;
00029
00030
00031 short s_stepE, s_stepB, s_lastE, s_lastB;
00032
00033
00034 int par_maxMatt;
00035
00036 L2Histo *btowAdc[BtowGeom::mxRdo];
00037 L2Histo *etowAdc[EtowGeom::mxRdo];
00038 int nInp;
00039 int run_number;
00040
00041
00042 unsigned short db_btowPed[BtowGeom::mxRdo];
00043 unsigned short db_etowPed[EtowGeom::mxRdo];
00044
00045 public:
00046 L2pedAlgo09(const char* name, L2EmcDb* db, char* outDir, int resOff);
00047 int initRunUser(int runNo, int *rc_ints, float *rc_floats);
00048 void finishRunUser();
00049 void computeUser(int token);
00050
00051 bool doPedestals(int inpEveId, int* L2Result,
00052 int bemcIn, ushort *bemcData,
00053 int eemcIn, ushort *eemcData);
00054
00055 };
00056
00057 #endif
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087