00001 #ifndef L2btowCalAlgo08_H 00002 #define L2btowCalAlgo08_H 00003 /***************************************************** 00004 * $Id: L2btowCalAlgo08.h,v 1.5 2008/02/01 00:16:40 balewski Exp $ 00005 * \author Jan Balewski, MIT, 2008 00006 ***************************************************** 00007 * Descripion: 00008 * calibrates Barrel towers, result is used by other L2-algo 00009 ***************************************************** 00010 */ 00011 00012 00013 class L2Histo; 00014 class L2EmcGeom; 00015 #include "L2VirtualAlgo2008.h" 00016 00017 class L2btowCalAlgo08 : public L2VirtualAlgo2008 { 00018 /* this class fills the folowing bins of counter histo (mhN) 00019 5 - # of eve w/ overflow # of towers, in calib() input 00020 */ 00021 private: 00022 00023 //..................... params set in initRun 00024 int par_dbg; 00025 int par_gainType; enum {kGainZero=0, kGainIdeal=1, kGainOffline=2}; 00026 int par_nSigPed; // ADC, filters towers 00027 float par_twEneThres; // GeV, filters towers 00028 float par_hotEtThres; // GeV, only monitoring 00029 00030 //.............run-long variables 00031 L2EmcGeom *geom; 00032 00033 //........ pointer current events 00034 HitTower1 *mEve_btow_hit; 00035 00036 // utility methods 00037 void createHisto(); 00038 00039 public: 00040 L2btowCalAlgo08(const char* name, L2EmcDb* db, L2EmcGeom *geo, char* outDir); 00041 int initRunUser( int runNo, int *rc_ints, float *rc_floats); 00042 void finishRunUser();// at the end of each run 00043 void calibrateBtow(int token, int bemcIn, ushort *bemcData); 00044 void computeUser(int token); // bubby trap 00045 void print0(); 00046 00047 }; 00048 00049 #endif 00050 00051 /********************************************************************** 00052 $Log: L2btowCalAlgo08.h,v $ 00053 Revision 1.5 2008/02/01 00:16:40 balewski 00054 add mxListSize to BTOW/ETOW calibration 00055 00056 Revision 1.4 2008/01/30 00:47:16 balewski 00057 Added L2-Etow-calib 00058 00059 Revision 1.3 2008/01/18 23:29:13 balewski 00060 now L2result is exported 00061 00062 Revision 1.2 2008/01/16 23:32:34 balewski 00063 toward token dependent compute() 00064 00065 Revision 1.1 2007/12/19 02:30:18 balewski 00066 new L2-btow-calib-2008 00067 00068 Revision 1.1 2007/11/19 22:18:25 balewski 00069 most L2algos provide triggerID's 00070 00071 00072 */ 00073
1.5.9