StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
L2wEemc2009.h
1 #ifndef L2wEemc2009_H
2 #define L2wEemc2009_H
3 /*********************************************************************
4  * $Id: L2wEemc2009.h,v 1.1 2009/03/28 19:43:53 balewski Exp $
5  * \author Jan Balewski, MIT, 2008
6  *********************************************************************
7  * Descripion:
8  * example algo finding list of 2x2 BTOW clusters based on ET-seed list produced by L2-btow-calib algo
9  * features: uses 2D array (ieta vs. iphi )
10  * Limitations:
11  * - ignores seeds at the edges
12  * - double processing for neighbours seeds
13  *********************************************************************
14  */
15 
16 #ifdef IS_REAL_L2 //in l2-ana environment
17  #include "L2VirtualAlgo2009.h"
18 #else
19  #include "StTriggerUtilities/L2Emulator/L2algoUtil/L2VirtualAlgo2009.h"
20 #endif
21 
22 class L2Histo;
23 class L2EmcGeom;
24 
26  private:
27 
28  //..................... params set in initRun
29  int par_dbg;
30  float par_EtThresh;
31 
32  //............... preserved for Decision(),
33  float highestEt[L2eventStream2009::mxToken];
34 
35  // utility methods
36  void createHisto();
37 
38  public:
39  L2wEemc2009(const char* name, L2EmcDb* db, L2EmcGeom *geo, char* outDir, int resOff);
40  int initRunUser( int runNo, int *rc_ints, float *rc_floats);
41  void finishRunUser();// at the end of each run
42  void computeUser(int token);
43  bool decisionUser(int token, int *myL2Result);
44 };
45 
46 #endif
47 
48 /**********************************************************************
49  $Log: L2wEemc2009.h,v $
50  Revision 1.1 2009/03/28 19:43:53 balewski
51  2009 code
52 
53 
54 
55 */
56