Project
Loading...
Searching...
No Matches
EntropyEncoderSpec.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
14
15#ifndef O2_ITSMFT_ENTROPYENCODER_SPEC
16#define O2_ITSMFT_ENTROPYENCODER_SPEC
17
19#include "Framework/Task.h"
20#include "Headers/DataHeader.h"
21#include <TStopwatch.h>
24
25namespace o2
26{
27namespace itsmft
28{
29
31{
32 public:
34 ~EntropyEncoderSpec() override = default;
36 void init(o2::framework::InitContext& ic) final;
39 void finaliseCCDB(o2::framework::ConcreteDataMatcher& matcher, void* obj) final;
40
41 private:
43 o2::itsmft::CTFCoder mCTFCoder;
44 LookUp mPattIdConverter;
45 int mStrobeLength = 0;
46 bool mSelIR = false;
47 TStopwatch mTimer;
48};
49
52
53} // namespace itsmft
54} // namespace o2
55
56#endif
class for entropy encoding/decoding of ITS/MFT compressed clusters data
Definition of the LookUp class.
void init(o2::framework::InitContext &ic) final
void updateTimeDependentParams(o2::framework::ProcessingContext &pc)
void run(o2::framework::ProcessingContext &pc) final
void finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj) final
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
~EntropyEncoderSpec() override=default
constexpr o2::header::DataOrigin gDataOriginInvalid
Definition DataHeader.h:561
framework::DataProcessorSpec getEntropyEncoderSpec(o2::header::DataOrigin orig, bool selIR=false)
create a processor spec
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...