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
15
#include "
DataFormatsMCH/Digit.h
"
16
#include "
DataFormatsMCH/ROFRecord.h
"
17
#include <TTreeReader.h>
18
#include <vector>
19
20
namespace
o2::mch::raw
21
{
22
class
DigitTreeReader
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
Digit.h
ROFRecord.h
Definition of the MCH ROFrame record.
o2::mch::ROFRecord
Definition
ROFRecord.h:35
o2::mch::raw::DigitTreeReader
Definition
DigitTreeReader.h:23
o2::mch::raw::DigitTreeReader::nextDigits
bool nextDigits(o2::mch::ROFRecord &rof, std::vector< o2::mch::Digit > &digits)
Definition
DigitTreeReader.cxx:40
o2::mch::raw
Definition
pedestal-decoding-workflow.cxx:58
tree
std::unique_ptr< TTree > tree((TTree *) flIn.Get(std::string(o2::base::NameConf::CTFTREENAME).c_str()))
digits
std::vector< Digit > digits
Definition
test_ctf_io_hmpid.cxx:40
Detectors
MUON
MCH
Raw
Encoder
Digit
DigitTreeReader.h
Generated on Tue Feb 25 2025 23:16:23 for Project by
1.9.8