StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
L2btowCalAlgo09.h
1 #ifndef L2btowCalAlgo09_H
2 #define L2btowCalAlgo09_H
3 /*****************************************************
4  * $Id: L2btowCalAlgo09.h,v 1.2 2010/04/17 16:42:09 pibero Exp $
5  * \author Jan Balewski, MIT, 2008
6  *****************************************************
7  * Descripion:
8  * calibrates Barrel 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  5 - # of eve w/ overflow # of towers, in calib() input
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;
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
33 
34  //.............run-long variables
35  L2EmcGeom *geom;
36 
37  //........ pointer current events
38  HitTower1 *mEve_btow_hit;
39 
40  // utility methods
41  void createHisto();
42 
43  public:
44  L2btowCalAlgo09(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 calibrateBtow(int token, int bemcIn, unsigned short *bemcData);
48  void clear(int token);
49  void computeUser(int token); // booby trap
50  void print0();
51 
52 };
53 
54 #endif
55 
56 /**********************************************************************
57  $Log: L2btowCalAlgo09.h,v $
58  Revision 1.2 2010/04/17 16:42:09 pibero
59  *** empty log message ***
60 
61  Revision 1.5 2008/02/01 00:16:40 balewski
62  add mxListSize to BTOW/ETOW calibration
63 
64  Revision 1.4 2008/01/30 00:47:16 balewski
65  Added L2-Etow-calib
66 
67  Revision 1.3 2008/01/18 23:29:13 balewski
68  now L2result is exported
69 
70  Revision 1.2 2008/01/16 23:32:34 balewski
71  toward token dependent compute()
72 
73  Revision 1.1 2007/12/19 02:30:18 balewski
74  new L2-btow-calib-2008
75 
76  Revision 1.1 2007/11/19 22:18:25 balewski
77  most L2algos provide triggerID's
78 
79 
80 */
81