19 int64_t saveMemoryObjectThreshold,
20 cet::exempt_ptr<RootInputFile> primaryFile,
21 bool const compactSubRunRanges,
30 tree_ =
static_cast<TTree*
>(
44 if (!(missingOK ||
isValid())) {
47 <<
" could not be initialized correctly from input file.\n";
63 return tree_->GetBranch(branchName.c_str()) !=
nullptr;
71 assert(pd.
present() == (branch !=
nullptr));
79 TBranch* branch =
tree_->GetBranch(branchName.c_str());
83 TObjArray* leaves =
tree_->GetListOfLeaves();
84 int entries = leaves->GetEntries();
85 for (
int i = 0; i <
entries; ++i) {
86 auto leaf =
reinterpret_cast<TLeaf*
>((*leaves)[i]);
87 if (leaf ==
nullptr) {
90 TBranch* br = leaf->GetBranch();
94 if (br->GetMother() == branch) {
99 tree_->GetListOfBranches()->Remove(branch);
100 tree_->GetListOfBranches()->Compress();
104 std::unique_ptr<DelayedReader>
107 cet::exempt_ptr<BranchIDLists const> branchIDLists,
113 fileFormatVersion,
nullptr, branchIDLists, branchType, entrySet, eID);
116 std::unique_ptr<DelayedReader>
120 cet::exempt_ptr<BranchIDLists const> branchIDLists,
125 return std::make_unique<RootDelayedReader>(fileFormatVersion,
141 tree_->SetCacheSize(static_cast<Long64_t>(cacheSize));
147 if (treeMaxVirtualSize >= 0) {
148 tree_->SetMaxVirtualSize(static_cast<Long64_t>(treeMaxVirtualSize));
158 auto err =
tree_->LoadTree(theEntryNumber);
165 std::unique_ptr<BranchMapper>
std::string const & BranchTypeToProductTreeName(BranchType const bt)
std::string const & productProvenanceBranchName(BranchType const bt)
std::string const & BranchTypeToMetaDataTreeName(BranchType const bt)
std::string const & BranchTypeToAuxiliaryBranchName(BranchType const bt)
std::string const & BranchTypeToString(BranchType const bt)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
std::string const & branchName() const