#include <RootOutputFile.h>
Public Types | |
typedef PoolOutputModule::OutputItem | OutputItem |
typedef PoolOutputModule::OutputItemList | OutputItemList |
typedef std::array < RootOutputTree *, NumBranchTypes > | RootOutputTreePtrArray |
Public Member Functions | |
void | beginInputFile (FileBlock const &fb, int remainingEvents) |
std::string const & | fileName () const |
void | finishEndFile () |
void | respondToCloseInputFile (FileBlock const &fb) |
RootOutputFile (PoolOutputModule *om, std::string const &fileName, std::string const &logicalFileName) | |
bool | shouldWeCloseFile () const |
void | writeBranchIDListRegistry () |
void | writeFileFormatVersion () |
void | writeFileIdentifier () |
void | writeIndexIntoFile () |
void | writeLuminosityBlock (LuminosityBlockPrincipal const &lb, ModuleCallingContext const *) |
void | writeOne (EventPrincipal const &e, ModuleCallingContext const *) |
void | writeParameterSetRegistry () |
void | writeParentageRegistry () |
void | writeProcessHistoryRegistry () |
void | writeProductDependencies () |
void | writeProductDescriptionRegistry () |
void | writeRun (RunPrincipal const &r, ModuleCallingContext const *) |
void | writeThinnedAssociationsHelper () |
~RootOutputFile () | |
Private Member Functions | |
void | fillBranches (BranchType const &branchType, Principal const &principal, StoredProductProvenanceVector *productProvenanceVecPtr, ModuleCallingContext const *) |
void | insertAncestors (ProductProvenance const &iGetParents, EventPrincipal const &principal, bool produced, std::set< StoredProductProvenance > &oToFill, ModuleCallingContext const *) |
bool | insertProductProvenance (const ProductProvenance &, std::set< StoredProductProvenance > &oToInsert) |
void | setBranchAliases (TTree *tree, SelectedProducts const &branches) const |
Definition at line 44 of file RootOutputFile.h.
Definition at line 46 of file RootOutputFile.h.
Definition at line 47 of file RootOutputFile.h.
typedef std::array<RootOutputTree*, NumBranchTypes> edm::RootOutputFile::RootOutputTreePtrArray |
Definition at line 48 of file RootOutputFile.h.
|
explicit |
Definition at line 79 of file RootOutputFile.cc.
References edm::RootOutputTree::addAuxiliary(), edm::RootOutputTree::addBranch(), edm::PoolOutputModule::auxItems(), branchesWithStoredHistory_, edm::poolNames::branchListIndexesBranchName(), edm::BranchDescription::branchName(), revisionDML::branchType(), edm::BranchTypeToAuxiliaryBranchName(), edm::BranchTypeToProductProvenanceBranchName(), edm::PoolOutputModule::catalog(), edm::PoolOutputModule::compressionAlgorithm(), edm::errors::Configuration, edm::createGlobalIdentifier(), cms::Digest::digest(), edm::PoolOutputModule::eventAutoFlushSize(), edm::poolNames::eventSelectionsBranchName(), eventTree_, Exception, fid_, file_, filePtr_, edm::BranchDescription::fullClassName(), i, edm::InEvent, edm::InLumi, edm::InRun, logicalFile_, lumiTree_, edm::RootOutputTree::makeTTree(), metaDataTree_, edm::poolNames::metaDataTreeName(), edm::PoolOutputModule::moduleLabel(), edm::BranchDescription::moduleLabel(), edm::moduleName(), edm::NumBranchTypes, om_, parameterSetsTree_, edm::poolNames::parameterSetsTreeName(), parentageTree_, edm::poolNames::parentageTreeName(), pBranchListIndexes_, pEventAux_, pEventEntryInfoVector_, pEventSelectionIDs_, pLumiAux_, edm::BranchDescription::processName(), edm::BranchDescription::productInstanceName(), pRunAux_, reportToken_, runTree_, edm::PoolOutputModule::selectedOutputItemList(), edm::RootOutputTree::setAutoFlush(), edm::sort_all(), AlCaHLTBitMon_QueryRunRegistry::string, cms::MD5Result::toString(), treePointers_, and edm::BranchDescription::wrappedName().
|
inline |
Definition at line 51 of file RootOutputFile.h.
void edm::RootOutputFile::beginInputFile | ( | FileBlock const & | fb, |
int | remainingEvents | ||
) |
Definition at line 301 of file RootOutputFile.cc.
References assert(), edm::PoolOutputModule::basketOrder(), edm::FileBlock::BranchMismatch, edm::FileBlock::CanFastClone, canFastCloneAux_, edm::RootOutputTree::checkIfFastClonable(), edm::RootOutputTree::checkSplitLevelsAndBasketSizes(), eventTree_, Exception, file_, edm::FileBlock::fileName(), edm::PoolOutputModule::inputFileCount(), edm::match(), edm::RootOutputTree::maybeFastCloneTree(), edm::errors::MismatchedInputFiles, edm::FileBlock::NoRootInputSource, om_, edm::FileBlock::OutputMaxEventsTooSmall, edm::PoolOutputModule::overrideInputFileSplitLevels(), reportToken_, edm::FileBlock::SplitLevelMismatch, edm::FileBlock::tree(), edm::PoolOutputModule::whyNotFastClonable(), edm::FileBlock::whyNotFastClonable(), and whyNotFastClonable_.
|
inline |
|
private |
Definition at line 689 of file RootOutputFile.cc.
References assert(), branchesWithStoredHistory_, revisionDML::branchType(), edm::FileBlock::CanFastClone, compareJSON::const, CommonMethods::cp(), edm::PoolOutputModule::DropDroppedPrior, edm::PoolOutputModule::dropMetaData(), edm::PoolOutputModule::DropNone, edm::PoolOutputModule::DropPrior, read312RV_cfg::fastCloning, edm::Principal::getForOutput(), edm::getWrapperBasePtr(), edm::InEvent, insertAncestors(), insertProductProvenance(), hltrates_dqm_sourceclient-live_cfg::offset, om_, AlCaHLTBitMon_ParallelJobs::p, cmsRelvalreport::principal(), edm::es::produced, edm::OutputHandle::productProvenance(), edm::PoolOutputModule::selectedOutputItemList(), treePointers_, whyNotFastClonable_, edm::OutputHandle::wrapper(), and wrapperBaseTClass_.
Referenced by writeLuminosityBlock(), writeOne(), and writeRun().
void edm::RootOutputFile::finishEndFile | ( | ) |
Definition at line 612 of file RootOutputFile.cc.
References revisionDML::branchType(), filePtr_, i, edm::InEvent, edm::one::OutputModuleBase::keptProducts(), metaDataTree_, edm::NumBranchTypes, om_, parameterSetsTree_, parentageTree_, reportToken_, setBranchAliases(), MainPageGenerator::tree, treePointers_, and edm::RootOutputTree::writeTTree().
|
private |
Definition at line 664 of file RootOutputFile.cc.
References assert(), branchesWithStoredHistory_, edm::ProductProvenance::branchID(), edm::ProductProvenanceRetriever::branchIDToProvenance(), edm::PoolOutputModule::DropAll, edm::PoolOutputModule::DropDroppedPrior, edm::PoolOutputModule::dropMetaData(), edm::PoolOutputModule::DropNone, edm::PoolOutputModule::DropPrior, edm::EventPrincipal::getProvenance(), info(), insertProductProvenance(), om_, edm::ProductProvenance::parentage(), edm::Parentage::parents(), edm::es::produced, and edm::EventPrincipal::productProvenanceRetrieverPtr().
Referenced by fillBranches().
|
private |
Definition at line 748 of file RootOutputFile.cc.
References edm::ProductProvenance::branchID(), edm::StoredProductProvenance::branchID_, Exception, i, edm::BranchID::id(), edm::errors::LogicError, edm::ProductProvenance::parentageID(), edm::StoredProductProvenance::parentageIDIndex_, and parentageIDs_.
Referenced by fillBranches(), and insertAncestors().
void edm::RootOutputFile::respondToCloseInputFile | ( | FileBlock const & | fb | ) |
Definition at line 382 of file RootOutputFile.cc.
References eventTree_, lumiTree_, runTree_, and edm::RootOutputTree::setEntries().
|
private |
Definition at line 645 of file RootOutputFile.cc.
References HLT_25ns14e33_v1_cff::alias, edm::BranchDescription::branchAliases(), edm::BranchDescription::branchName(), full, edm::BranchDescription::moduleLabel(), edm::BranchDescription::productInstanceName(), corrVsCorr::selection, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by finishEndFile().
bool edm::RootOutputFile::shouldWeCloseFile | ( | ) | const |
Definition at line 388 of file RootOutputFile.cc.
References filePtr_, edm::PoolOutputModule::maxFileSize(), om_, and findQualityFiles::size.
void edm::RootOutputFile::writeBranchIDListRegistry | ( | ) |
Definition at line 546 of file RootOutputFile.cc.
References assert(), b, edm::PoolOutputModule::basketSize(), edm::poolNames::branchIDListBranchName(), edm::one::OutputModuleBase::branchIDLists(), metaDataTree_, om_, and AlCaHLTBitMon_ParallelJobs::p.
void edm::RootOutputFile::writeFileFormatVersion | ( | ) |
Definition at line 503 of file RootOutputFile.cc.
References assert(), b, edm::PoolOutputModule::basketSize(), edm::poolNames::fileFormatVersionBranchName(), edm::getFileFormatVersion(), metaDataTree_, and om_.
void edm::RootOutputFile::writeFileIdentifier | ( | ) |
Definition at line 511 of file RootOutputFile.cc.
References assert(), b, edm::PoolOutputModule::basketSize(), fid_, edm::poolNames::fileIdentifierBranchName(), metaDataTree_, and om_.
void edm::RootOutputFile::writeIndexIntoFile | ( | ) |
Definition at line 518 of file RootOutputFile.cc.
References cms::Exception::addContext(), assert(), b, edm::PoolOutputModule::basketSize(), edm::RootOutputTree::checkEntriesInReadBranches(), eventEntryNumber_, eventTree_, indexIntoFile_, edm::poolNames::indexIntoFileBranchName(), metaDataTree_, om_, edm::errors::OtherCMS, and edm::IndexIntoFile::sortVector_Run_Or_Lumi_Entries().
void edm::RootOutputFile::writeLuminosityBlock | ( | LuminosityBlockPrincipal const & | lb, |
ModuleCallingContext const * | mcc | ||
) |
Definition at line 439 of file RootOutputFile.cc.
References edm::IndexIntoFile::addEntry(), edm::LuminosityBlockPrincipal::aux(), fillBranches(), edm::LuminosityBlockPrincipal::id(), indexIntoFile_, edm::InLumi, lumiAux_, lumiEntryNumber_, edm::LuminosityBlockID::luminosityBlock(), edm::LuminosityBlockAuxiliary::luminosityBlock(), lumiTree_, edm::RootOutputTree::optimizeBaskets(), edm::Principal::processHistory(), edm::Principal::processHistoryID(), processHistoryRegistry_, edm::ProcessHistoryRegistry::reducedProcessHistoryID(), edm::ProcessHistoryRegistry::registerProcessHistory(), reportToken_, edm::LuminosityBlockID::run(), edm::LuminosityBlockAuxiliary::run(), and edm::LuminosityBlockAuxiliary::setProcessHistoryID().
void edm::RootOutputFile::writeOne | ( | EventPrincipal const & | e, |
ModuleCallingContext const * | mcc | ||
) |
Definition at line 394 of file RootOutputFile.cc.
References edm::IndexIntoFile::addEntry(), assert(), edm::EventPrincipal::aux(), edm::EventPrincipal::branchListIndexes(), dtTPAnalyzer_cfg::dataType, dataTypeReported_, edm::EventID::event(), edm::EventAuxiliary::event(), eventEntryNumber_, edm::EventPrincipal::eventSelectionIDs(), fillBranches(), edm::EventPrincipal::id(), indexIntoFile_, edm::InEvent, edm::EventAuxiliary::isRealData(), edm::EventAuxiliary::luminosityBlock(), om_, pBranchListIndexes_, pEventAux_, pEventEntryInfoVector_, pEventSelectionIDs_, edm::Principal::processHistory(), edm::EventAuxiliary::processHistoryID(), edm::Principal::processHistoryID(), processHistoryRegistry_, edm::ProcessHistoryRegistry::reducedProcessHistoryID(), edm::ProcessHistoryRegistry::registerProcessHistory(), reportToken_, edm::EventID::run(), edm::EventAuxiliary::run(), edm::one::OutputModuleBase::selectorConfig(), AlCaHLTBitMon_QueryRunRegistry::string, and edm::one::OutputModuleBase::wantAllEvents().
void edm::RootOutputFile::writeParameterSetRegistry | ( | ) |
Definition at line 560 of file RootOutputFile.cc.
References b, edm::PoolOutputModule::basketSize(), edm::poolNames::idToParameterSetBlobsBranchName(), edm::pset::Registry::instance(), om_, and parameterSetsTree_.
void edm::RootOutputFile::writeParentageRegistry | ( | ) |
Definition at line 479 of file RootOutputFile.cc.
References edm::PoolOutputModule::basketSize(), Exception, edm::errors::FatalRootError, edm::ParentageRegistry::getMapped(), edm::ParentageRegistry::instance(), om_, edm::poolNames::parentageBranchName(), parentageIDs_, and parentageTree_.
void edm::RootOutputFile::writeProcessHistoryRegistry | ( | ) |
Definition at line 535 of file RootOutputFile.cc.
References assert(), b, edm::PoolOutputModule::basketSize(), metaDataTree_, om_, AlCaHLTBitMon_ParallelJobs::p, edm::poolNames::processHistoryBranchName(), and processHistoryRegistry_.
void edm::RootOutputFile::writeProductDependencies | ( | ) |
Definition at line 604 of file RootOutputFile.cc.
References assert(), b, edm::PoolOutputModule::basketSize(), edm::one::OutputModuleBase::branchChildren(), metaDataTree_, om_, and edm::poolNames::productDependenciesBranchName().
void edm::RootOutputFile::writeProductDescriptionRegistry | ( | ) |
Definition at line 573 of file RootOutputFile.cc.
References assert(), b, edm::PoolOutputModule::basketSize(), branchesWithStoredHistory_, end, metaDataTree_, om_, parseEventContent::prod, and edm::poolNames::productDescriptionBranchName().
void edm::RootOutputFile::writeRun | ( | RunPrincipal const & | r, |
ModuleCallingContext const * | mcc | ||
) |
Definition at line 459 of file RootOutputFile.cc.
References edm::IndexIntoFile::addEntry(), edm::RunPrincipal::aux(), fillBranches(), indexIntoFile_, edm::InRun, edm::RootOutputTree::optimizeBaskets(), edm::Principal::processHistory(), edm::Principal::processHistoryID(), processHistoryRegistry_, edm::ProcessHistoryRegistry::reducedProcessHistoryID(), edm::ProcessHistoryRegistry::registerProcessHistory(), reportToken_, edm::RunAuxiliary::run(), edm::RunPrincipal::run(), runAux_, runEntryNumber_, runTree_, and edm::RunAuxiliary::setProcessHistoryID().
void edm::RootOutputFile::writeThinnedAssociationsHelper | ( | ) |
Definition at line 553 of file RootOutputFile.cc.
References assert(), b, edm::PoolOutputModule::basketSize(), metaDataTree_, om_, AlCaHLTBitMon_ParallelJobs::p, edm::one::OutputModuleBase::thinnedAssociationsHelper(), and edm::poolNames::thinnedAssociationsHelperBranchName().
|
private |
Definition at line 132 of file RootOutputFile.h.
Referenced by fillBranches(), insertAncestors(), RootOutputFile(), and writeProductDescriptionRegistry().
|
private |
Definition at line 106 of file RootOutputFile.h.
Referenced by beginInputFile().
|
private |
Definition at line 129 of file RootOutputFile.h.
Referenced by writeOne().
|
private |
Definition at line 121 of file RootOutputFile.h.
|
private |
Definition at line 109 of file RootOutputFile.h.
Referenced by writeIndexIntoFile(), and writeOne().
|
private |
Definition at line 125 of file RootOutputFile.h.
Referenced by beginInputFile(), respondToCloseInputFile(), RootOutputFile(), and writeIndexIntoFile().
|
private |
Definition at line 108 of file RootOutputFile.h.
Referenced by RootOutputFile(), and writeFileIdentifier().
|
private |
Definition at line 101 of file RootOutputFile.h.
Referenced by beginInputFile(), fileName(), and RootOutputFile().
|
private |
Definition at line 107 of file RootOutputFile.h.
Referenced by finishEndFile(), RootOutputFile(), and shouldWeCloseFile().
|
private |
Definition at line 112 of file RootOutputFile.h.
Referenced by writeIndexIntoFile(), writeLuminosityBlock(), writeOne(), and writeRun().
|
private |
Definition at line 102 of file RootOutputFile.h.
Referenced by RootOutputFile().
|
private |
Definition at line 116 of file RootOutputFile.h.
Referenced by writeLuminosityBlock().
|
private |
Definition at line 110 of file RootOutputFile.h.
Referenced by writeLuminosityBlock().
|
private |
Definition at line 126 of file RootOutputFile.h.
Referenced by respondToCloseInputFile(), RootOutputFile(), and writeLuminosityBlock().
|
private |
Definition at line 113 of file RootOutputFile.h.
Referenced by finishEndFile(), RootOutputFile(), writeBranchIDListRegistry(), writeFileFormatVersion(), writeFileIdentifier(), writeIndexIntoFile(), writeProcessHistoryRegistry(), writeProductDependencies(), writeProductDescriptionRegistry(), and writeThinnedAssociationsHelper().
|
private |
Definition at line 104 of file RootOutputFile.h.
Referenced by beginInputFile(), fillBranches(), finishEndFile(), insertAncestors(), RootOutputFile(), shouldWeCloseFile(), writeBranchIDListRegistry(), writeFileFormatVersion(), writeFileIdentifier(), writeIndexIntoFile(), writeOne(), writeParameterSetRegistry(), writeParentageRegistry(), writeProcessHistoryRegistry(), writeProductDependencies(), writeProductDescriptionRegistry(), and writeThinnedAssociationsHelper().
|
private |
Definition at line 114 of file RootOutputFile.h.
Referenced by finishEndFile(), RootOutputFile(), and writeParameterSetRegistry().
|
private |
Definition at line 131 of file RootOutputFile.h.
Referenced by insertProductProvenance(), and writeParentageRegistry().
|
private |
Definition at line 115 of file RootOutputFile.h.
Referenced by finishEndFile(), RootOutputFile(), and writeParentageRegistry().
|
private |
Definition at line 123 of file RootOutputFile.h.
Referenced by RootOutputFile(), and writeOne().
|
private |
Definition at line 118 of file RootOutputFile.h.
Referenced by RootOutputFile(), and writeOne().
|
private |
Definition at line 122 of file RootOutputFile.h.
Referenced by RootOutputFile(), and writeOne().
|
private |
Definition at line 124 of file RootOutputFile.h.
Referenced by RootOutputFile(), and writeOne().
|
private |
Definition at line 119 of file RootOutputFile.h.
Referenced by RootOutputFile().
|
private |
Definition at line 130 of file RootOutputFile.h.
Referenced by writeLuminosityBlock(), writeOne(), writeProcessHistoryRegistry(), and writeRun().
|
private |
Definition at line 120 of file RootOutputFile.h.
Referenced by RootOutputFile().
|
private |
Definition at line 103 of file RootOutputFile.h.
Referenced by beginInputFile(), finishEndFile(), RootOutputFile(), writeLuminosityBlock(), writeOne(), and writeRun().
|
private |
Definition at line 117 of file RootOutputFile.h.
Referenced by writeRun().
|
private |
Definition at line 111 of file RootOutputFile.h.
Referenced by writeRun().
|
private |
Definition at line 127 of file RootOutputFile.h.
Referenced by respondToCloseInputFile(), RootOutputFile(), and writeRun().
|
private |
Definition at line 128 of file RootOutputFile.h.
Referenced by fillBranches(), finishEndFile(), and RootOutputFile().
|
private |
Definition at line 105 of file RootOutputFile.h.
Referenced by beginInputFile(), and fillBranches().
|
private |
Definition at line 133 of file RootOutputFile.h.
Referenced by fillBranches().