StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEstarTrig.h
1 #ifndef EEstarTrig_h
2 #define EEstarTrig_h
3 /*********************************************************************
4  * $Id: EEstarTrig.h,v 1.10 2007/07/12 19:30:13 fisyak Exp $
5  *********************************************************************
6  * container for STAR trigger data
7  */
8 
9 #include <TObject.h>
10 #include <string.h>
11 #define u_int unsigned int
12 #define u_char unsigned char
13 #define u_short unsigned short
14 
15 class EEstarTrig : public TObject {
16  private:
17  public:
18  u_int bX48hi, bX48lo, bX7bit; // bXing counter
19 
20  // u_int spinBits ( format not yet specified )
21  u_int daqbits ; // fired triggers
22  u_short offline_id[32] ; // trigged ID for fired triggers
23 
24  // E-EMC DSM inputs level-0, 1
25  u_char EEMC[144] ;
26  u_short EEMC_l1[16] ;
27 
28  // B-EMC DSM inputs
29  u_char BEMC[2][240] ;
30  u_short BEMC_l1[48] ;
31 
32  // CTB hits
33  u_char CTB[240] ;
34  u_short lastDSM[8]; //level-3 inputs , results of all DSM trees
35  u_short npre,npost; // used in a trivial way for now
36  u_short VTX[8]; // level-2 inputs for BBC and ZDC
37  u_short EMC[8]; // level-2 inputs, results of separate BEMC and EEMC DSMs
38 
39  u_char spinBits() const { return (lastDSM[7]>>4) & 0xff; }
40  u_short bbcTimeDiff() const { return VTX[3] & 0x1ff; }
41  int isTrigID(int id);
42  int get48bXing() const;
43  EEstarTrig();
44  virtual ~EEstarTrig();
45  void print(int k=0, FILE *fd=stdout) const;
46  void clear();
47  ClassDef(EEstarTrig,3)
48 
49 };
50 #endif
51 
52 /*************************************************************
53  * $Log: EEstarTrig.h,v $
54  * Revision 1.10 2007/07/12 19:30:13 fisyak
55  * Add includes for ROOT 5.16
56  *
57  * Revision 1.9 2004/09/07 20:32:01 balewski
58  * more methods, remove questionable spin bits interpetation
59  *
60  * Revision 1.8 2004/06/21 19:50:21 balewski
61  * mre detailed monitoring of data corruption
62  *
63  * Revision 1.7 2003/09/11 19:41:03 zolnie
64  * updates for gcc3.2
65  *
66  * Revision 1.6 2003/06/16 16:03:54 zolnie
67  * updated root version number
68  *
69  * Revision 1.5 2003/06/02 04:36:40 balewski
70  * added check if trigID
71  *
72  * Revision 1.4 2003/05/29 21:43:54 zolnie
73  * back to Jas order
74  *
75  * Revision 1.3 2003/05/29 21:42:11 zolnie
76  * add file destriptor to print() method
77  *
78  * Revision 1.2 2003/05/28 21:01:00 balewski
79  * added spin bits
80  *
81  * Revision 1.1 2003/05/22 19:12:27 balewski
82  * add trigger data to ezTree
83  *
84  *
85  *********************************************************************/
86 
87 
88 #if 0 // probably all is wrong, JB
89  u_char bitYellFill() const { return ( spinBits()>>0) & 0x1; }
90  u_char bitYellUp() const { return ( spinBits()>>1) & 0x1; }
91  u_char bitYellDown() const { return ( spinBits()>>2) & 0x1; }
92  u_char bitYellUnpol() const { return ( spinBits()>>3) & 0x1; }
93  u_char bitBlueFill() const { return ( spinBits()>>4) & 0x1; }
94  u_char bitBlueUp() const { return ( spinBits()>>5) & 0x1; }
95  u_char bitBlueDown() const { return ( spinBits()>>6) & 0x1; }
96  u_char bitBlueUnpol() const { return ( spinBits()>>7) & 0x1;}
97 #endif