Project
Loading...
Searching...
No Matches
EntropyDecoderSpec.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
13
14#ifndef O2_TPC_ENTROPYDECODER_SPEC
15#define O2_TPC_ENTROPYDECODER_SPEC
16
18#include "Framework/Task.h"
19#include "Headers/DataHeader.h"
21#include <TStopwatch.h>
22
23namespace o2
24{
25namespace tpc
26{
27
29{
30 public:
31 EntropyDecoderSpec(int verbosity) : mCTFCoder(o2::ctf::CTFCoderBase::OpType::Decoder)
32 {
33 mTimer.Stop();
34 mTimer.Reset();
35 mCTFCoder.setVerbosity(verbosity);
36 mCTFCoder.setDictBinding("ctfdict_TPC");
37 }
38 ~EntropyDecoderSpec() override = default;
39 void init(o2::framework::InitContext& ic) final;
42 void finaliseCCDB(o2::framework::ConcreteDataMatcher& matcher, void* obj) final;
43
44 private:
45 o2::tpc::CTFCoder mCTFCoder;
46 TStopwatch mTimer;
47};
48
51
52} // namespace tpc
53} // namespace o2
54
55#endif
#define verbosity
class for entropy encoding/decoding of TPC compressed clusters data
void setDictBinding(const std::string &s)
void finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj) final
~EntropyDecoderSpec() override=default
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
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 ...