StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
L2btowCalAlgo08.h
1 #ifndef L2btowCalAlgo08_H
2 #define L2btowCalAlgo08_H
3 /*****************************************************
4  * $Id: L2btowCalAlgo08.h,v 1.5 2008/02/01 00:16:40 balewski 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 "L2VirtualAlgo2008.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 set in initRun
24  int par_dbg;
25  int par_gainType; enum {kGainZero=0, kGainIdeal=1, kGainOffline=2};
26  int par_nSigPed; // ADC, filters towers
27  float par_twEneThres; // GeV, filters towers
28  float par_hotEtThres; // GeV, only monitoring
29 
30  //.............run-long variables
31  L2EmcGeom *geom;
32 
33  //........ pointer current events
34  HitTower1 *mEve_btow_hit;
35 
36  // utility methods
37  void createHisto();
38 
39  public:
40  L2btowCalAlgo08(const char* name, L2EmcDb* db, L2EmcGeom *geo, char* outDir);
41  int initRunUser( int runNo, int *rc_ints, float *rc_floats);
42  void finishRunUser();// at the end of each run
43  void calibrateBtow(int token, int bemcIn, unsigned short *bemcData);
44  void computeUser(int token); // bubby trap
45  void print0();
46 
47 };
48 
49 #endif
50 
51 /**********************************************************************
52  $Log: L2btowCalAlgo08.h,v $
53  Revision 1.5 2008/02/01 00:16:40 balewski
54  add mxListSize to BTOW/ETOW calibration
55 
56  Revision 1.4 2008/01/30 00:47:16 balewski
57  Added L2-Etow-calib
58 
59  Revision 1.3 2008/01/18 23:29:13 balewski
60  now L2result is exported
61 
62  Revision 1.2 2008/01/16 23:32:34 balewski
63  toward token dependent compute()
64 
65  Revision 1.1 2007/12/19 02:30:18 balewski
66  new L2-btow-calib-2008
67 
68  Revision 1.1 2007/11/19 22:18:25 balewski
69  most L2algos provide triggerID's
70 
71 
72 */
73