StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
L2BinEvent.h
1 #ifndef L2BINEVENT_h
2 #define L2BINEVENT_h
3 /*********************************************************************
4  * $Id: L2BinEvent.h,v 1.1 2007/10/11 00:33:13 balewski Exp $
5  * \author Jan Balewski, IUCF, 2006
6  *********************************************************************
7  * Descripion:
8  * binary dump of TRIG, BTOW & ETOW data
9  * very primitive binary dump of STAR events
10  *********************************************************************
11  */
12 
13 class L2BinEvent {
14  public:
15  struct BinEveContainer {
16  unsigned int lenA[4];
17  char mHEAD [100];
18  char mTrigData [25000];
19  unsigned short mBTOW_BANK [4800];
20  unsigned short mETOW_BANK [2000];
21  unsigned short mBTOW_in,mETOW_in;
22  };
23 
24  L2BinEvent();
25  static int read(struct BinEveContainer*, FILE *fd, int dbg=0);
26  static void write(char* headText, int trgLen, void * trgData,
27  int bemcLen, unsigned short *bemcData,
28  int eemcLen, unsigned short *eemcData,
29  FILE *fd);
30 };
31 
32 #endif
33 
34 /*
35 *********************************************************************
36  $Log: L2BinEvent.h,v $
37  Revision 1.1 2007/10/11 00:33:13 balewski
38  L2algo added
39 
40  Revision 1.2 2006/03/11 17:08:32 balewski
41  now CVS comments should work
42 
43 */
44