24 LOG(detail) <<
"Invoking preStartStreamCallbacks for " << handle.spec.name;
25 assert(handle.callback);
28 handle.callback(
ref,
nullptr);
35 O2_SIGNPOST_START(stream_context, dpid,
"callbacks",
"Starting StreamContext preProcessingCallbacks");
38 O2_SIGNPOST_START(stream_context, cid,
"callbacks",
"Starting StreamContext::preProcessingCallbacks for service %{public}s", handle.spec.name.c_str());
39 assert(handle.service);
40 assert(handle.callback);
41 handle.callback(pcx, handle.service);
42 O2_SIGNPOST_END(stream_context, cid,
"callbacks",
"Ending StreamContext::preProcessingCallbacks for service %{public}s", handle.spec.name.c_str());
44 O2_SIGNPOST_END(stream_context, dpid,
"callbacks",
"Ending StreamContext preProcessingCallbacks");
51 LOG(
debug) <<
"Invoking finaliseOutputsCallbacks for " << handle.service;
52 assert(handle.service);
53 assert(handle.callback);
54 handle.callback(pcx, handle.service);
62 O2_SIGNPOST_START(stream_context, dpid,
"callbacks",
"Starting StreamContext postProcessingCallbacks");
65 O2_SIGNPOST_START(stream_context, cid,
"callbacks",
"Starting StreamContext::postProcessingCallbacks for service %{public}s", handle.spec.name.c_str());
66 assert(handle.service);
67 assert(handle.callback);
68 handle.callback(pcx, handle.service);
69 O2_SIGNPOST_END(stream_context, cid,
"callbacks",
"Ending StreamContext::postProcessingCallbacks for service %{public}s", handle.spec.name.c_str());
71 O2_SIGNPOST_END(stream_context, dpid,
"callbacks",
"Ending StreamContext postProcessingCallbacks");
78 LOG(detail) <<
"Invoking preEOSCallbacks for" << eosHandle.service;
79 assert(eosHandle.service);
80 assert(eosHandle.callback);
81 eosHandle.callback(eosContext, eosHandle.service);
89 LOG(detail) <<
"Invoking postEOSCallbacks for " << eosHandle.service;
90 assert(eosHandle.service);
91 assert(eosHandle.callback);
92 eosHandle.callback(eosContext, eosHandle.service);
#define O2_DECLARE_DYNAMIC_LOG(name)
#define O2_SIGNPOST_ID_FROM_POINTER(name, log, pointer)
#define O2_SIGNPOST_END(log, id, name, format,...)
#define O2_SIGNPOST_START(log, id, name, format,...)
Defining PrimaryVertex explicitly as messageable.
std::vector< ServiceProcessingHandle > postProcessingHandles
Callbacks for services to be executed after every process method invokation.
void finaliseOutputsCallbacks(ProcessingContext &)
Invoke callbacks to be executed after every process method invokation.
void preProcessingCallbacks(ProcessingContext &pcx)
Invoke callbacks to be executed before every process method invokation.
void preEOSCallbacks(EndOfStreamContext &eosContext)
Invoke callbacks to be executed before every EOS user callback invokation.
std::vector< ServiceStartStreamHandle > preStartStreamHandles
std::vector< ServiceProcessingHandle > finaliseOutputsHandles
void postProcessingCallbacks(ProcessingContext &pcx)
Invoke callbacks to be executed after every process method invokation.
std::vector< ServiceEOSHandle > postEOSHandles
Callbacks for services to be executed after every EOS user callback invokation.
void preStartStreamCallbacks(ServiceRegistryRef)
std::vector< ServiceEOSHandle > preEOSHandles
Callbacks for services to be executed before every EOS user callback invokation.
void postEOSCallbacks(EndOfStreamContext &eosContext)
Invoke callbacks to be executed after every EOS user callback invokation.
std::vector< ServiceProcessingHandle > preProcessingHandles
Callbacks for services to be executed before every process method invokation.
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"