StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
L2etowCalAlgo08.h
1 #ifndef L2etowCalAlgo08_H
2 #define L2etowCalAlgo08_H
3 /********************************************************
4  * $Id: L2etowCalAlgo08.h,v 1.2 2008/02/01 00:16:40 balewski 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 "L2VirtualAlgo2008.h"
16 
18  /* this class fills the folowing bins of counter histo (mhN)
19  xx - add here
20  */
21  private:
22 
23  //..................... params set in initRun
24  int par_dbg; // use 0 for real event processing
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 histos
29 
30  //.............run-long variables
31  L2EmcGeom *mGeom;
32 
33  //........ pointer current events
34  HitTower1 *mEve_etow_hit;
35 
36  // utility methods
37  void createHisto();
38 
39  public:
40  L2etowCalAlgo08(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 calibrateEtow(int token, int eemcIn, unsigned short *eemcData);
44  void computeUser(int token); // bubby trap
45  void print0();
46 
47 };
48 
49 #endif
50 
51 /**********************************************************************
52  $Log: L2etowCalAlgo08.h,v $
53  Revision 1.2 2008/02/01 00:16:40 balewski
54  add mxListSize to BTOW/ETOW calibration
55 
56  Revision 1.1 2008/01/30 00:47:16 balewski
57  Added L2-Etow-calib
58 
59 
60 
61 
62 */
63