44 auto cput = mTimer.CpuTime();
49 auto buff = pc.
inputs().
get<gsl::span<o2::ctf::BufferType>>(
"ctf_TPC");
52 auto& triggers = pc.
outputs().
make<std::vector<o2::tpc::TriggerInfoDLBZS>>(
OutputRef{
"trigger"});
60 << compclusters.size() <<
" bytes, (" << iosize.
asString() <<
") in " << mTimer.CpuTime() - cput <<
" s";
65 LOGF(info,
"TPC Entropy Decoding total timing: Cpu: %.3e Real: %.3e s in %d slots",
66 mTimer.CpuTime(), mTimer.RealTime(), mTimer.Counter() - 1);
71 std::vector<InputSpec> inputs;
72 inputs.emplace_back(
"ctf_TPC",
"TPC",
"CTFDATA", sspec, Lifetime::Timeframe);
73 inputs.emplace_back(
"ctfdict_TPC",
"TPC",
"CTFDICT", 0, Lifetime::Condition,
ccdbParamSpec(
"TPC/Calib/CTFDictionaryTree"));
74 inputs.emplace_back(
"trigoffset",
"CTP",
"Trig_Offset", 0, Lifetime::Condition,
ccdbParamSpec(
"CTP/Config/TriggerOffsets"));
77 "tpc-entropy-decoder",
79 Outputs{
OutputSpec{{
"output"},
"TPC",
"COMPCLUSTERSFLAT", 0, Lifetime::Timeframe},
80 OutputSpec{{
"trigger"},
"TPC",
"TRIGGERWORDS", 0, Lifetime::Timeframe},
81 OutputSpec{{
"ctfrep"},
"TPC",
"CTFDECREP", 0, Lifetime::Timeframe}},
83 Options{{
"ctf-dict", VariantType::String,
"ccdb", {
"CTF dictionary: empty or ccdb=CCDB, none=no external dictionary otherwise: local filename"}},
84 {
"ans-version", VariantType::String, {
"version of ans entropy coder implementation to use"}}}};
Container to store compressed TPC cluster data.
Definitions of TPC Zero Suppression Data Headers.
void updateTimeDependentParams(o2::framework::ProcessingContext &pc, bool askTree=false)
void init(o2::framework::InitContext &ic)
bool finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj)
static auto getImage(const void *newHead)
get const image of the container wrapper, with pointers in the image relocated to new head
void snapshot(const Output &spec, T const &object)
decltype(auto) make(const Output &spec, Args... args)
DataAllocator & outputs()
The data allocator is used to allocate memory for the output data.
InputRecord & inputs()
The inputs associated with this processing context.
o2::ctf::CTFIOSize decode(const CTF::base &ec, VEC &buff, TRIGVEC &buffTrig)
decode entropy-encoded bloks to TPC CompressedClusters into the externally provided vector (e....
void finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj) final
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
uint8_t BufferType
This is the type of the vector to be used for the EncodedBlocks buffer allocation.
Defining PrimaryVertex explicitly as messageable.
std::vector< ConfigParamSpec > ccdbParamSpec(std::string const &path, int runDependent, std::vector< CCDBMetadata > metadata={}, int qrate=0)
std::vector< ConfigParamSpec > Options
std::vector< OutputSpec > Outputs
framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, unsigned int sspec)
create a processor spec
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::string asString() const
wrapper for the Entropy-encoded clusters of the TF
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"