StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHltTriggerReason.h
1 /***************************************************************************
2  *
3  * $Id: StHltTriggerReason.h,v 2.1 2011/02/01 19:45:48 ullrich Exp $
4  *
5  * Author: Liang Xue, Aihong Tang, Jan 2011
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StHltTriggerReason.h,v $
13  * Revision 2.1 2011/02/01 19:45:48 ullrich
14  * Initial Revision
15  *
16  **************************************************************************/
17 #ifndef StHltTriggerReason_hh
18 #define StHltTriggerReason_hh
19 
20 #include <Stiostream.h>
21 #include "StObject.h"
22 #include "StArray.h"
23 
25 
26 enum StHltTriggerReasonType {
27  kHighPt = 0x10000,
28  kDiElectron = 0x20000,
29  kHeavyFragment = 0x40000,
30  kAllEvents = 0x80000,
31  kRandomEvents = 0x100000,
32  kBESGoodEvents = 0x200000,
33 };
34 
35 class StHltTriggerReason : public StObject {
36 public:
39 
40  StHltTriggerReasonType reasonBit() const;
41  StHltTriggerReasonCapable* reason();
42  const StHltTriggerReasonCapable* reason() const;
43 
44  void setReasonBit(StHltTriggerReasonType);
45  void setReason(StHltTriggerReasonCapable*);
46 
47 
48 private:
49  StHltTriggerReasonType mReasonBit;
50 #ifdef __CINT__
51  StObjLink mReason;
52 #else
54 #endif //__CINT__
55 
57 
58  ClassDef(StHltTriggerReason,1)
59 };
60 
61 inline StHltTriggerReasonType StHltTriggerReason::reasonBit() const {return mReasonBit;}
62 inline StHltTriggerReasonCapable* StHltTriggerReason::reason() { return mReason; }
63 inline const StHltTriggerReasonCapable* StHltTriggerReason::reason() const { return mReason; }
64 
65 ostream& operator<<(ostream&, const StHltTriggerReason&);
66 
67 #endif