#include <RootOutputTree.h>
Public Member Functions | |
template<typename T > | |
void | addAuxiliary (std::string const &branchName, T const *&pAux, int bufSize, bool allowCloning=true) |
template<typename T > | |
void | addAuxiliary (std::string const &branchName, T *&pAux, int bufSize, bool allowCloning=true) |
void | addBranch (std::string const &branchName, std::string const &className, void const *&pProd, int splitLevel, int basketSize, bool produced) |
bool | checkEntriesInReadBranches (Long64_t expectedNumberOfEntries) const |
bool | checkIfFastClonable (TTree *inputTree) const |
bool | checkSplitLevelsAndBasketSizes (TTree *inputTree) const |
void | close () |
void | fastCloneTTree (TTree *in, std::string const &option) |
void | fillTree () |
bool | isValid () const |
void | maybeFastCloneTree (bool canFastClone, bool canFastCloneAux, TTree *tree, std::string const &option) |
RootOutputTree & | operator= (RootOutputTree const &)=delete |
void | optimizeBaskets (ULong64_t size) |
RootOutputTree (std::shared_ptr< TFile > filePtr, BranchType const &branchType, int splitLevel, int treeMaxVirtualSize) | |
RootOutputTree (RootOutputTree const &)=delete | |
void | setAutoFlush (Long64_t size) |
void | setEntries () |
TTree const * | tree () const |
TTree * | tree () |
bool | uncloned (std::string const &branchName) const |
void | writeTree () |
~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 (std::vector< TBranch * > const &branches) |
Private Attributes | |
std::vector< TBranch * > | auxBranches_ |
std::set< std::string > | clonedReadBranchNames_ |
bool | currentlyFastCloning_ |
bool | fastCloneAuxBranches_ |
edm::propagate_const< std::shared_ptr< TFile > > | filePtr_ |
std::vector< TBranch * > | producedBranches_ |
std::vector< TBranch * > | readBranches_ |
edm::propagate_const< TTree * > | tree_ |
std::vector< TBranch * > | unclonedAuxBranches_ |
std::vector< TBranch * > | unclonedReadBranches_ |
Definition at line 24 of file RootOutputTree.h.
edm::RootOutputTree::RootOutputTree | ( | std::shared_ptr< TFile > | filePtr, |
BranchType const & | branchType, | ||
int | splitLevel, | ||
int | treeMaxVirtualSize | ||
) |
Definition at line 87 of file RootOutputTree.cc.
References tree_.
Referenced by ~RootOutputTree().
|
inline |
|
delete |
|
inline |
Definition at line 38 of file RootOutputTree.h.
References auxBranches_, edm::bufSize, tree_, and unclonedAuxBranches_.
Referenced by edm::RootOutputFile::RootOutputFile().
|
inline |
Definition at line 48 of file RootOutputTree.h.
References addBranch(), assignTTree(), auxBranches_, electrons_cff::branchName, edm::bufSize, checkEntriesInReadBranches(), checkIfFastClonable(), checkSplitLevelsAndBasketSizes(), className(), fastCloneTTree(), FrontierConditions_GlobalTag_cff::file, fillTree(), recoMuon::in, isValid(), makeTTree(), maybeFastCloneTree(), dataset::name, TSGForRoadSearch_cfi::option, edm::es::produced, AlCaHLTBitMon_QueryRunRegistry::string, tree_, unclonedAuxBranches_, writeTree(), and writeTTree().
void edm::RootOutputTree::addBranch | ( | std::string const & | branchName, |
std::string const & | className, | ||
void const *& | pProd, | ||
int | splitLevel, | ||
int | basketSize, | ||
bool | produced | ||
) |
Definition at line 327 of file RootOutputTree.cc.
References MicroEventContent_cff::branch, edm::BranchDescription::invalidBasketSize, edm::BranchDescription::invalidSplitLevel, producedBranches_, readBranches_, MicroEventContent_cff::splitLevel, and tree_.
Referenced by addAuxiliary(), and edm::RootOutputFile::RootOutputFile().
|
static |
Definition at line 106 of file RootOutputTree.cc.
References SiStripPI::max, and tree().
Referenced by addAuxiliary(), and makeTTree().
bool edm::RootOutputTree::checkEntriesInReadBranches | ( | Long64_t | expectedNumberOfEntries | ) | const |
Definition at line 198 of file RootOutputTree.cc.
References readBranches_.
Referenced by addAuxiliary(), and edm::RootOutputFile::writeIndexIntoFile().
bool edm::RootOutputTree::checkIfFastClonable | ( | TTree * | inputTree | ) | const |
Definition at line 176 of file RootOutputTree.cc.
References readBranches_.
Referenced by addAuxiliary(), and edm::RootOutputFile::beginInputFile().
bool edm::RootOutputTree::checkSplitLevelsAndBasketSizes | ( | TTree * | inputTree | ) | const |
Definition at line 127 of file RootOutputTree.cc.
References MuonAssociatorByHits_cfi::obj, and readBranches_.
Referenced by addAuxiliary(), and edm::RootOutputFile::beginInputFile().
void edm::RootOutputTree::close | ( | void | ) |
Definition at line 357 of file RootOutputTree.cc.
References auxBranches_, filePtr_, producedBranches_, readBranches_, tree_, unclonedAuxBranches_, and unclonedReadBranches_.
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), Vispa.Gui.FindDialog.FindDialog::keyPressEvent(), and uncloned().
void edm::RootOutputTree::fastCloneTTree | ( | TTree * | in, |
std::string const & | option | ||
) |
Definition at line 208 of file RootOutputTree.cc.
References auxBranches_, Exception, fastCloneAuxBranches_, edm::errors::FatalRootError, plotBeamSpotDB::last, edm::DuplicateTreeSentry::tree(), tree_, and unclonedAuxBranches_.
Referenced by addAuxiliary(), and maybeFastCloneTree().
void edm::RootOutputTree::fillTree | ( | ) |
Definition at line 315 of file RootOutputTree.cc.
References auxBranches_, currentlyFastCloning_, fastCloneAuxBranches_, fillTTree(), producedBranches_, tree_, unclonedAuxBranches_, and unclonedReadBranches_.
Referenced by addAuxiliary(), and core.AutoFillTreeProducer.AutoFillTreeProducer::process().
|
staticprivate |
Definition at line 285 of file RootOutputTree.cc.
References HcalObjRepresent::Fill(), and edm::for_all().
Referenced by fillTree(), and setAutoFlush().
bool edm::RootOutputTree::isValid | ( | ) | const |
|
static |
Definition at line 115 of file RootOutputTree.cc.
References assignTTree(), Exception, edm::errors::FatalRootError, and MicroEventContent_cff::splitLevel.
Referenced by addAuxiliary(), and edm::RootOutputFile::RootOutputFile().
void edm::RootOutputTree::maybeFastCloneTree | ( | bool | canFastClone, |
bool | canFastCloneAux, | ||
TTree * | tree, | ||
std::string const & | option | ||
) |
Definition at line 295 of file RootOutputTree.cc.
References MicroEventContent_cff::branch, clonedReadBranchNames_, currentlyFastCloning_, fastCloneAuxBranches_, fastCloneTTree(), readBranches_, AlCaHLTBitMon_QueryRunRegistry::string, tree_, and unclonedReadBranches_.
Referenced by addAuxiliary(), and edm::RootOutputFile::beginInputFile().
|
delete |
Referenced by ~RootOutputTree().
|
inline |
Definition at line 104 of file RootOutputTree.h.
References tree_.
Referenced by edm::RootOutputFile::writeLuminosityBlock(), and edm::RootOutputFile::writeRun().
|
inline |
Definition at line 108 of file RootOutputTree.h.
References fillTTree(), and tree_.
Referenced by edm::RootOutputFile::RootOutputFile().
|
inline |
Definition at line 93 of file RootOutputTree.h.
References tree_.
Referenced by edm::RootOutputFile::respondToCloseInputFile().
|
inline |
Definition at line 85 of file RootOutputTree.h.
References edm::propagate_const< T >::get(), and tree_.
Referenced by assignTTree(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::beginLoop(), MetTreeProducer.MetTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::fillTree(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::process(), MetTreeProducer.MetTreeProducer::process(), python.cmstools.EventTree::SetAlias(), and writeTree().
|
inline |
Definition at line 89 of file RootOutputTree.h.
References edm::propagate_const< T >::get(), and tree_.
Referenced by ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::beginLoop(), MetTreeProducer.MetTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::fillTree(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::process(), MetTreeProducer.MetTreeProducer::process(), and python.cmstools.EventTree::SetAlias().
|
inline |
Definition at line 98 of file RootOutputTree.h.
References clonedReadBranchNames_, and close().
void edm::RootOutputTree::writeTree | ( | ) |
Definition at line 290 of file RootOutputTree.cc.
References tree(), and writeTTree().
Referenced by addAuxiliary().
|
static |
Definition at line 274 of file RootOutputTree.cc.
References edm::setRefCoreStreamer().
Referenced by addAuxiliary(), edm::RootOutputFile::finishEndFile(), and writeTree().
|
private |
Definition at line 121 of file RootOutputTree.h.
Referenced by addAuxiliary(), close(), fastCloneTTree(), and fillTree().
|
private |
Definition at line 125 of file RootOutputTree.h.
Referenced by maybeFastCloneTree(), and uncloned().
|
private |
Definition at line 126 of file RootOutputTree.h.
Referenced by fillTree(), and maybeFastCloneTree().
|
private |
Definition at line 127 of file RootOutputTree.h.
Referenced by fastCloneTTree(), fillTree(), and maybeFastCloneTree().
|
private |
Definition at line 116 of file RootOutputTree.h.
Referenced by close().
|
private |
Definition at line 119 of file RootOutputTree.h.
Referenced by addBranch(), close(), and fillTree().
|
private |
Definition at line 120 of file RootOutputTree.h.
Referenced by addBranch(), checkEntriesInReadBranches(), checkIfFastClonable(), checkSplitLevelsAndBasketSizes(), close(), and maybeFastCloneTree().
|
private |
Definition at line 117 of file RootOutputTree.h.
Referenced by addAuxiliary(), addBranch(), close(), fastCloneTTree(), fillTree(), maybeFastCloneTree(), optimizeBaskets(), RootOutputTree(), setAutoFlush(), setEntries(), and tree().
|
private |
Definition at line 122 of file RootOutputTree.h.
Referenced by addAuxiliary(), close(), fastCloneTTree(), and fillTree().
|
private |
Definition at line 123 of file RootOutputTree.h.
Referenced by close(), fillTree(), and maybeFastCloneTree().