+ UInt_t GetPeriod() const {
+ const UInt_t *id = GetEventId();
+ return id ? (((id)[0]>>4)&0x0fffffff): 0;
+ }
+ UInt_t GetOrbitID() const {
+ const UInt_t *id = GetEventId();
+ return id ? ((((id)[0]<<20)&0xf00000)|(((id)[1]>>12)&0xfffff)) : 0;
+ }
+ UShort_t GetBCID() const {
+ const UInt_t *id = GetEventId();
+ return id ? ((id)[1]&0x00000fff) : 0;
+ }
+ ULong64_t GetEventIdAsLong() const {
+ return (((ULong64_t)GetPeriod() << 36) |
+ ((ULong64_t)GetOrbitID() << 12) |
+ (ULong64_t)GetBCID());
+ }