StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
BEdsm2.h
1 #ifndef BEdsm2_h
2 #define BEdsm2_h
3 /**************************************************************
4  * $Id: BEdsm2.h,v 1.1 2009/10/12 18:04:25 pibero Exp $
5  **************************************************************/
6 
7 class BEdsm2 {
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 
14  private:
15  public:
16 
17  BEdsm2();
18  virtual ~BEdsm2();
19  void print(int k=0) const;
20  void clear();
21  void setWord(int ch, unsigned short val);
22  void setYear(int y){mYear=y;}
23  int getNc() const {return nc;}
24  unsigned short getJPthr(int jp) const; // JP # Falk[0-5], out in 2006+
25  //..... input
26  int getInpHT2bit(int i3p) const; // i3p #[0,1]
27  int getInpHT2bit_2(int i3p) const; // i3p #[0,1]
28  int getInpTP1bit(int i3p) const; // i3p #[0,1], year2006+, selected TP threshold passing sign
29  int getInpHTTP1bit(int i3p) const; // i3p #[0,1]
30  int getInpEsum5bit(int i3p) const; // i3p #[0,1]
31  int getInpJP2bit(int i3p) const; // i3p #[0,1]
32 };
33 #endif
34 
35 
36 /* container for STAR trigger data
37  * $Log: BEdsm2.h,v $
38  * Revision 1.1 2009/10/12 18:04:25 pibero
39  * Moved StEEmcUtil/EEdsm to StTriggerUtilities/Eemc
40  *
41  * Revision 1.2 2009/02/24 03:56:18 ogrebeny
42  * Corrected const-ness
43  *
44  * Revision 1.1 2007/08/17 01:15:35 balewski
45  * full blown Endcap trigger simu, by Xin
46  *
47  * Revision 1.3 2006/04/05 18:34:10 balewski
48  * new DSM bit assignment in 2006,
49  * possibly lost backward compatibility
50  * use tagged 2005 version if needed
51  *
52  * Revision 1.2 2005/02/01 22:13:40 perev
53  * Compatibility to redhat
54  *
55  * Revision 1.1 2004/11/29 20:12:59 balewski
56  * first
57  *
58  * Revision 1.1 2004/02/17 03:09:17 balewski
59  * *** empty log message ***
60  *
61  * Revision 1.1 2003/05/22 19:39:00 balewski
62  * analysis of DSM data
63  *
64  *
65  * decode INPUT data for one board of EE-DSM Layer-1
66  *
67  **************************************************************/
68 
Definition: BEdsm2.h:7