21#include <fairmq/Device.h>
38void customize(std::vector<CompletionPolicy>& policies)
41 a.order = CompletionPolicy::CompletionOrder::Timeslice;
43 policies.push_back(
a);
55 for (
unsigned int i = 0;
i < 10;
i++) {
61 ConfigParamSpec{
"some-device-param", VariantType::Int, 1, {
"Some device parameter"}},
69 .inputs = {
InputSpec{
"a",
"TS1", Lifetime::Sporadic},
InputSpec{
"b",
"TS2", Lifetime::Sporadic}},
72 auto ref = inputs.
get(
"b");
74 LOG(info) <<
"Header is not there";
77 auto dph = o2::header::get<const DataProcessingHeader*>(
ref.header);
78 auto dh = o2::header::get<const o2::header::DataHeader*>(
ref.header);
79 LOG(info) <<
"Start time: " << dph->startTime;
80 LOG(info) <<
"Subspec: " << dh->subSpecification;
void snapshot(const Output &spec, T const &object)
GLboolean GLboolean GLboolean GLboolean a
WorkflowSpec concat(T &&t, ARGS &&... args)
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
AlgorithmSpec::ProcessCallback adaptStateless(LAMBDA l)
WorkflowSpec defineDataProcessing(ConfigContext const &specs)
This function hooks up the the workflow specifications into the DPL driver.
void customize(std::vector< CompletionPolicy > &policies)
Configurable< int > anInt
Configurable< std::string > aString
Configurable< bool > aBool
Configurable< double > aDouble
Configurable< float > aFloat
static CompletionPolicy consumeWhenAll(const char *name, CompletionPolicy::Matcher matcher)
Default Completion policy. When all the parts of a record have arrived, consume them.
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"