StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
L2etowCalAlgo12.h
1 #ifndef L2etowCalAlgo12_H
2 #define L2etowCalAlgo12_H
3 /********************************************************
4  * $Id: L2etowCalAlgo12.h,v 1.4 2011/10/19 16:12:10 jml 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 L2EmcGeom2012;
15 #include "L2VirtualAlgo2012.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  L2EmcGeom2012 *mGeom;
36 
37  //........ pointer current events
38  HitTower1 *mEve_etow_hit;
39 
40  // utility methods
41  void createHisto();
42 
43  public:
44  L2etowCalAlgo12(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 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: L2etowCalAlgo12.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.1 2010/04/17 17:27:31 pibero
71  *** empty log message ***
72 
73  Revision 1.2 2008/02/01 00:16:40 balewski
74  add mxListSize to BTOW/ETOW calibration
75 
76  Revision 1.1 2008/01/30 00:47:16 balewski
77  Added L2-Etow-calib
78 
79 
80 
81 
82 */
83