StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
L2btowCalAlgo12.h
1 #ifndef L2btowCalAlgo12_H
2 #define L2btowCalAlgo12_H
3 /*****************************************************
4  * $Id: L2btowCalAlgo12.h,v 1.4 2011/10/19 16:12:10 jml 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 L2EmcGeom2012;
15 #include "L2VirtualAlgo2012.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  L2EmcGeom2012 *geom;
36 
37  //........ pointer current events
38  HitTower1 *mEve_btow_hit;
39 
40  // utility methods
41  void createHisto();
42 
43  public:
44  L2btowCalAlgo12(const char* name, const char *uid, L2EmcDb2012* db, L2EmcGeom2012 *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: L2btowCalAlgo12.h,v $
58  Revision 1.4 2011/10/19 16:12:10 jml
59  more 2012 stuff
60 
61  Revision 1.3 2011/10/19 15:58:06 jml
62  more compile offline
63 
64  Revision 1.2 2011/10/19 15:39:42 jml
65  2012
66 
67  Revision 1.1 2011/10/18 15:11:41 jml
68  adding 2012 algorithms
69 
70  Revision 1.2 2010/04/17 16:42:12 pibero
71  *** empty log message ***
72 
73  Revision 1.5 2008/02/01 00:16:40 balewski
74  add mxListSize to BTOW/ETOW calibration
75 
76  Revision 1.4 2008/01/30 00:47:16 balewski
77  Added L2-Etow-calib
78 
79  Revision 1.3 2008/01/18 23:29:13 balewski
80  now L2result is exported
81 
82  Revision 1.2 2008/01/16 23:32:34 balewski
83  toward token dependent compute()
84 
85  Revision 1.1 2007/12/19 02:30:18 balewski
86  new L2-btow-calib-2008
87 
88  Revision 1.1 2007/11/19 22:18:25 balewski
89  most L2algos provide triggerID's
90 
91 
92 */
93