12#ifndef O2_DCS_CONSUMER_H
13#define O2_DCS_CONSUMER_H
27#include <TStopwatch.h>
44 mReportTiming = ic.options().get<
bool>(
"report-timing");
51 for (
auto& input : pc.inputs()) {
52 tfid = header::get<o2::framework::DataProcessingHeader*>(input.header)->startTime;
57 LOG(
debug) <<
"TF: " << tfid <<
" --> reading binary blob...";
59 auto vect = pc.inputs().get<gsl::span<DPCOM>>(
"COMMONDPs");
60 LOG(info) <<
"vector has " << vect.size() <<
" Data Points inside";
70 LOG(info) <<
"Number of processed TFs = " << mTFs;
75 bool mReportTiming =
false;
87 Inputs{{
"COMMONDPs",
"DCS",
"COMMON", 0, Lifetime::Timeframe}},
void init(o2::framework::InitContext &ic) final
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void run(o2::framework::ProcessingContext &pc) final
DataProcessorSpec getDCSConsumerSpec(DetID det)
Defining PrimaryVertex explicitly as messageable.
std::vector< InputSpec > Inputs
std::vector< OutputSpec > Outputs
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"