StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEdsm2.h
1 #ifndef EEdsm2_h
2 #define EEdsm2_h
3 /**************************************************************
4  * $Id: EEdsm2.h,v 1.1 2009/10/12 18:04:26 pibero Exp $
5  **************************************************************/
6 
7 class EEdsm2 {
8  static const int nc=2; // # of used channels to DSM
9  static const int njp=6; // # of EEMC JP
10  unsigned short data[nc];
11  int mYear;// unpacking changed in 2006
12 
13  private:
14  public:
15 
16  EEdsm2();
17  virtual ~EEdsm2();
18  void print(int k=0) const;
19  void clear();
20  void setWord(int ch, unsigned short val);
21  void setYear(int y) { mYear=y;}
22  int getNc() const {return nc;}
23  unsigned short get3JPsum(int i3p) const; // i3p #[0,1], less bits in 2006+
24  unsigned short get3JPHTthr(int i3p) const; // i3p #[0,1]
25  unsigned short getJPthr(int jp) const; // JP # Falk[0-5], out in 2006+
26  unsigned short getHTTPthr(int i3p) const;// i3p #[0,1], year2006+, selected HT x TP threshold passed?Y/N
27  unsigned short getTPthr(int i3p) const; // i3p #[0,1], year2006+, selected TP threshold passed?Y or N
28 
29 };
30 #endif
31 
32 
33 /* container for STAR trigger data
34  * $Log: EEdsm2.h,v $
35  * Revision 1.1 2009/10/12 18:04:26 pibero
36  * Moved StEEmcUtil/EEdsm to StTriggerUtilities/Eemc
37  *
38  * Revision 1.4 2009/02/24 03:56:19 ogrebeny
39  * Corrected const-ness
40  *
41  * Revision 1.3 2006/04/05 18:34:10 balewski
42  * new DSM bit assignment in 2006,
43  * possibly lost backward compatibility
44  * use tagged 2005 version if needed
45  *
46  * Revision 1.2 2005/02/01 22:13:40 perev
47  * Compatibility to redhat
48  *
49  * Revision 1.1 2004/11/29 20:12:59 balewski
50  * first
51  *
52  * Revision 1.1 2004/02/17 03:09:17 balewski
53  * *** empty log message ***
54  *
55  * Revision 1.1 2003/05/22 19:39:00 balewski
56  * analysis of DSM data
57  *
58  *
59  * decode INPUT data for one board of EE-DSM Layer-1
60  *
61  **************************************************************/
62 
Definition: EEdsm2.h:7