StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEfeeTPTree.h
1 // -*- mode:c++ -*-
2 
3 #ifndef EEfeeTPTree_h
4 #define EEfeeTPTree_h
5 /**************************************************************
6  * $Id: EEfeeTPTree.h,v 1.4 2020/01/13 20:45:50 zchang Exp $
7  * Emulates functionality of Endcap FEE TP-tree
8  **************************************************************/
9 #include <stdlib.h>
10 #include <stdio.h>
11 #include <string.h>
12 class EEfeeTP;
13 
14 class EEfeeTPTree { // DSM0 tree emulators
15  public:
16  enum {mxTP=90, mxTxt=16};
17 
18  private:
19  EEfeeTP *feeTP[mxTP];
20  int TPmap[mxTP];
21  int mxChan;// for one crate, needed for counting channels
22  char name[mxTxt];
23 
24  public:
25 
26  EEfeeTPTree(const char *, int nc );
27  ~EEfeeTPTree();
28  void clear();
29  void compute(int *rawAdc, int *feePed, int *feeMask, int* highTowerMask, int* patchSumMask);
30  EEfeeTP * TP(int i) { return feeTP[i]; }
31  const EEfeeTP * TP(int i) const { return feeTP[i]; }
32  void test(int *tp, int *ht);
33 };
34 
35 #endif
36 
37 /*
38  * $Log: EEfeeTPTree.h,v $
39  * Revision 1.4 2020/01/13 20:45:50 zchang
40  * removing old run13 dsm algo files
41  *
42  * Revision 1.3 2011/10/16 17:41:59 pibero
43  * Implement EEMC FEE HT & TP masks
44  *
45  * Revision 1.2 2009/11/18 15:50:59 pibero
46  * Address several compiler warnings of the type:
47  *
48  * warning: deprecated conversion from string constant 'char*'
49  *
50  * Revision 1.1 2009/10/12 18:04:27 pibero
51  * Moved StEEmcUtil/EEdsm to StTriggerUtilities/Eemc
52  *
53  * Revision 1.2 2009/02/24 03:56:19 ogrebeny
54  * Corrected const-ness
55  *
56  * Revision 1.1 2007/08/17 01:15:37 balewski
57  * full blown Endcap trigger simu, by Xin
58  *
59  *
60  **************************************************************/
61 
62