00001 #ifndef EEdsm2_h 00002 #define EEdsm2_h 00003 /************************************************************** 00004 * $Id: EEdsm2.h,v 1.1 2009/10/12 18:04:26 pibero Exp $ 00005 **************************************************************/ 00006 typedef unsigned short ushort; 00007 00008 class EEdsm2 { 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 private: 00015 public: 00016 00017 EEdsm2(); 00018 virtual ~EEdsm2(); 00019 void print(int k=0) const; 00020 void clear(); 00021 void setWord(int ch, ushort val); 00022 void setYear(int y) { mYear=y;} 00023 int getNc() const {return nc;} 00024 ushort get3JPsum(int i3p) const; // i3p #[0,1], less bits in 2006+ 00025 ushort get3JPHTthr(int i3p) const; // i3p #[0,1] 00026 ushort getJPthr(int jp) const; // JP # Falk[0-5], out in 2006+ 00027 ushort getHTTPthr(int i3p) const;// i3p #[0,1], year2006+, selected HT x TP threshold passed?Y/N 00028 ushort getTPthr(int i3p) const; // i3p #[0,1], year2006+, selected TP threshold passed?Y or N 00029 00030 }; 00031 #endif 00032 00033 00034 /* container for STAR trigger data 00035 * $Log: EEdsm2.h,v $ 00036 * Revision 1.1 2009/10/12 18:04:26 pibero 00037 * Moved StEEmcUtil/EEdsm to StTriggerUtilities/Eemc 00038 * 00039 * Revision 1.4 2009/02/24 03:56:19 ogrebeny 00040 * Corrected const-ness 00041 * 00042 * Revision 1.3 2006/04/05 18:34:10 balewski 00043 * new DSM bit assignment in 2006, 00044 * possibly lost backward compatibility 00045 * use tagged 2005 version if needed 00046 * 00047 * Revision 1.2 2005/02/01 22:13:40 perev 00048 * Compatibility to redhat 00049 * 00050 * Revision 1.1 2004/11/29 20:12:59 balewski 00051 * first 00052 * 00053 * Revision 1.1 2004/02/17 03:09:17 balewski 00054 * *** empty log message *** 00055 * 00056 * Revision 1.1 2003/05/22 19:39:00 balewski 00057 * analysis of DSM data 00058 * 00059 * 00060 * decode INPUT data for one board of EE-DSM Layer-1 00061 * 00062 **************************************************************/ 00063
1.5.9