38 #ifndef StTriggerId_hh
39 #define StTriggerId_hh
52 uint64_t mask()
const;
54 unsigned int maxTriggerIds()
const;
55 bool isTrigger(
unsigned int id)
const;
57 unsigned int version(
unsigned int id)
const;
58 unsigned int nameVersion(
unsigned int id)
const;
59 unsigned int thresholdVersion(
unsigned int id)
const;
60 unsigned int prescaleVersion(
unsigned int id)
const;
62 unsigned int triggerId(
const int idx)
const;
63 vector<unsigned int> triggerIds()
const;
66 void setMask(uint64_t);
67 void addTrigger(
unsigned int,
unsigned int,
68 unsigned int,
unsigned int,
unsigned int);
70 friend ostream& operator<<(ostream&,
const StTriggerId&);
73 unsigned int index(
unsigned int)
const;
76 enum {mMaxTriggerIds = 64};
81 UInt_t mId[mMaxTriggerIds];
82 UInt_t mVersion[mMaxTriggerIds];
83 UInt_t mNameVersion[mMaxTriggerIds];
84 UInt_t mThresholdVersion[mMaxTriggerIds];
85 UInt_t mPrescaleVersion[mMaxTriggerIds];
91 StTriggerId::maxTriggerIds()
const {
return mMaxTriggerIds;}
94 StTriggerId::triggerId(
const int idx)
const
96 if (idx>=0 && idx<mMaxTriggerIds)