00001 #ifndef BEdsm2_h 00002 #define BEdsm2_h 00003 /************************************************************** 00004 * $Id: BEdsm2.h,v 1.1 2009/10/12 18:04:25 pibero Exp $ 00005 **************************************************************/ 00006 typedef unsigned short ushort; 00007 00008 class BEdsm2 { 00009 static const int nc=2; // # of used channels to DSM 00010 static const int njp=6; // # of EEMC JP 00011 ushort data[nc]; 00012 int mYear;// unpacking changed in 2006 00013 00014 00015 private: 00016 public: 00017 00018 BEdsm2(); 00019 virtual ~BEdsm2(); 00020 void print(int k=0) const; 00021 void clear(); 00022 void setWord(int ch, ushort val); 00023 void setYear(int y){mYear=y;} 00024 int getNc() const {return nc;} 00025 ushort getJPthr(int jp) const; // JP # Falk[0-5], out in 2006+ 00026 //..... input 00027 int getInpHT2bit(int i3p) const; // i3p #[0,1] 00028 int getInpHT2bit_2(int i3p) const; // i3p #[0,1] 00029 int getInpTP1bit(int i3p) const; // i3p #[0,1], year2006+, selected TP threshold passing sign 00030 int getInpHTTP1bit(int i3p) const; // i3p #[0,1] 00031 int getInpEsum5bit(int i3p) const; // i3p #[0,1] 00032 int getInpJP2bit(int i3p) const; // i3p #[0,1] 00033 }; 00034 #endif 00035 00036 00037 /* container for STAR trigger data 00038 * $Log: BEdsm2.h,v $ 00039 * Revision 1.1 2009/10/12 18:04:25 pibero 00040 * Moved StEEmcUtil/EEdsm to StTriggerUtilities/Eemc 00041 * 00042 * Revision 1.2 2009/02/24 03:56:18 ogrebeny 00043 * Corrected const-ness 00044 * 00045 * Revision 1.1 2007/08/17 01:15:35 balewski 00046 * full blown Endcap trigger simu, by Xin 00047 * 00048 * Revision 1.3 2006/04/05 18:34:10 balewski 00049 * new DSM bit assignment in 2006, 00050 * possibly lost backward compatibility 00051 * use tagged 2005 version if needed 00052 * 00053 * Revision 1.2 2005/02/01 22:13:40 perev 00054 * Compatibility to redhat 00055 * 00056 * Revision 1.1 2004/11/29 20:12:59 balewski 00057 * first 00058 * 00059 * Revision 1.1 2004/02/17 03:09:17 balewski 00060 * *** empty log message *** 00061 * 00062 * Revision 1.1 2003/05/22 19:39:00 balewski 00063 * analysis of DSM data 00064 * 00065 * 00066 * decode INPUT data for one board of EE-DSM Layer-1 00067 * 00068 **************************************************************/ 00069
1.5.9