StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
L2etowCalAlgo09.h
1 #ifndef L2etowCalAlgo09_H
2 #define L2etowCalAlgo09_H
3 /********************************************************
4  * $Id: L2etowCalAlgo09.h,v 1.1 2010/04/17 17:27:31 pibero Exp $
5  * \author Jan Balewski,MIT, 2008
6  ********************************************************
7  * Descripion:
8  * calibrates Endcap towers, result is used by other L2-algo
9  ********************************************************
10  */
11 
12 
13 class L2Histo;
14 class L2EmcGeom;
15 #include "L2VirtualAlgo2009.h"
16 
18  /* this class fills the folowing bins of counter histo (mhN)
19  xx - add here
20  */
21  private:
22 
23  //..................... params hard coded in initRun
24  unsigned short par_adcMask;
25  unsigned short par_pedOff;
26 
27  //..................... params set in initRun
28  int par_dbg; // use 0 for real event processing
29  int par_gainType; enum {kGainZero=0, kGainIdeal=1, kGainOffline=2};
30  int par_nSigPed; // ADC, filters towers
31  float par_twEneThres; // GeV, filters towers
32  float par_hotEtThres; // GeV, only monitoring histos
33 
34  //.............run-long variables
35  L2EmcGeom *mGeom;
36 
37  //........ pointer current events
38  HitTower1 *mEve_etow_hit;
39 
40  // utility methods
41  void createHisto();
42 
43  public:
44  L2etowCalAlgo09(const char* name, L2EmcDb* db, L2EmcGeom *geo, char* outDir,int resOff);
45  int initRunUser( int runNo, int *rc_ints, float *rc_floats);
46  void finishRunUser();// at the end of each run
47  void calibrateEtow(int token, int eemcIn, unsigned short *eemcData);
48  void clear(int token);
49  void computeUser(int token); // booby trap
50  void print0();
51 
52 };
53 
54 #endif
55 
56 /**********************************************************************
57  $Log: L2etowCalAlgo09.h,v $
58  Revision 1.1 2010/04/17 17:27:31 pibero
59  *** empty log message ***
60 
61  Revision 1.2 2008/02/01 00:16:40 balewski
62  add mxListSize to BTOW/ETOW calibration
63 
64  Revision 1.1 2008/01/30 00:47:16 balewski
65  Added L2-Etow-calib
66 
67 
68 
69 
70 */
71