00001 #ifndef L2btowCalAlgo12_H 00002 #define L2btowCalAlgo12_H 00003 /***************************************************** 00004 * $Id: L2btowCalAlgo12.h,v 1.4 2011/10/19 16:12:10 jml 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 L2EmcGeom2012; 00015 #include "L2VirtualAlgo2012.h" 00016 00017 class L2btowCalAlgo12 : public L2VirtualAlgo2012 { 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 hard coded in initRun 00024 unsigned short par_adcMask; 00025 unsigned short par_pedOff; 00026 00027 //..................... params set in initRun 00028 int par_dbg; 00029 int par_gainType; enum {kGainZero=0, kGainIdeal=1, kGainOffline=2}; 00030 int par_nSigPed; // ADC, filters towers 00031 float par_twEneThres; // GeV, filters towers 00032 float par_hotEtThres; // GeV, only monitoring 00033 00034 //.............run-long variables 00035 L2EmcGeom2012 *geom; 00036 00037 //........ pointer current events 00038 HitTower1 *mEve_btow_hit; 00039 00040 // utility methods 00041 void createHisto(); 00042 00043 public: 00044 L2btowCalAlgo12(const char* name, const char *uid, L2EmcDb2012* db, L2EmcGeom2012 *geo, char* outDir, int resOff); 00045 int initRunUser( int runNo, int *rc_ints, float *rc_floats); 00046 void finishRunUser();// at the end of each run 00047 void calibrateBtow(int token, int bemcIn, ushort *bemcData); 00048 void clear(int token); 00049 void computeUser(int token); // booby trap 00050 void print0(); 00051 00052 }; 00053 00054 #endif 00055 00056 /********************************************************************** 00057 $Log: L2btowCalAlgo12.h,v $ 00058 Revision 1.4 2011/10/19 16:12:10 jml 00059 more 2012 stuff 00060 00061 Revision 1.3 2011/10/19 15:58:06 jml 00062 more compile offline 00063 00064 Revision 1.2 2011/10/19 15:39:42 jml 00065 2012 00066 00067 Revision 1.1 2011/10/18 15:11:41 jml 00068 adding 2012 algorithms 00069 00070 Revision 1.2 2010/04/17 16:42:12 pibero 00071 *** empty log message *** 00072 00073 Revision 1.5 2008/02/01 00:16:40 balewski 00074 add mxListSize to BTOW/ETOW calibration 00075 00076 Revision 1.4 2008/01/30 00:47:16 balewski 00077 Added L2-Etow-calib 00078 00079 Revision 1.3 2008/01/18 23:29:13 balewski 00080 now L2result is exported 00081 00082 Revision 1.2 2008/01/16 23:32:34 balewski 00083 toward token dependent compute() 00084 00085 Revision 1.1 2007/12/19 02:30:18 balewski 00086 new L2-btow-calib-2008 00087 00088 Revision 1.1 2007/11/19 22:18:25 balewski 00089 most L2algos provide triggerID's 00090 00091 00092 */ 00093
1.5.9