1 #ifndef art_Framework_IO_Root_detail_readFileIndex_h 2 #define art_Framework_IO_Root_detail_readFileIndex_h 25 if (
auto branch = metaDataTree->GetBranch(
26 rootNames::metaBranchRootName<FileIndex>())) {
27 branch->SetAddress(&findexPtr);
29 branch->SetAddress(
nullptr);
31 std::unique_ptr<TTree> fileIndexTree{
static_cast<TTree*
>(
38 auto elemPtr = &element;
39 fileIndexTree->SetBranchAddress(
40 rootNames::metaBranchRootName<FileIndex::Element>(), &elemPtr);
41 for (
size_t i{0}, sz = fileIndexTree->GetEntries();
i != sz; ++
i) {
45 fileIndexTree->SetBranchAddress(
46 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()