00001 #ifndef L2etowCalAlgo12_H 00002 #define L2etowCalAlgo12_H 00003 /******************************************************** 00004 * $Id: L2etowCalAlgo12.h,v 1.4 2011/10/19 16:12:10 jml Exp $ 00005 * \author Jan Balewski,MIT, 2008 00006 ******************************************************** 00007 * Descripion: 00008 * calibrates Endcap 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 L2etowCalAlgo12 : public L2VirtualAlgo2012 { 00018 /* this class fills the folowing bins of counter histo (mhN) 00019 xx - add here 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; // use 0 for real event processing 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 histos 00033 00034 //.............run-long variables 00035 L2EmcGeom2012 *mGeom; 00036 00037 //........ pointer current events 00038 HitTower1 *mEve_etow_hit; 00039 00040 // utility methods 00041 void createHisto(); 00042 00043 public: 00044 L2etowCalAlgo12(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 calibrateEtow(int token, int eemcIn, ushort *eemcData); 00048 void clear(int token); 00049 void computeUser(int token); // booby trap 00050 void print0(); 00051 00052 }; 00053 00054 #endif 00055 00056 /********************************************************************** 00057 $Log: L2etowCalAlgo12.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.1 2010/04/17 17:27:31 pibero 00071 *** empty log message *** 00072 00073 Revision 1.2 2008/02/01 00:16:40 balewski 00074 add mxListSize to BTOW/ETOW calibration 00075 00076 Revision 1.1 2008/01/30 00:47:16 balewski 00077 Added L2-Etow-calib 00078 00079 00080 00081 00082 */ 00083
1.5.9