18#ifndef O2_DCS_DATAPOINT_VALUE
19#define O2_DCS_DATAPOINT_VALUE
396 this->payload_pt1 =
data[0] & 0x00000000FFFFFFFF;
400 this->payload_pt1 = (
data[0] ? 1 : 0);
404 this->payload_pt1 =
data[0] & 0x00000000000000FF;
410 this->payload_pt1 =
data[0];
428 throw std::domain_error(
"Invalid DeliveryType.");
449 msec = current_time % 1000;
450 sec = current_time / 1000;
465#if defined(__linux__) || defined(__APPLE__)
469 std::strftime(
buffer, 32,
"%FT%T", std::gmtime(&ts));
470 std::ostringstream oss;
472 return std::make_unique<std::string>(
473 std::move(oss.str()));
475 return std::make_unique<std::string>(
"Unsupported platform");
524 return !(*
this ==
other);
551 this->msec = milliseconds;
600 this->flags =
data[0];
601 this->msec =
data[0] >> 16;
602 this->sec =
data[0] >> 32;
616 << ((dpval.flags &
END_FLAG) ?
"Z" :
"-")
617 << ((dpval.flags &
FBI_FLAG) ?
"M" :
"-")
618 << ((dpval.flags &
NEW_FLAG) ?
"N" :
"-")
620 << ((dpval.flags &
TURN_FLAG) ?
"U" :
"-")
622 << ((dpval.flags &
READ_FLAG) ?
"R " :
"- ")
631 << *(dpval.get_timestamp());
667 flags &= ~WRITE_FLAG;
unsigned short int uint16_t
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events Show standalone event Run event generator maximum time bin of continuous for triggered for automatic continuous for automatic continuous triggered uint64_t
GLint GLint GLsizei GLint GLenum GLenum type
uint64_t epoch_time() noexcept
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::string to_string(gsl::span< T, Size > span)
DataPointValue(const DataPointValue &other)=default
uint64_t get_epoch_time() const noexcept
void set_payload(const uint64_t *const data, const DeliveryType type)
void set(const uint16_t milliseconds, const uint32_t seconds, const uint64_t *const payload, const DeliveryType type)
static constexpr uint16_t BAD_TIMESTAMP_FLAG
static constexpr uint16_t WRITE_FLAG
static constexpr uint16_t DIRTY_FLAG
static constexpr uint64_t TURN_FLAG
void update_timestamp() noexcept
DataPointValue & operator=(const DataPointValue &other)=default
static constexpr uint16_t FBI_FLAG
static constexpr uint16_t END_FLAG
static constexpr uint16_t BAD_PAYLOAD_FLAG
static constexpr uint16_t ERROR_MASK
uint16_t get_flags() const noexcept
static constexpr uint16_t BAD_DPID_FLAG
void set(const uint16_t flags, const uint16_t milliseconds, const uint32_t seconds, const uint64_t *const payload, const DeliveryType type)
static constexpr uint16_t KEEP_ALIVE_FLAG
bool operator==(const DataPointValue &other) const noexcept
DataPointValue(const uint16_t flags, const uint16_t milliseconds, const uint32_t seconds, const uint64_t *const payload) noexcept
void release_write_lock()
void set(const uint64_t *const data, const DeliveryType type)
static constexpr uint16_t DIM_ERROR_FLAG
static constexpr uint16_t SESSION_MASK
static constexpr uint16_t OVERWRITE_FLAG
friend std::ostream & operator<<(std::ostream &os, const DataPointValue &dpval) noexcept
std::unique_ptr< std::string > get_timestamp() const noexcept
static constexpr uint16_t BAD_FBI_FLAG
static constexpr uint16_t VICTIM_FLAG
static constexpr uint16_t BAD_FLAGS_FLAG
DataPointValue(const uint16_t flags, const uint16_t milliseconds, const uint32_t seconds, const uint64_t *const payload, const DeliveryType type)
void acquire_write_lock()
static constexpr uint16_t CONTROL_MASK
static constexpr uint16_t READ_FLAG
static constexpr uint16_t NEW_FLAG
bool operator!=(const DataPointValue &other) const noexcept
ClassDefNV(DataPointValue, 1)
VectorOfTObjectPtrs other