Generic helpers for DataProcessing releated functions.
More...
#include <DataProcessingHelpers.h>
|
| static void | sendEndOfStream (ServiceRegistryRef const &ref, OutputChannelSpec const &channel) |
| |
| static bool | sendOldestPossibleTimeframe (ServiceRegistryRef const &ref, ForwardChannelInfo const &info, ForwardChannelState &state, size_t timeslice) |
| |
| static bool | sendOldestPossibleTimeframe (ServiceRegistryRef const &ref, OutputChannelInfo const &info, OutputChannelState &state, size_t timeslice) |
| |
| static void | broadcastOldestPossibleTimeslice (ServiceRegistryRef const &ref, size_t timeslice) |
| | Broadcast the oldest possible timeslice to all channels in output.
|
| |
| static void | switchState (ServiceRegistryRef const &ref, StreamingState newState) |
| | change the device StreamingState to newState
|
| |
| static bool | hasOnlyGenerated (DeviceSpec const &spec) |
| | check if spec is a source devide
|
| |
| static TransitionHandlingState | updateStateTransition (ServiceRegistryRef const &ref, ProcessingPolicies const &policies) |
| | starts the EoS timers and returns the new TransitionHandlingState in case as new state is requested
|
| |
| static std::vector< fair::mq::Parts > | routeForwardedMessageSet (FairMQDeviceProxy &proxy, std::vector< MessageSet > ¤tSetOfInputs, bool copy, bool consume) |
| | Helper to route messages for forwarding.
|
| |
| static void | routeForwardedMessages (FairMQDeviceProxy &proxy, std::span< fair::mq::MessagePtr > ¤tSetOfInputs, std::vector< fair::mq::Parts > &forwardedParts, bool copy, bool consume) |
| | Helper to route messages for forwarding.
|
| |
| static void | cleanForwardedMessages (std::span< fair::mq::MessagePtr > ¤tSetOfInputs, bool consume) |
| |
Generic helpers for DataProcessing releated functions.
Definition at line 38 of file DataProcessingHelpers.h.
◆ broadcastOldestPossibleTimeslice()
| void o2::framework::DataProcessingHelpers::broadcastOldestPossibleTimeslice |
( |
ServiceRegistryRef const & |
ref, |
|
|
size_t |
timeslice |
|
) |
| |
|
static |
◆ cleanForwardedMessages()
| void o2::framework::DataProcessingHelpers::cleanForwardedMessages |
( |
std::span< fair::mq::MessagePtr > & |
currentSetOfInputs, |
|
|
bool |
consume |
|
) |
| |
|
static |
◆ hasOnlyGenerated()
| bool o2::framework::DataProcessingHelpers::hasOnlyGenerated |
( |
DeviceSpec const & |
spec | ) |
|
|
static |
◆ routeForwardedMessages()
| void o2::framework::DataProcessingHelpers::routeForwardedMessages |
( |
FairMQDeviceProxy & |
proxy, |
|
|
std::span< fair::mq::MessagePtr > & |
currentSetOfInputs, |
|
|
std::vector< fair::mq::Parts > & |
forwardedParts, |
|
|
bool |
copy, |
|
|
bool |
consume |
|
) |
| |
|
static |
◆ routeForwardedMessageSet()
| auto o2::framework::DataProcessingHelpers::routeForwardedMessageSet |
( |
FairMQDeviceProxy & |
proxy, |
|
|
std::vector< MessageSet > & |
currentSetOfInputs, |
|
|
bool |
copy, |
|
|
bool |
consume |
|
) |
| |
|
static |
◆ sendEndOfStream()
◆ sendOldestPossibleTimeframe() [1/2]
- Returns
- true if we did send the oldest possible timeslice message, false otherwise.
Definition at line 85 of file DataProcessingHelpers.cxx.
◆ sendOldestPossibleTimeframe() [2/2]
- Returns
- true if we did send the oldest possible timeslice message, false otherwise.
Definition at line 98 of file DataProcessingHelpers.cxx.
◆ switchState()
◆ updateStateTransition()
starts the EoS timers and returns the new TransitionHandlingState in case as new state is requested
Definition at line 178 of file DataProcessingHelpers.cxx.
The documentation for this struct was generated from the following files: