-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
Check duplicate issues.
- Checked for duplicates
Description
The following code:
void foo() {
std::unique_ptr<TFile> digitfile(TFile::Open("emcaldigits.root", "READ"));
auto treereader = std::make_unique<TTreeReader>(static_cast<TTree*>(digitfile->Get("o2sim")));
std::cout << treereader->GetEntries() << std::endl;
TTreeReaderValue<std::vector<o2::emcal::Digit>> digitbranch(*treereader, "EMCALDigit");
TTreeReaderValue<std::vector<o2::emcal::TriggerRecord>> triggerbranch(*treereader, "EMCALDigitTRGR");
for (auto &d : *treereader) {
std::cout << "Foo" << std::endl;
}
}
iterates once on an empty tree (0 entries). Is that expected?
Reproducer
See above.
ROOT version
6.30.0x
Installation method
aliBuild
Operating system
Linux on ARM, macOS
Additional context
No response
Reactions are currently unavailable