Project
Loading...
Searching...
No Matches
DigitTreeReader.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
12#ifndef O2_MCH_RAW_ENCODER_DIGIT_TREE_READER_H
13#define O2_MCH_RAW_ENCODER_DIGIT_TREE_READER_H
14
17#include <TTreeReader.h>
18#include <vector>
19
20namespace o2::mch::raw
21{
23{
24 public:
25 DigitTreeReader(TTree* tree);
26
27 bool nextDigits(o2::mch::ROFRecord& rof, std::vector<o2::mch::Digit>& digits);
28
29 private:
30 TTreeReader mTreeReader;
31 TTreeReaderValue<std::vector<o2::mch::Digit>> mDigits = {mTreeReader, "MCHDigit"};
32 TTreeReaderValue<std::vector<o2::mch::ROFRecord>> mRofs = {mTreeReader, "MCHROFRecords"};
33 size_t mCurrentRof;
34};
35} // namespace o2::mch::raw
36
37#endif
Definition of the MCH ROFrame record.
bool nextDigits(o2::mch::ROFRecord &rof, std::vector< o2::mch::Digit > &digits)
std::unique_ptr< TTree > tree((TTree *) flIn.Get(std::string(o2::base::NameConf::CTFTREENAME).c_str()))
std::vector< Digit > digits