21#include <fairmq/Device.h>
38void customize(std::vector<CallbacksPolicy>& policies)
43 service.
set<CallbackService::Id::Start>([]() {
LOG(info) <<
"invoked at start"; });
64 LOG(info) <<
"There are " << runningWorkflow.
devices.size() <<
" devices in the workflow";
66 LOGP(info,
"Invoked {}", what);
67 device.
device()->WaitFor(std::chrono::milliseconds(minDelay));
87 .options = {
ConfigParamSpec{
"some-device-param", VariantType::Int, 1, {
"Some device parameter"}},
91 .inputs = {
InputSpec{
"x",
"TST",
"A1", Lifetime::Timeframe, {
ConfigParamSpec{
"somestring", VariantType::String,
"", {
"Some input param"}}}}},
104 auto ref = inputs.
get(
"b");
105 auto header = o2::header::get<const DataProcessingHeader*>(
ref.header);
106 LOG(info) <<
"Start time: " << header->startTime;
108 .labels = {{
"expendable"}}};
decltype(auto) make(const Output &spec, Args... args)
virtual fair::mq::Device * device()=0
GLboolean GLboolean GLboolean b
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)
AlgorithmSpec::InitCallback adaptStateful(LAMBDA l)
WorkflowSpec defineDataProcessing(ConfigContext const &specs)
This function hooks up the the workflow specifications into the DPL driver.
void customize(std::vector< CallbacksPolicy > &policies)
AlgorithmSpec simplePipe(std::string const &what, int minDelay)
Configurable< int > anInt
Configurable< std::string > aString
Configurable< bool > aBool
Configurable< double > aDouble
Configurable< float > aFloat
static DeviceMatcher matchByName(const char *name)
Information about the running workflow.
std::vector< DeviceSpec > devices
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"