43 auto cput = mTimer.CpuTime();
48 auto buff = pc.
inputs().
get<gsl::span<o2::ctf::BufferType>>(
"ctf_TPC");
51 auto& triggers = pc.
outputs().
make<std::vector<o2::tpc::TriggerInfoDLBZS>>(
OutputRef{
"trigger"});
59 << compclusters.size() <<
" bytes, (" << iosize.
asString() <<
") in " << mTimer.CpuTime() - cput <<
" s";
64 LOGF(info,
"TPC Entropy Decoding total timing: Cpu: %.3e Real: %.3e s in %d slots",
65 mTimer.CpuTime(), mTimer.RealTime(), mTimer.Counter() - 1);
70 std::vector<InputSpec> inputs;
71 inputs.emplace_back(
"ctf_TPC",
"TPC",
"CTFDATA", sspec, Lifetime::Timeframe);
73 if (ctfdictOpt.empty() || ctfdictOpt ==
"ccdb") {
74 inputs.emplace_back(
"ctfdict_TPC",
"TPC",
"CTFDICT", 0, Lifetime::Condition,
ccdbParamSpec(
"TPC/Calib/CTFDictionaryTree"));
76 inputs.emplace_back(
"trigoffset",
"CTP",
"Trig_Offset", 0, Lifetime::Condition,
ccdbParamSpec(
"CTP/Config/TriggerOffsets"));
79 "tpc-entropy-decoder",
81 Outputs{
OutputSpec{{
"output"},
"TPC",
"COMPCLUSTERSFLAT", 0, Lifetime::Timeframe},
82 OutputSpec{{
"trigger"},
"TPC",
"TRIGGERWORDS", 0, Lifetime::Timeframe},
83 OutputSpec{{
"ctfrep"},
"TPC",
"CTFDECREP", 0, Lifetime::Timeframe}},
85 Options{{
"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, const std::string &ctfdictOpt="none")
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"