StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EztEventHeader.h
1 #ifndef EztEventHeader_h
2 #define EztEventHeader_h
3 /*********************************************************************
4  * $Id: EztEventHeader.h,v 1.2 2007/07/12 19:46:20 fisyak Exp $
5  *********************************************************************/
6 
7 #include <cstdio>
8 #include <ctime>
9 #include <string.h>
10 
11 #include "TObject.h"
12 
13 
14 class EztEventHeader : public TObject {
15  private:
16  unsigned mEventNumber; //
17  unsigned mToken; //
18  time_t mTimeStamp; //(unix time, GMT)
19  time_t mProcessingTime; // auxiliary
20  unsigned mStatus; // event status
21  int mCommentLen; //
22  char *mComment; //[mCommentLen];
23  unsigned mRunNumber; //
24 
25  public:
27  ~EztEventHeader();
28  void print(int flag=0, FILE *f = stdout) const;
29  void clear();
30 
31  void setEventNumber ( unsigned en) { mEventNumber = en; }
32  void setRunNumber ( unsigned rn) { mRunNumber = rn; }
33  void setToken ( unsigned et) { mToken = et; }
34  void setTimeStamp ( time_t t) { mTimeStamp = t; }
35  void setProcessingTime( time_t t) { mProcessingTime = t; }
36  void setStatus ( unsigned st) { mStatus = st; }
37  void setComment ( const char *str);
38 
39 
40  unsigned getEventNumber() const { return mEventNumber; }
41  unsigned getRunNumber () const { return mRunNumber; }
42  unsigned getToken() const { return mToken; }
43  time_t getTimeStamp() const { return mTimeStamp; }
44  time_t getProcessingTime() const { return mProcessingTime; }
45  unsigned getStatus () const { return mStatus; }
46  const char * getComment () const { return mComment; }
47 
48  ClassDef(EztEventHeader,1)
49 
50 };
51 #endif
52 
53 
54 /*
55  * $Log: EztEventHeader.h,v $
56  * Revision 1.2 2007/07/12 19:46:20 fisyak
57  * Add includes for ROOT 5.16
58  *
59  * Revision 1.1 2004/10/28 00:10:19 mvl
60  * Initial revision of ezTree classes (for EEmc raw data)
61  *
62  *
63  *********************************************************************/
64