15#include <Monitoring/Monitoring.h>
32 {
OutputSpec{
"TES",
"STATEFUL", 0, Lifetime::Timeframe}},
43 LOG(info) <<
"start " << step;
47 LOG(info) <<
"stop " << step;
51 LOG(info) <<
"reset " << step;
53 callbacks.
set<CallbackService::Id::Start>(startcb);
54 callbacks.
set<CallbackService::Id::Stop>(stopcb);
55 callbacks.
set<CallbackService::Id::Reset>(resetcb);
57 auto& out = outputs.
newChunk({
"TES",
"STATEFUL", 0},
sizeof(
int));
58 auto outI =
reinterpret_cast<int*
>(out.data());
59 LOG(info) <<
"foo " <<
foo;
69 {
InputSpec{
"test",
"TES",
"STATEFUL", 0, Lifetime::Timeframe}},
76 const int* in =
reinterpret_cast<const int*
>(inputs.
get(
"test").payload);
79 LOG(error) <<
"Expecting " <<
expected <<
" found " << *in;
81 LOG(info) <<
"Everything OK for " << (
expected - 1);
void readyToQuit(bool all)
Compatibility with old API.
void endOfStream()
Signal that we are done with the current stream.
DataChunk & newChunk(const Output &, size_t)
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
AlgorithmSpec::ProcessCallback adaptStateless(LAMBDA l)
std::vector< InputSpec > Inputs
std::vector< OutputSpec > Outputs
AlgorithmSpec::InitCallback adaptStateful(LAMBDA l)
std::map< std::string, ID > expected
WorkflowSpec defineDataProcessing(ConfigContext const &)
This function hooks up the the workflow specifications into the DPL driver.
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"