Project
Loading...
Searching...
No Matches
CMVHelper.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_TPC_CMVHELPER_H_
17#define ALICEO2_TPC_CMVHELPER_H_
18
19#include <string>
20
21#include "TFile.h"
22#include "TTree.h"
23
24namespace o2::tpc
25{
26
27struct CMVPerTF;
28struct CMVPerTFCompressed;
29
31 TFile* file{nullptr};
32 TTree* tree{nullptr};
33 bool isCompressed{false};
35 CMVPerTF* tfRaw{nullptr};
36 CMVPerTF* tfDecoded{nullptr};
37 long firstTFInTree{-1};
38 long lastTFInTree{-1};
39
41 bool open(const std::string& path);
42
44 const CMVPerTF* getEntry(long long iEntry);
45
47 void close();
48};
49
50} // namespace o2::tpc
51
52#endif // ALICEO2_TPC_CMVHELPER_H_
GLsizei const GLchar *const * path
Definition glcorearb.h:3591
Global TPC definitions and constants.
Definition SimTraits.h:168
CMVPerTFCompressed * tfCompressed
Definition CMVHelper.h:34
long firstTFInTree
first global TF index from tree UserInfo ("firstTF"); -1 if absent
Definition CMVHelper.h:37
const CMVPerTF * getEntry(long long iEntry)
Load entry iEntry and return a pointer to the decoded CMVPerTF, or nullptr on error.
Definition CMVHelper.cxx:68
long lastTFInTree
last global TF index from tree UserInfo ("lastTF"); -1 if absent
Definition CMVHelper.h:38
bool open(const std::string &path)
Open path and set up branch addresses. Returns false on any error.
Definition CMVHelper.cxx:26
CMVPerTF * tfDecoded
scratch buffer used when decompressing
Definition CMVHelper.h:36
void close()
Release all resources.
Definition CMVHelper.cxx:81