00001 #ifndef L2etowCalAlgo09_H
00002 #define L2etowCalAlgo09_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 class L2Histo;
00014 class L2EmcGeom;
00015 #include "L2VirtualAlgo2009.h"
00016
00017 class L2etowCalAlgo09 : public L2VirtualAlgo2009 {
00018
00019
00020
00021 private:
00022
00023
00024 unsigned short par_adcMask;
00025 unsigned short par_pedOff;
00026
00027
00028 int par_dbg;
00029 int par_gainType; enum {kGainZero=0, kGainIdeal=1, kGainOffline=2};
00030 int par_nSigPed;
00031 float par_twEneThres;
00032 float par_hotEtThres;
00033
00034
00035 L2EmcGeom *mGeom;
00036
00037
00038 HitTower1 *mEve_etow_hit;
00039
00040
00041 void createHisto();
00042
00043 public:
00044 L2etowCalAlgo09(const char* name, L2EmcDb* db, L2EmcGeom *geo, char* outDir,int resOff);
00045 int initRunUser( int runNo, int *rc_ints, float *rc_floats);
00046 void finishRunUser();
00047 void calibrateEtow(int token, int eemcIn, ushort *eemcData);
00048 void clear(int token);
00049 void computeUser(int token);
00050 void print0();
00051
00052 };
00053
00054 #endif
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071