StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
L2pedAlgo09.h
1 #ifndef L2PEDALGO09_H
2 #define L2PEDALGO09_H
3 
4 /*************************************************************
5  * $Id: L2pedAlgo09.h,v 1.1 2010/04/17 17:14:37 pibero Exp $
6  * \author Jan Balewski, IUCF, 2006
7  *************************************************************
8  * Descripion:
9  * pedestal algo in L2 , for BTOW & ETOW
10  *************************************************************
11  */
12 
13 
14 class L2Histo;
15 #ifdef IS_REAL_L2 //in l2-ana environmen
16  #include "L2VirtualAlgo2009.h"
17 #else
18 #include "StTriggerUtilities/L2Emulator/L2algoUtil/L2VirtualAlgo2009.h"
19 #endif
20 
22  enum{minAdc=-20, maxAdc=4096};
23 
24  bool par_pedSubtr;
25  bool par_saveBinary;
26  int par_speedFact;
27  int par_dbg;
28  int par_prescAccept;
29 
30  // speed-variables
31  short s_stepE, s_stepB, s_lastE, s_lastB;
32 
33  //.............run-long variables
34  int par_maxMatt; // upper limit of ADC for 2D ADC plot for Matt
35 
36  L2Histo *btowAdc[BtowGeom::mxRdo]; // my private HBOOK@L2
37  L2Histo *etowAdc[EtowGeom::mxRdo]; // my private HBOOK@L2
38  int nInp; // input event counter
39  int run_number;
40 
41  /* fast DB lookup tables */
42  unsigned short db_btowPed[BtowGeom::mxRdo];
43  unsigned short db_etowPed[EtowGeom::mxRdo];
44 
45  public:
46  L2pedAlgo09(const char* name, L2EmcDb* db, char* outDir, int resOff);
47  int initRunUser(int runNo, int *rc_ints, float *rc_floats);
48  void finishRunUser();// at the end of each run
49  void computeUser(int token); // booby trap
50 
51  bool doPedestals(int inpEveId, int* L2Result, // for every event
52  int bemcIn, unsigned short *bemcData,
53  int eemcIn, unsigned short *eemcData);
54 
55 };
56 
57 #endif
58 
59 
60 /**********************************************************************
61  $Log: L2pedAlgo09.h,v $
62  Revision 1.1 2010/04/17 17:14:37 pibero
63  *** empty log message ***
64 
65  Revision 1.5 2007/11/18 21:58:59 balewski
66  L2algos triggerId list fixed
67 
68  Revision 1.4 2007/11/08 04:02:33 balewski
69  run on l2ana as well
70 
71  Revision 1.3 2007/11/02 03:03:50 balewski
72  modified L2VirtualAlgo
73 
74  Revision 1.2 2007/10/25 02:07:07 balewski
75  added L2upsilon & binary event dump
76 
77  Revision 1.1 2007/10/11 00:33:25 balewski
78  L2algo added
79 
80  Revision 1.5 2006/03/28 19:46:51 balewski
81  ver16b, in l2new
82 
83  Revision 1.4 2006/03/11 17:08:35 balewski
84  now CVS comments should work
85 
86 */
87