1 #ifndef art_Framework_IO_Root_RootOutputTree_h 2 #define art_Framework_IO_Root_RootOutputTree_h 10 #include "cetlib/exempt_ptr.h" 27 static TTree*
makeTTree(TFile*, std::string
const& name,
int splitLevel);
28 static void writeTTree(TTree*) noexcept(
false);
34 template <
typename Aux>
41 int64_t
const treeMaxVirtualSize,
42 int64_t
const saveMemoryObjectThreshold)
54 if (treeMaxVirtualSize >= 0) {
55 tree_->SetMaxVirtualSize(treeMaxVirtualSize);
64 &pProductProvenanceVector,
108 if (
tree_->GetNbranches() != 0) {
109 tree_->SetEntries(-1);
bool uncloned(std::string const &branchName) const
bool checkSplitLevelAndBasketSize(cet::exempt_ptr< TTree const >) const
std::string const & BranchTypeToProductTreeName(BranchType const bt)
std::string const & productProvenanceBranchName(BranchType const bt)
std::set< std::string > unclonedReadBranchNames_
std::vector< TBranch * > readBranches_
std::string const & BranchTypeToMetaDataTreeName(BranchType const bt)
cet::exempt_ptr< TFile > filePtr_
RootOutputTree(cet::exempt_ptr< TFile > filePtr, BranchType const branchType, Aux const *&pAux, ProductProvenances *&pProductProvenanceVector, int const bufSize, int const splitLevel, int64_t const treeMaxVirtualSize, int64_t const saveMemoryObjectThreshold)
std::string const & BranchTypeToAuxiliaryBranchName(BranchType const bt)
static void writeTTree(TTree *) noexcept(false)
std::vector< TBranch * > producedBranches_
void setOutputBranchAddress(BranchDescription const &pd, void const *&pProd)
TBranch * productProvenanceBranch_
void addOutputBranch(BranchDescription const &, void const *&pProd)
std::vector< TBranch * > unclonedReadBranches_
RootOutputTree & operator=(RootOutputTree const &)=delete
void resetOutputBranchAddress(BranchDescription const &)
static TTree * makeTTree(TFile *, std::string const &name, int splitLevel)
bool fastCloneTree(cet::exempt_ptr< TTree const >)
std::vector< ProductProvenance > ProductProvenances
int64_t saveMemoryObjectThreshold_
void beginInputFile(bool fastCloning)
std::vector< TBranch * > metaBranches_