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
14
15#ifndef O2_EMCAL_ENTROPYDECODER_SPEC
16#define O2_EMCAL_ENTROPYDECODER_SPEC
17
19#include "Framework/Task.h"
21#include <TStopwatch.h>
22
23namespace o2
24{
25namespace emcal
26{
27
29{
30 public:
31 EntropyDecoderSpec(int verbosity, unsigned int sspecOut);
32 ~EntropyDecoderSpec() 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 unsigned int mSSpecOut = 0;
41 TStopwatch mTimer;
42};
43
45framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, unsigned int sspecInp, unsigned int sspecOut = 0);
46
47} // namespace emcal
48} // namespace o2
49
50#endif
#define verbosity
class for entropy encoding/decoding of EMCAL data
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
~EntropyDecoderSpec() override=default
void run(o2::framework::ProcessingContext &pc) final
void finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj) final
void init(o2::framework::InitContext &ic) final
framework::DataProcessorSpec getEntropyDecoderSpec(int verbosity, unsigned int sspecInp, unsigned int sspecOut=0)
create a processor spec
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...