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_EMCAL_ENTROPYENCODER_SPEC
16#define O2_EMCAL_ENTROPYENCODER_SPEC
17
19#include "Framework/Task.h"
20#include <TStopwatch.h>
22
23namespace o2
24{
25namespace emcal
26{
27
29{
30 public:
31 EntropyEncoderSpec(bool selIR);
32 ~EntropyEncoderSpec() override = default;
34 void init(o2::framework::InitContext& ic) final;
36 void finaliseCCDB(o2::framework::ConcreteDataMatcher& matcher, void* obj) final;
37
38 private:
39 o2::emcal::CTFCoder mCTFCoder;
40 bool mSelIR = false;
41 TStopwatch mTimer;
42};
43
46
47} // namespace emcal
48} // namespace o2
49
50#endif
class for entropy encoding/decoding of EMCAL data
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj) final
void init(o2::framework::InitContext &ic) final
void run(o2::framework::ProcessingContext &pc) final
~EntropyEncoderSpec() override=default
framework::DataProcessorSpec getEntropyEncoderSpec(bool selIR=false)
create a processor spec
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...