44 LOGP(info,
"BCs 0 and 3563 will be corrected only for {} BCs (= {} integer orbits)", mCTFCoder.
getBCShiftOrbits(), norb);
57 auto cput = mTimer.CpuTime();
62 auto buff = pc.
inputs().
get<gsl::span<o2::ctf::BufferType>>(
"ctf_ZDC");
75 LOG(info) <<
"Decoded " << chans.size() <<
" ZDC channels in " << bcdata.size() <<
" triggers and " << peds.size() <<
" pedestals, (" << iosize.
asString() <<
") in " << mTimer.CpuTime() - cput <<
" s";
80 LOGF(info,
"ZDC Entropy Decoding total timing: Cpu: %.3e Real: %.3e s in %d slots",
81 mTimer.CpuTime(), mTimer.RealTime(), mTimer.Counter() - 1);
86 std::vector<OutputSpec> outputs{
87 OutputSpec{{
"trig"},
"ZDC",
"DIGITSBC", 0, Lifetime::Timeframe},
88 OutputSpec{{
"chan"},
"ZDC",
"DIGITSCH", 0, Lifetime::Timeframe},
89 OutputSpec{{
"peds"},
"ZDC",
"DIGITSPD", 0, Lifetime::Timeframe},
90 OutputSpec{{
"ctfrep"},
"ZDC",
"CTFDECREP", 0, Lifetime::Timeframe}};
92 std::vector<InputSpec> inputs;
93 inputs.emplace_back(
"ctf_ZDC",
"ZDC",
"CTFDATA", sspec, Lifetime::Timeframe);
94 inputs.emplace_back(
"ctfdict_ZDC",
"ZDC",
"CTFDICT", 0, Lifetime::Condition,
ccdbParamSpec(
"ZDC/Calib/CTFDictionaryTree"));
95 inputs.emplace_back(
"trigoffset",
"CTP",
"Trig_Offset", 0, Lifetime::Condition,
ccdbParamSpec(
"CTP/Config/TriggerOffsets"));
98 "zdc-entropy-decoder",
102 Options{{
"ctf-dict", VariantType::String,
"ccdb", {
"CTF dictionary: empty or ccdb=CCDB, none=no external dictionary otherwise: local filename"}},
103 {
"ans-version", VariantType::String, {
"version of ans entropy coder implementation to use"}}}};
Header to collect LHC related constants.
Convert CTF (EncodedBlocks) to ZDC BCData/ChannelData/OrbitData stream.
void setSupportBCShifts(bool v=true)
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.
void setBCShiftOrbits(long v)
o2::ctf::CTFIOSize decode(const CTF::base &ec, VTRG &trigVec, VCHAN &chanVec, VPED &pedVec)
entropy decode data from buffer with CTF
auto getBCShiftOrbits() const
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void run(o2::framework::ProcessingContext &pc) final
void init(o2::framework::InitContext &ic) final
EntropyDecoderSpec(int verbosity)
void finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj) final
constexpr int LHCMaxBunches
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
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
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 triggers and cells of the TF
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"