18#ifndef DETECTORS_HMPID_BASE_INCLUDE_HMPIDBASE_TRIGGER_H_
19#define DETECTORS_HMPID_BASE_INCLUDE_HMPIDBASE_TRIGGER_H_
36 static inline uint64_t
getTriggerID(uint32_t Orbit, uint16_t BC) {
return ((Orbit << 12) | (0x0FFF & BC)); };
44 uint16_t
getBc()
const {
return mIr.
bc; };
46 void setDataRange(
int firstentry,
int nentries) { mDataRange.set(firstentry, nentries); }
49 int getLastEntry()
const {
return mDataRange.getFirstEntry() + mDataRange.getEntries() - 1; }
62 mIr.
orbit = (trigger >> 12);
63 mIr.
bc = (trigger & 0x0FFF);
Class to refer to the 1st entry and N elements of some group in the continuous container.
HMPID Trigger declaration.
friend std::ostream & operator<<(std::ostream &os, const Trigger &d)
uint64_t getTriggerID() const
void setTriggerID(uint64_t trigger)
friend bool operator>(const Trigger &l, const Trigger &r)
void setDataRange(int firstentry, int nentries)
static uint64_t getTriggerID(uint32_t Orbit, uint16_t BC)
Trigger(InteractionRecord ir, int32_t first, int32_t n)
friend bool operator!=(const Trigger &l, const Trigger &r)
friend bool operator<(const Trigger &l, const Trigger &r)
int getFirstEntry() const
friend bool operator>=(const Trigger &l, const Trigger &r)
uint32_t getOrbit() const
friend bool operator<=(const Trigger &l, const Trigger &r)
const InteractionRecord & getIr() const
friend bool operator==(const Trigger &l, const Trigger &r)
int getNumberOfObjects() const
void setOrbit(uint32_t orbit)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
uint16_t bc
bunch crossing ID of interaction
o2::InteractionRecord ir(0, 0)