1 #ifndef IOPool_Input_RootTree_h
2 #define IOPool_Input_RootTree_h
50 typedef std::map<BranchKey const, BranchInfo>
BranchMap;
60 RootTree(boost::shared_ptr<InputFile> filePtr,
62 unsigned int maxVirtualSize,
63 unsigned int cacheSize,
64 unsigned int learningEntries);
73 std::string
const& oldBranchName);
74 void dropBranch(std::string
const& oldBranchName);
77 std::string
const& oldBranchName);
81 bool current() {
return entryNumber_ < entries_ && entryNumber_ >= 0;}
98 branch->SetAddress(&pbuf);
101 fillBranchEntry<T>(branch, pbuf);
105 template <
typename T>
107 branch->SetAddress(&pbuf);
Int_t getEntry(TBranch *branch, EntryNumber entryNumber)
boost::shared_ptr< TTreeCache > treeCache_
unsigned int const defaultNonEventLearningEntries
unsigned int learningEntries_
void addBranch(BranchKey const &key, BranchDescription const &prod, std::string const &oldBranchName)
void dropBranch(std::string const &oldBranchName)
ConstBranchDescription branchDescription_
std::vector< std::string > branchNames_
std::vector< std::string > const & branchNames() const
void setPresence(BranchDescription const &prod, std::string const &oldBranchName)
roottree::BranchMap BranchMap
EntryNumber const & entries() const
TBranch * branchEntryInfoBranch_
boost::shared_ptr< TTreeCache > rawTreeCache_
BranchInfo(ConstBranchDescription const &prod)
void fillBranchEntryMeta(TBranch *branch, T *&pbuf)
void trainCache(char const *branchNames)
unsigned int const defaultCacheSize
void setTreeMaxVirtualSize(int treeMaxVirtualSize)
TBranch * branchEntryInfoBranch() const
std::map< BranchKey const, BranchInfo > BranchMap
RootTree & operator=(RootTree const &)=delete
TTree const * metaTree() const
TTree const * tree() const
tuple InputFile
Open Root file and provide MEs ############.
RootTree(boost::shared_ptr< InputFile > filePtr, BranchType const &branchType, unsigned int maxVirtualSize, unsigned int cacheSize, unsigned int learningEntries)
std::pair< std::string, MonitorElement * > entry
BranchType branchType() const
EntryNumber const & entryNumber() const
TBranch * provenanceBranch_
DelayedReader * rootDelayedReader() const
void getEntry(TBranch *branch, EntryNumber entry) const
void fillBranchEntry(TBranch *branch, T *&pbuf)
boost::shared_ptr< BranchMap > branches_
void setCacheSize(unsigned int cacheSize)
unsigned int const defaultNonEventCacheSize
BranchMap const & branches() const
std::unique_ptr< DelayedReader > rootDelayedReader_
boost::shared_ptr< InputFile > filePtr_
std::unique_ptr< TTreeCache > trainCache(TTree *tree, InputFile &file, unsigned int cacheSize, char const *branchNames)
unsigned int const defaultLearningEntries
EntryNumber switchOverEntry_
void setEntryNumber(EntryNumber theEntryNumber)
roottree::EntryNumber EntryNumber