14#include <fmt/format.h>
21 if (
value.GetSetupStatus() < 0) {
22 throw std::invalid_argument(fmt::format(
"Error {} setting up tree reader for branch {}",
23 (
int)
value.GetSetupStatus(),
value.GetBranchName()));
30 throw std::invalid_argument(
"cannot work with a null tree pointer");
32 mTreeReader.SetTree(
tree);
33 mTreeReader.Restart();
42 if (mCurrentRof >= mRofs->size()) {
43 if (!mTreeReader.Next()) {
52 rof = (*mRofs)[mCurrentRof];
54 auto& tfDigits = *mDigits;
int getLastIdx() const
get the index of the last associated object
int getFirstIdx() const
get the index of the first associated object
bool nextDigits(o2::mch::ROFRecord &rof, std::vector< o2::mch::Digit > &digits)
DigitTreeReader(TTree *tree)
GLsizei const GLfloat * value
void AssertBranch(ROOT::Internal::TTreeReaderValueBase &value)
Defining DataPointCompositeObject explicitly as copiable.
std::unique_ptr< TTree > tree((TTree *) flIn.Get(std::string(o2::base::NameConf::CTFTREENAME).c_str()))
std::vector< Digit > digits