StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEventInfo.h
1 
5 /***************************************************************************
6  *
7  * $Id: StEventInfo.h,v 2.6 2009/11/23 16:34:06 fisyak Exp $
8  *
9  * Author: Thomas Ullrich, Jun 2000
10  ***************************************************************************
11  *
12  * Description:
13  *
14  ***************************************************************************
15  *
16  * $Log: StEventInfo.h,v $
17  * Revision 2.6 2009/11/23 16:34:06 fisyak
18  * Cleanup, remove dependence on dst tables, clean up software monitors
19  *
20  * Revision 2.5 2002/02/22 22:56:47 jeromel
21  * Doxygen basic documentation in all header files. None of this is required
22  * for QM production.
23  *
24  * Revision 2.4 2001/09/19 04:48:08 ullrich
25  * Added event size.
26  *
27  * Revision 2.3 2001/04/05 04:00:36 ullrich
28  * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs.
29  *
30  * Revision 2.2 2000/09/06 22:34:24 ullrich
31  * Changed mBunchCrossingNumber from scalar to array to hold all 64 bits.
32  *
33  * Revision 2.1 2000/06/19 01:32:16 perev
34  * Thomas StEvent branches added
35  *
36  **************************************************************************/
37 #ifndef StEventInfo_hh
38 #define StEventInfo_hh
39 
40 #include "StObject.h"
41 #include "TString.h"
42 class event_header_st;
43 
44 class StEventInfo : public StObject {
45 public:
46  StEventInfo();
47  virtual ~StEventInfo();
48 
49  const TString& type() const;
50  int id() const;
51  int runId() const;
52  int time() const;
53  unsigned int triggerMask() const;
54  unsigned int bunchCrossingNumber(unsigned int) const;
55  unsigned int eventSize() const;
56 
57  void setType(const char*);
58  void setRunId(int);
59  void setId(int);
60  void setTime(int);
61  void setTriggerMask(unsigned int);
62  void setBunchCrossingNumber(unsigned int, unsigned int);
63  void setEventSize(unsigned int);
64 
65 protected:
66  TString mType;
67  Int_t mRunId;
68  Int_t mId;
69  Int_t mTime;
70  UInt_t mTriggerMask;
71  UInt_t mBunchCrossingNumber[2];
72  UInt_t mEventSize;
73 
74  ClassDef(StEventInfo,2)
75 };
76 #endif