50 auto cput = mTimer.CpuTime();
55 auto buff = pc.
inputs().
get<gsl::span<o2::ctf::BufferType>>(
"ctf_FV0");
67 LOG(info) <<
"Decoded " <<
channels.size() <<
" FV0 channels in " <<
digits.size() <<
" digits, (" << iosize.
asString() <<
") in " << mTimer.CpuTime() - cput <<
" s";
72 LOGF(info,
"FV0 Entropy Decoding total timing: Cpu: %.3e Real: %.3e s in %d slots",
73 mTimer.CpuTime(), mTimer.RealTime(), mTimer.Counter() - 1);
78 std::vector<OutputSpec> outputs{
79 OutputSpec{{
"digits"},
"FV0",
"DIGITSBC", 0, Lifetime::Timeframe},
80 OutputSpec{{
"channels"},
"FV0",
"DIGITSCH", 0, Lifetime::Timeframe},
81 OutputSpec{{
"ctfrep"},
"FV0",
"CTFDECREP", 0, Lifetime::Timeframe}};
83 std::vector<InputSpec> inputs;
84 inputs.emplace_back(
"ctf_FV0",
"FV0",
"CTFDATA", sspec, Lifetime::Timeframe);
85 inputs.emplace_back(
"ctfdict_FV0",
"FV0",
"CTFDICT", 0, Lifetime::Condition,
ccdbParamSpec(
"FV0/Calib/CTFDictionaryTree"));
86 inputs.emplace_back(
"trigoffset",
"CTP",
"Trig_Offset", 0, Lifetime::Condition,
ccdbParamSpec(
"CTP/Config/TriggerOffsets"));
89 "fv0-entropy-decoder",
93 Options{{
"ctf-dict", VariantType::String,
"ccdb", {
"CTF dictionary: empty or ccdb=CCDB, none=no external dictionary otherwise: local filename"}},
94 {
"ans-version", VariantType::String, {
"version of ans entropy coder implementation to use"}}}};
Convert CTF (EncodedBlocks) to FV0 digit/channels strean.
void updateTimeDependentParams(o2::framework::ProcessingContext &pc, bool askTree=false)
void setDictBinding(const std::string &s)
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, VDIG &digitVec, VCHAN &channelVec)
entropy decode clusters from buffer with CTF
void finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj) final
EntropyDecoderSpec(int verbosity)
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void init(o2::framework::InitContext &ic) final
void run(o2::framework::ProcessingContext &pc) final
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
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"
std::vector< ChannelData > channels
std::vector< Digit > digits