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