1 #ifndef art_Framework_IO_Root_detail_readFileIndex_h 2 #define art_Framework_IO_Root_detail_readFileIndex_h 23 if (
auto branch = metaDataTree->GetBranch(
24 rootNames::metaBranchRootName<FileIndex>())) {
25 branch->SetAddress(&findexPtr);
27 branch->SetAddress(
nullptr);
29 std::unique_ptr<TTree> fileIndexTree{
static_cast<TTree*
>(
36 auto elemPtr = &element;
37 fileIndexTree->SetBranchAddress(
38 rootNames::metaBranchRootName<FileIndex::Element>(), &elemPtr);
39 for (
size_t i{0}, sz = fileIndexTree->GetEntries(); i != sz; ++i) {
43 fileIndexTree->SetBranchAddress(
44 rootNames::metaBranchRootName<FileIndex::Element>(),
nullptr);
void addEntryOnLoad(EventID const &eID, EntryNumber_t entry)
void readFileIndex(TFile *file, TTree *metaDataTree, FileIndex *&findexPtr)
std::string couldNotFindTree(std::string const &treename)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
std::string const & fileIndexTreeName()