1 #ifndef IOPool_Input_RootTree_h
2 #define IOPool_Input_RootTree_h
17 #include "boost/shared_ptr.hpp"
18 #include "boost/utility.hpp"
32 class FileFormatVersion;
34 class RootDelayedReader;
57 typedef std::map<BranchKey const, BranchInfo>
BranchMap;
67 RootTree(boost::shared_ptr<InputFile> filePtr,
69 unsigned int maxVirtualSize,
70 unsigned int cacheSize,
71 unsigned int learningEntries);
77 std::string
const& oldBranchName);
78 void dropBranch(std::string
const& oldBranchName);
83 bool current() {
return entryNumber_ < entries_ && entryNumber_ >= 0;}
90 boost::shared_ptr<DelayedReader>
makeDelayedReader(
FileFormatVersion const& fileFormatVersion, boost::shared_ptr<RootFile> rootFilePtr = boost::shared_ptr<RootFile>())
const;
100 branch->SetAddress(&pbuf);
103 fillBranchEntry<T>(branch, pbuf);
107 template <
typename T>
109 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_
TBranch *const branchEntryInfoBranch() const
std::vector< std::string > const & branchNames() const
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)
std::map< BranchKey const, BranchInfo > BranchMap
TTree const * metaTree() const
TTree const * tree() const
tuple InputFile
Open Root file and provide MEs ############.
std::auto_ptr< TTreeCache > trainCache(TTree *tree, InputFile &file, unsigned int cacheSize, char const *branchNames)
RootTree(boost::shared_ptr< InputFile > filePtr, BranchType const &branchType, unsigned int maxVirtualSize, unsigned int cacheSize, unsigned int learningEntries)
std::vector< ProductStatus > const & productStatuses() const
std::pair< std::string, MonitorElement * > entry
std::vector< ProductStatus > productStatuses_
EntryNumber const & entryNumber() const
TBranch * provenanceBranch_
boost::shared_ptr< DelayedReader > makeDelayedReader(FileFormatVersion const &fileFormatVersion, boost::shared_ptr< RootFile > rootFilePtr=boost::shared_ptr< RootFile >()) const
void getEntry(TBranch *branch, EntryNumber entry) const
void fillBranchEntry(TBranch *branch, T *&pbuf)
boost::shared_ptr< BranchMap > branches_
void setPresence(BranchDescription const &prod)
void setCacheSize(unsigned int cacheSize)
unsigned int const defaultNonEventCacheSize
std::vector< ProductStatus > * pProductStatuses_
BranchMap const & branches() const
boost::shared_ptr< InputFile > filePtr_
unsigned int const defaultLearningEntries
EntryNumber switchOverEntry_
void setEntryNumber(EntryNumber theEntryNumber)
roottree::EntryNumber EntryNumber