00001 // -*- mode:c++ -*- 00002 00003 #ifndef EEfeeTPTree_h 00004 #define EEfeeTPTree_h 00005 /************************************************************** 00006 * $Id: EEfeeTPTree.h,v 1.3 2011/10/16 17:41:59 pibero Exp $ 00007 * Emulates functionality of Endcap FEE TP-tree 00008 **************************************************************/ 00009 #include <stdlib.h> 00010 #include <stdio.h> 00011 #include <string.h> 00012 class EEfeeTP; 00013 00014 class EEfeeTPTree { // DSM0 tree emulators 00015 public: 00016 enum {mxTP=90, mxTxt=16}; 00017 00018 private: 00019 EEfeeTP *feeTP[mxTP]; 00020 int TPmap[mxTP]; 00021 int mxChan;// for one crate, needed for counting channels 00022 char name[mxTxt]; 00023 00024 public: 00025 00026 EEfeeTPTree(const char *, int nc ); 00027 ~EEfeeTPTree(); 00028 void clear(); 00029 void compute(int *rawAdc, int *feePed, int *feeMask, int* highTowerMask, int* patchSumMask); 00030 EEfeeTP * TP(int i) { return feeTP[i]; } 00031 const EEfeeTP * TP(int i) const { return feeTP[i]; } 00032 00033 }; 00034 00035 #endif 00036 00037 /* 00038 * $Log: EEfeeTPTree.h,v $ 00039 * Revision 1.3 2011/10/16 17:41:59 pibero 00040 * Implement EEMC FEE HT & TP masks 00041 * 00042 * Revision 1.2 2009/11/18 15:50:59 pibero 00043 * Address several compiler warnings of the type: 00044 * 00045 * warning: deprecated conversion from string constant 'char*' 00046 * 00047 * Revision 1.1 2009/10/12 18:04:27 pibero 00048 * Moved StEEmcUtil/EEdsm to StTriggerUtilities/Eemc 00049 * 00050 * Revision 1.2 2009/02/24 03:56:19 ogrebeny 00051 * Corrected const-ness 00052 * 00053 * Revision 1.1 2007/08/17 01:15:37 balewski 00054 * full blown Endcap trigger simu, by Xin 00055 * 00056 * 00057 **************************************************************/ 00058 00059
1.5.9