Project
Loading...
Searching...
No Matches
TOFRawWriterSpec.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
13
14#ifndef O2_TOF_RAWWRITER_H
15#define O2_TOF_RAWWRITER_H
16
17#include "TFile.h"
18
20#include "Framework/Task.h"
21#include <string>
23
24using namespace o2::framework;
25
26namespace o2
27{
28namespace tof
29{
30
31class RawWriter : public Task
32{
33 public:
34 RawWriter() = default;
35 ~RawWriter() override = default;
36 void init(InitContext& ic) final;
37 void run(ProcessingContext& pc) final;
38
39 private:
40 std::string mOutFileName; // read from workflow
41 std::string mOutDirName; // read from workflow
42 std::string mFileFor; // output granularity
43 bool mOldFormat = false; // encode with old format (zeros in word 2 and 3)
44};
45
49
50} // namespace tof
51} // namespace o2
52
53#endif /* O2_TOF_RAWWRITER_H */
Definition of the TOF encoder.
~RawWriter() override=default
void run(ProcessingContext &pc) final
void init(InitContext &ic) final
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
o2::framework::DataProcessorSpec getTOFRawWriterSpec()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...