Project
Loading...
Searching...
No Matches
ZeroSuppress.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
15
16#ifndef ALICEO2_DATAFORMATSTPC_ZEROSUPPRESS_H
17#define ALICEO2_DATAFORMATSTPC_ZEROSUPPRESS_H
18
19#include <cmath>
20#include <vector>
21#include <array>
22
23#include <iostream>
24
26#include "TPCBase/Mapper.h"
27#include "TPCBase/CRU.h"
28#include "DataFormatsTPC/Defs.h"
31#include <gsl/span>
32
33namespace o2
34{
35namespace tpc
36{
38{
39
40 private:
41 std::vector<std::vector<ZeroSuppressedContainer8kb>> z0Pages = {}; //vector of 8kb pages as zero suppressed output
42 Mapper& mapper;
43
44 public:
46 ZeroSuppress() : mapper(Mapper::instance()){};
48 virtual ~ZeroSuppress() = default;
49 ZeroSuppress(const ZeroSuppress&) = delete;
50
51 void process();
52 void DecodeZSPages(gsl::span<const ZeroSuppressedContainer8kb>* z0in, std::vector<Digit>* outDigits, int firstHBF);
53};
54
55} // namespace tpc
56} // namespace o2
57
58#endif // ALICEO2_DATAFORMATSTPC_ZEROSUPPRESS_H
Definition of the TPC Digit.
Helper class for memory management of TPC Data Formats, external from the actual data type classes to...
Definitions of TPC Zero Suppression Data Headers.
virtual ~ZeroSuppress()=default
destructor
ZeroSuppress(const ZeroSuppress &)=delete
ZeroSuppress()
constructor
void DecodeZSPages(gsl::span< const ZeroSuppressedContainer8kb > *z0in, std::vector< Digit > *outDigits, int firstHBF)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...