Project
Loading...
Searching...
No Matches
CompressorTask.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
16
17#ifndef O2_TOF_COMPRESSORTASK
18#define O2_TOF_COMPRESSORTASK
19
20#include "Framework/Task.h"
23#include <fstream>
24
25using namespace o2::framework;
26
27namespace o2
28{
29namespace tof
30{
31
32template <typename RDH, bool verbose, bool paranoid>
33class CompressorTask : public Task
34{
35 public:
36 CompressorTask(long payloadLim = -1) : mPayloadLimit(payloadLim) {}
37 ~CompressorTask() override = default;
38 void init(InitContext& ic) final;
39 void run(ProcessingContext& pc) final;
40
41 private:
43 int mOutputBufferSize;
44 long mPayloadLimit = -1;
45};
46
47} // namespace tof
48} // namespace o2
49
50#endif
TOF raw data compressor.
void run(ProcessingContext &pc) final
CompressorTask(long payloadLim=-1)
void init(InitContext &ic) final
~CompressorTask() override=default
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...