StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEmcEventHeader.h
1 #ifndef EEmcEventHeader_h
2 #define EEmcEventHeader_h
3 /*********************************************************************
4  * $Id: EEmcEventHeader.h,v 1.9 2007/07/12 19:30:13 fisyak Exp $
5  *********************************************************************/
6 #include <string.h>
7 #include <cstdio>
8 #include <ctime>
9 #include "TObject.h"
10 
11 
12 class EEmcEventHeader : public TObject {
13  private:
14  unsigned mEventNumber; //
15  unsigned mToken; //
16  time_t mTimeStamp; //(unix time, GMT)
17  time_t mProcessingTime; // auxiliary
18  unsigned mStatus; // event status
19  int mCommentLen; //
20  char *mComment; //[mCommentLen];
21  unsigned mRunNumber; //
22 
23  public:
25  virtual ~EEmcEventHeader();
26  void print(FILE *f = stdout) const;
27  void clear();
28 
29  void setEventNumber ( unsigned en) { mEventNumber = en; }
30  void setRunNumber ( unsigned rn) { mRunNumber = rn; }
31  void setToken ( unsigned et) { mToken = et; }
32  void setTimeStamp ( time_t t) { mTimeStamp = t; }
33  void setProcessingTime( time_t t) { mProcessingTime = t; }
34  void setStatus ( unsigned st) { mStatus = st; }
35  void setComment ( const char *str);
36 
37 
38  unsigned getEventNumber() const { return mEventNumber; }
39  unsigned getRunNumber () const { return mRunNumber; }
40  unsigned getToken() const { return mToken; }
41  time_t getTimeStamp() const { return mTimeStamp; }
42  time_t getProcessingTime() const { return mProcessingTime; }
43  unsigned getStatus () const { return mStatus; }
44  const char * getComment () const { return mComment; }
45 
46  ClassDef(EEmcEventHeader,4)
47 
48 };
49 #endif
50 
51 
52 /*
53  * $Log: EEmcEventHeader.h,v $
54  * Revision 1.9 2007/07/12 19:30:13 fisyak
55  * Add includes for ROOT 5.16
56  *
57  * Revision 1.8 2003/12/02 17:22:08 balewski
58  * fix after version mixup
59  *
60  * Revision 1.6 2003/11/24 05:40:55 balewski
61  * new stuff for miniDaq
62  *
63  * Revision 1.5 2003/09/11 19:41:01 zolnie
64  * updates for gcc3.2
65  *
66  * Revision 1.4 2003/06/16 16:03:54 zolnie
67  * updated root version number
68  *
69  * Revision 1.3 2003/06/02 18:55:00 zolnie
70  * added run number to the header
71  *
72  * Revision 1.2 2003/05/27 19:11:44 zolnie
73  * added dE/dx info
74  *
75  * Revision 1.1 2003/05/20 19:22:58 zolnie
76  * new additions for ..... :)
77  *
78  *********************************************************************/
79