12#ifndef O2_FRAMEWORK_TIMESLICEINDEX_H_
13#define O2_FRAMEWORK_TIMESLICEINDEX_H_
85 [[nodiscard]]
inline size_t size()
const;
144 std::vector<data_matcher::VariableContext> mVariables;
147 std::vector<data_matcher::VariableContext> mPublishedVariables;
151 std::vector<bool> mDirty;
155 std::vector<InputChannelInfo>& mChannels;
159 OldestOutputInfo mOldestPossibleOutput = {};
169#include "TimesliceIndex.inc"
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 s
void publishSlot(TimesliceSlot slot)
Publish a slot to be sent via metrics.
static constexpr ServiceKind service_kind
void markAsDirty(TimesliceSlot slot, bool value)
data_matcher::VariableContext & getPublishedVariablesForSlot(TimesliceSlot slot)
OldestInputInfo setOldestPossibleInput(TimesliceId timeslice, ChannelIndex channel)
bool didReceiveData() const
OldestOutputInfo getOldestPossibleOutput() const
bool isDirty(TimesliceSlot const &slot) const
InputChannelInfo const & getChannelInfo(ChannelIndex channel) const
ActionTaken
The outcome for the processing of a given timeslot.
@ DropObsolete
An invalid context is not inserted in the index and dropped.
@ DropInvalid
We wait for the oldest slot to complete.
@ ReplaceObsolete
An unused / invalid slot is used to hold the new context.
void rescan()
Mark all the cachelines as invalid, e.g. due to an out of band event.
BackpressureOp
What to do when there is backpressure.
bool validateSlot(TimesliceSlot slot, TimesliceId currentOldest)
bool isValid(TimesliceSlot const &slot) const
void markAsInvalid(TimesliceSlot slot)
void associate(TimesliceId timestamp, TimesliceSlot slot)
OldestInputInfo getOldestPossibleInput() const
std::tuple< ActionTaken, TimesliceSlot > replaceLRUWith(data_matcher::VariableContext &newContext, TimesliceId timestamp)
OldestOutputInfo updateOldestPossibleOutput(bool rewinded)
data_matcher::VariableContext & getVariablesForSlot(TimesliceSlot slot)
GLsizei const GLfloat * value
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
Defining ITS Vertex explicitly as messageable.
ServiceKind
The kind of service we are asking for.
static constexpr int INVALID
The result of the replacing the LRU slot with a new one.
TimesliceSlot slot
The slot which was replaced.
ActionTaken action
The action taken.
std::vector< ChannelData > channels