#include <RootOutputTree.h>
Public Member Functions | |
template<typename T > | |
void | addAuxiliary (std::string const &branchName, T const *&pAux, int bufSize) |
template<typename T > | |
void | addAuxiliary (std::string const &branchName, T *&pAux, int bufSize) |
void | addBranch (std::string const &branchName, std::string const &className, void const *&pProd, int splitLevel, int basketSize, bool produced) |
bool | checkIfFastClonable (TTree *inputTree) const |
bool | checkSplitLevelsAndBasketSizes (TTree *inputTree) const |
void | close () |
void | fastCloneTTree (TTree *in, std::string const &option) |
void | fillTree () const |
bool | isValid () const |
void | maybeFastCloneTree (bool canFastClone, bool canFastCloneAux, TTree *tree, std::string const &option) |
void | optimizeBaskets (ULong64_t size) |
RootOutputTree (boost::shared_ptr< TFile > filePtr, BranchType const &branchType, int bufSize, int splitLevel, int treeMaxVirtualSize) | |
void | setAutoFlush (Long64_t size) |
void | setEntries () |
TTree *const | tree () const |
bool | uncloned (std::string const &branchName) const |
void | writeTree () const |
~RootOutputTree () | |
Static Public Member Functions | |
static TTree * | assignTTree (TFile *file, TTree *tree) |
static TTree * | makeTTree (TFile *filePtr, std::string const &name, int splitLevel) |
static void | writeTTree (TTree *tree) |
Static Private Member Functions | |
static void | fillTTree (TTree *tree, std::vector< TBranch * > const &branches) |
Private Attributes | |
std::vector< TBranch * > | auxBranches_ |
bool | currentlyFastCloning_ |
bool | fastCloneAuxBranches_ |
boost::shared_ptr< TFile > | filePtr_ |
std::vector< TBranch * > | producedBranches_ |
std::vector< TBranch * > | readBranches_ |
TTree * | tree_ |
std::vector< TBranch * > | unclonedReadBranches_ |
std::set< std::string > | unclonedReadBranchNames_ |
Definition at line 25 of file RootOutputTree.h.
edm::RootOutputTree::RootOutputTree | ( | boost::shared_ptr< TFile > | filePtr, |
BranchType const & | branchType, | ||
int | bufSize, | ||
int | splitLevel, | ||
int | treeMaxVirtualSize | ||
) |
Definition at line 26 of file RootOutputTree.cc.
References tree_.
|
inline |
Definition at line 33 of file RootOutputTree.h.
|
inline |
Definition at line 37 of file RootOutputTree.h.
References auxBranches_, and tree_.
Referenced by edm::RootOutputFile::RootOutputFile().
|
inline |
Definition at line 43 of file RootOutputTree.h.
References auxBranches_, and tree_.
void edm::RootOutputTree::addBranch | ( | std::string const & | branchName, |
std::string const & | className, | ||
void const *& | pProd, | ||
int | splitLevel, | ||
int | basketSize, | ||
bool | produced | ||
) |
Definition at line 254 of file RootOutputTree.cc.
References edm::BranchDescription::invalidBasketSize, edm::BranchDescription::invalidSplitLevel, producedBranches_, readBranches_, filterRecHits_cfg::splitLevel, and tree_.
Referenced by edm::RootOutputFile::RootOutputFile().
|
static |
bool edm::RootOutputTree::checkIfFastClonable | ( | TTree * | inputTree | ) | const |
Definition at line 119 of file RootOutputTree.cc.
References readBranches_.
Referenced by edm::RootOutputFile::beginInputFile().
bool edm::RootOutputTree::checkSplitLevelsAndBasketSizes | ( | TTree * | inputTree | ) | const |
Definition at line 67 of file RootOutputTree.cc.
References readBranches_.
Referenced by edm::RootOutputFile::beginInputFile().
void edm::RootOutputTree::close | ( | void | ) |
Definition at line 275 of file RootOutputTree.cc.
References auxBranches_, filePtr_, producedBranches_, readBranches_, tree_, and unclonedReadBranches_.
Referenced by python.Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), and python.Vispa.Gui.FindDialog.FindDialog::keyPressEvent().
void edm::RootOutputTree::fastCloneTTree | ( | TTree * | in, |
std::string const & | option | ||
) |
Definition at line 141 of file RootOutputTree.cc.
References auxBranches_, edm::hlt::Exception, fastCloneAuxBranches_, edm::errors::FatalRootError, prof2calltree::last, and tree_.
Referenced by maybeFastCloneTree().
void edm::RootOutputTree::fillTree | ( | ) | const |
Definition at line 243 of file RootOutputTree.cc.
References auxBranches_, currentlyFastCloning_, fastCloneAuxBranches_, fillTTree(), producedBranches_, tree_, and unclonedReadBranches_.
|
staticprivate |
Definition at line 215 of file RootOutputTree.cc.
References HcalObjRepresent::Fill(), and edm::for_all().
Referenced by fillTree().
bool edm::RootOutputTree::isValid | ( | ) | const |
|
static |
Definition at line 55 of file RootOutputTree.cc.
References assignTTree(), edm::hlt::Exception, edm::errors::FatalRootError, filterRecHits_cfg::splitLevel, and tree().
Referenced by edm::RootOutputFile::RootOutputFile().
void edm::RootOutputTree::maybeFastCloneTree | ( | bool | canFastClone, |
bool | canFastCloneAux, | ||
TTree * | tree, | ||
std::string const & | option | ||
) |
Definition at line 225 of file RootOutputTree.cc.
References currentlyFastCloning_, fastCloneAuxBranches_, fastCloneTTree(), readBranches_, tree_, unclonedReadBranches_, and unclonedReadBranchNames_.
Referenced by edm::RootOutputFile::beginInputFile().
|
inline |
Definition at line 89 of file RootOutputTree.h.
References tree_.
Referenced by edm::RootOutputFile::writeLuminosityBlock(), and edm::RootOutputFile::writeRun().
|
inline |
Definition at line 93 of file RootOutputTree.h.
References tree_.
Referenced by edm::RootOutputFile::RootOutputFile().
|
inline |
Definition at line 78 of file RootOutputTree.h.
References tree_.
Referenced by edm::RootOutputFile::respondToCloseInputFile().
|
inline |
Definition at line 74 of file RootOutputTree.h.
References tree_.
Referenced by assignTTree(), makeTTree(), and python.cmstools.EventTree::SetAlias().
|
inline |
Definition at line 83 of file RootOutputTree.h.
References unclonedReadBranchNames_.
void edm::RootOutputTree::writeTree | ( | ) | const |
|
static |
Definition at line 206 of file RootOutputTree.cc.
References edm::setRefCoreStreamer().
Referenced by edm::RootOutputFile::finishEndFile(), and writeTree().
|
private |
Definition at line 105 of file RootOutputTree.h.
Referenced by addAuxiliary(), close(), fastCloneTTree(), and fillTree().
|
private |
Definition at line 108 of file RootOutputTree.h.
Referenced by fillTree(), and maybeFastCloneTree().
|
private |
Definition at line 109 of file RootOutputTree.h.
Referenced by fastCloneTTree(), fillTree(), and maybeFastCloneTree().
|
private |
Definition at line 101 of file RootOutputTree.h.
Referenced by close().
|
private |
Definition at line 103 of file RootOutputTree.h.
Referenced by addBranch(), close(), and fillTree().
|
private |
Definition at line 104 of file RootOutputTree.h.
Referenced by addBranch(), checkIfFastClonable(), checkSplitLevelsAndBasketSizes(), close(), and maybeFastCloneTree().
|
private |
Definition at line 102 of file RootOutputTree.h.
Referenced by addAuxiliary(), addBranch(), close(), fastCloneTTree(), fillTree(), maybeFastCloneTree(), optimizeBaskets(), RootOutputTree(), setAutoFlush(), setEntries(), tree(), and writeTree().
|
private |
Definition at line 106 of file RootOutputTree.h.
Referenced by close(), fillTree(), and maybeFastCloneTree().
|
private |
Definition at line 107 of file RootOutputTree.h.
Referenced by maybeFastCloneTree(), and uncloned().