#include <RootOutputFile.h>
Public Types | |
using | OutputItem = PoolOutputModule::OutputItem |
using | OutputItemList = PoolOutputModule::OutputItemList |
Private Member Functions | |
std::shared_ptr< TFile const > | filePtr () const |
std::shared_ptr< TFile > & | filePtr () |
void | fillBranches (BranchType const &branchType, OccurrenceForOutput const &occurrence, unsigned int ttreeIndex, StoredProductProvenanceVector *productProvenanceVecPtr=nullptr, ProductProvenanceRetriever const *provRetriever=nullptr) |
void | insertAncestors (ProductProvenance const &iGetParents, ProductProvenanceRetriever const *iMapper, bool produced, std::set< BranchID > const &producedBranches, std::set< StoredProductProvenance > &oToFill) |
bool | insertProductProvenance (const ProductProvenance &, std::set< StoredProductProvenance > &oToInsert) |
StoredProductProvenanceVector const * | pEventEntryInfoVector () const |
StoredProductProvenanceVector *& | pEventEntryInfoVector () |
void | setBranchAliases (TTree *tree, SelectedProducts const &branches, std::string const &processName) const |
Definition at line 48 of file RootOutputFile.h.
Definition at line 50 of file RootOutputFile.h.
Definition at line 51 of file RootOutputFile.h.
|
explicit |
Definition at line 81 of file RootOutputFile.cc.
References edm::RootOutputTree::addAuxiliary(), edm::RootOutputTree::addBranch(), MicroEventContent_cff::branch, branchesWithStoredHistory_, edm::poolNames::branchListIndexesBranchName(), haddnano::branchNames, edm::BranchTypeToAuxiliaryBranchName(), edm::BranchTypeToProductProvenanceBranchName(), edm::errors::Configuration, edm::createGlobalIdentifier(), submitPVResolutionJobs::desc, cms::Digest::digest(), edm::PoolOutputModule::eventAutoFlushSize(), edm::poolNames::eventSelectionsBranchName(), edm::poolNames::eventToProcessBlockIndexesBranchName(), eventTree_, Exception, edm::FileID::fid(), fid_, file_, filePtr(), filePtr_, edm::BranchDescription::fullClassName(), edm::propagate_const< T >::get(), mps_fire::i, edm::InEvent, edm::InLumi, edm::InProcess, edm::InRun, edm::isValidGlobalIdentifier(), B2GTnPMonitor_cfi::item, logicalFile_, lumiTree_, edm::RootOutputTree::makeTTree(), metaDataTree_, edm::poolNames::metaDataTreeName(), edm::BranchDescription::moduleLabel(), edm::moduleName(), om_, parameterSetsTree_, edm::poolNames::parameterSetsTreeName(), parentageTree_, edm::poolNames::parentageTreeName(), pBranchListIndexes_, pEventAux_, pEventEntryInfoVector(), pEventSelectionIDs_, pEventToProcessBlockIndexes_, pLumiAux_, processBlockTrees_, SimL1EmulatorRepack_CalouGT_cff::processName, edm::BranchDescription::processName(), edm::BranchDescription::productInstanceName(), pRunAux_, reportToken_, runTree_, edm::PoolOutputModule::selectedOutputItemList(), edm::RootOutputTree::setAutoFlush(), edm::sort_all(), AlCaHLTBitMon_QueryRunRegistry::string, cms::MD5Result::toString(), edm::RootOutputTree::tree(), and treePointers_.
|
inline |
Definition at line 57 of file RootOutputFile.h.
void edm::RootOutputFile::beginInputFile | ( | FileBlock const & | fb, |
int | remainingEvents | ||
) |
Definition at line 339 of file RootOutputFile.cc.
References cms::cuda::assert(), edm::FileBlock::BranchMismatch, edm::FileBlock::CanFastClone, canFastCloneAux_, edm::RootOutputTree::checkIfFastClonable(), edm::RootOutputTree::checkSplitLevelsAndBasketSizes(), compactEventAuxiliary_, ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), edm::FileBlock::EventSelectionUsed, edm::FileBlock::EventsOrLumisSelectedByID, eventTree_, Exception, file_, edm::FileBlock::fileName(), filePtr_, timingPdfMaker::infile, edm::FileBlock::InitialEventsSkipped, edm::match(), edm::FileBlock::MaxEventsTooSmall, edm::FileBlock::MaxLumisTooSmall, edm::RootOutputTree::maybeFastCloneTree(), SiStripPI::min, edm::errors::MismatchedInputFiles, edm::FileBlock::NoRootInputSource, om_, edm::FileBlock::OutputMaxEventsTooSmall, edm::FileBlock::ParallelProcesses, reportToken_, edm::CompactEventAuxiliaryVector::reserve(), edm::RootOutputTree::setSubBranchBasketSizes(), edm::CompactEventAuxiliaryVector::size(), edm::FileBlock::SplitLevelMismatch, edm::FileBlock::tree(), edm::FileBlock::whyNotFastClonable(), and whyNotFastClonable_.
|
inline |
|
inlineprivate |
Definition at line 101 of file RootOutputFile.h.
References filePtr_, and edm::get_underlying_safe().
Referenced by RootOutputFile().
|
inlineprivate |
Definition at line 102 of file RootOutputFile.h.
References filePtr_, and edm::get_underlying_safe().
|
private |
Definition at line 847 of file RootOutputFile.cc.
References cms::cuda::assert(), branchesWithStoredHistory_, edm::ProductProvenanceLookup::branchIDToProvenance(), edm::FileBlock::CanFastClone, edm::PoolOutputModule::DropAll, edm::PoolOutputModule::DropNone, edm::PoolOutputModule::DropPrior, test_L1EGCrystalClusterEmulator_cfg::fastCloning, edm::OccurrenceForOutput::getByToken(), edm::getWrapperBasePtr(), edm::InEvent, insertAncestors(), insertProductProvenance(), B2GTnPMonitor_cfi::item, mps_monitormerge::items, eostools::move(), hltrates_dqm_sourceclient-live_cfg::offset, om_, AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, treePointers_, whyNotFastClonable_, and wrapperBaseTClass_.
Referenced by writeLuminosityBlock(), writeOne(), writeProcessBlock(), and writeRun().
void edm::RootOutputFile::finishEndFile | ( | ) |
Definition at line 763 of file RootOutputFile.cc.
References filePtr_, mps_fire::i, edm::InProcess, metaDataTree_, om_, parameterSetsTree_, parentageTree_, SimL1EmulatorRepack_CalouGT_cff::processName, reportToken_, setBranchAliases(), AlCaHLTBitMon_QueryRunRegistry::string, compare::tree, treePointers_, and edm::RootOutputTree::writeTTree().
|
private |
Definition at line 822 of file RootOutputFile.cc.
References cms::cuda::assert(), branchesWithStoredHistory_, edm::ProductProvenanceLookup::branchIDToProvenance(), edm::PoolOutputModule::DropAll, edm::PoolOutputModule::DropDroppedPrior, edm::PoolOutputModule::DropNone, edm::PoolOutputModule::DropPrior, info(), insertProductProvenance(), om_, edm::ProductProvenance::parentage(), and edm::Parentage::parents().
Referenced by fillBranches().
|
private |
Definition at line 924 of file RootOutputFile.cc.
References edm::ProductProvenance::branchID(), edm::StoredProductProvenance::branchID_, Exception, mps_fire::i, edm::BranchID::id(), edm::errors::LogicError, edm::ProductProvenance::parentageID(), edm::StoredProductProvenance::parentageIDIndex_, and parentageIDs_.
Referenced by fillBranches(), and insertAncestors().
|
inlineprivate |
Definition at line 103 of file RootOutputFile.h.
References edm::get_underlying_safe(), and pEventEntryInfoVector_.
Referenced by RootOutputFile().
|
inlineprivate |
Definition at line 106 of file RootOutputFile.h.
References edm::get_underlying_safe(), and pEventEntryInfoVector_.
void edm::RootOutputFile::respondToCloseInputFile | ( | FileBlock const & | fb | ) |
Definition at line 457 of file RootOutputFile.cc.
References eventTree_, lumiTree_, om_, runTree_, and edm::RootOutputTree::setEntries().
|
private |
Definition at line 800 of file RootOutputFile.cc.
References SiStripOfflineCRack_cfg::alias, edm::BranchDescription::branchAliases(), edm::BranchDescription::branchName(), edm::BranchDescription::branchType(), full, edm::InProcess, edm::BranchDescription::moduleLabel(), SimL1EmulatorRepack_CalouGT_cff::processName, edm::BranchDescription::processName(), edm::BranchDescription::productInstanceName(), corrVsCorr::selection, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by finishEndFile().
bool edm::RootOutputFile::shouldWeCloseFile | ( | ) | const |
Definition at line 466 of file RootOutputFile.cc.
void edm::RootOutputFile::writeBranchIDListRegistry | ( | ) |
Definition at line 653 of file RootOutputFile.cc.
References cms::cuda::assert(), b, edm::poolNames::branchIDListBranchName(), metaDataTree_, om_, and AlCaHLTBitMon_ParallelJobs::p.
void edm::RootOutputFile::writeEventAuxiliary | ( | ) |
Definition at line 719 of file RootOutputFile.cc.
References cms::cuda::assert(), printConversionInfo::aux, b, edm::BranchTypeToAuxiliaryBranchName(), compactEventAuxiliary_, ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), eventTree_, edm::CompactEventAuxiliaryVector::extrasSize(), edm::CompactEventAuxiliaryVector::guidsSize(), edm::InEvent, LogDebug, SiStripPI::min, om_, pEventAux_, edm::RootOutputTree::setEntries(), edm::CompactEventAuxiliaryVector::size(), and edm::RootOutputTree::tree().
void edm::RootOutputFile::writeFileFormatVersion | ( | ) |
Definition at line 607 of file RootOutputFile.cc.
References cms::cuda::assert(), b, edm::poolNames::fileFormatVersionBranchName(), edm::getFileFormatVersion(), metaDataTree_, and om_.
void edm::RootOutputFile::writeFileIdentifier | ( | ) |
Definition at line 616 of file RootOutputFile.cc.
References cms::cuda::assert(), b, fid_, edm::poolNames::fileIdentifierBranchName(), metaDataTree_, and om_.
void edm::RootOutputFile::writeIndexIntoFile | ( | ) |
Definition at line 623 of file RootOutputFile.cc.
References cms::Exception::addContext(), cms::cuda::assert(), b, 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 | ( | LuminosityBlockForOutput const & | lb | ) |
Definition at line 527 of file RootOutputFile.cc.
References edm::IndexIntoFile::addEntry(), fillBranches(), edm::LuminosityBlockForOutput::id(), indexIntoFile_, edm::InLumi, lumiAux_, lumiEntryNumber_, edm::LuminosityBlockAuxiliary::luminosityBlock(), edm::LuminosityBlockID::luminosityBlock(), edm::LuminosityBlockForOutput::luminosityBlockAuxiliary(), lumiTree_, nEventsInLumi_, edm::RootOutputTree::optimizeBaskets(), edm::OccurrenceForOutput::processHistory(), edm::OccurrenceForOutput::processHistoryID(), processHistoryRegistry_, edm::ProcessHistoryRegistry::reducedProcessHistoryID(), edm::ProcessHistoryRegistry::registerProcessHistory(), reportToken_, edm::LuminosityBlockAuxiliary::run(), edm::LuminosityBlockID::run(), edm::LuminosityBlockAuxiliary::setProcessHistoryID(), and mitigatedMETSequence_cff::U.
void edm::RootOutputFile::writeOne | ( | EventForOutput const & | e | ) |
Definition at line 472 of file RootOutputFile.cc.
References edm::IndexIntoFile::addEntry(), cms::cuda::assert(), compactEventAuxiliary_, DTskim_cfg::dataType, dataTypeReported_, MillePedeFileConverter_cfg::e, edm::EventAuxiliary::event(), eventEntryNumber_, fillBranches(), indexIntoFile_, edm::InEvent, edm::EventAuxiliary::isRealData(), edm::EventAuxiliary::luminosityBlock(), nEventsInLumi_, om_, pBranchListIndexes_, pEventAux_, pEventEntryInfoVector_, pEventSelectionIDs_, pEventToProcessBlockIndexes_, edm::EventAuxiliary::processHistoryID(), processHistoryRegistry_, edm::CompactEventAuxiliaryVector::push_back(), edm::ProcessHistoryRegistry::reducedProcessHistoryID(), edm::ProcessHistoryRegistry::registerProcessHistory(), reportToken_, edm::EventAuxiliary::run(), and AlCaHLTBitMon_QueryRunRegistry::string.
void edm::RootOutputFile::writeParameterSetRegistry | ( | ) |
Definition at line 668 of file RootOutputFile.cc.
References edm::fillParameterSetBranch(), edm::propagate_const< T >::get(), om_, and parameterSetsTree_.
void edm::RootOutputFile::writeParentageRegistry | ( | ) |
Definition at line 585 of file RootOutputFile.cc.
References submitPVResolutionJobs::desc, Exception, edm::errors::FatalRootError, edm::ParentageRegistry::getMapped(), edm::ParentageRegistry::instance(), om_, edm::poolNames::parentageBranchName(), parentageIDs_, and parentageTree_.
void edm::RootOutputFile::writeProcessBlock | ( | ProcessBlockForOutput const & | pb | ) |
Definition at line 571 of file RootOutputFile.cc.
References HLT_2023v12_cff::distance, fillBranches(), spr::find(), edm::InProcess, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, om_, SimL1EmulatorRepack_CalouGT_cff::processName, edm::ProcessBlockForOutput::processName(), AlCaHLTBitMon_QueryRunRegistry::string, and treePointers_.
void edm::RootOutputFile::writeProcessBlockHelper | ( | ) |
Definition at line 749 of file RootOutputFile.cc.
References cms::cuda::assert(), b, metaDataTree_, om_, and edm::poolNames::processBlockHelperBranchName().
void edm::RootOutputFile::writeProcessHistoryRegistry | ( | ) |
Definition at line 649 of file RootOutputFile.cc.
References edm::fillProcessHistoryBranch(), edm::propagate_const< T >::get(), metaDataTree_, om_, and processHistoryRegistry_.
void edm::RootOutputFile::writeProductDependencies | ( | ) |
Definition at line 703 of file RootOutputFile.cc.
References cms::cuda::assert(), b, metaDataTree_, om_, and edm::poolNames::productDependenciesBranchName().
void edm::RootOutputFile::writeProductDescriptionRegistry | ( | ) |
Definition at line 672 of file RootOutputFile.cc.
References cms::cuda::assert(), b, branchesWithStoredHistory_, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, metaDataTree_, om_, dumpMFGeometry_cfg::prod, and edm::poolNames::productDescriptionBranchName().
void edm::RootOutputFile::writeRun | ( | RunForOutput const & | r | ) |
Definition at line 549 of file RootOutputFile.cc.
References edm::IndexIntoFile::addEntry(), fillBranches(), indexIntoFile_, edm::InRun, edm::RootOutputTree::optimizeBaskets(), processHistoryRegistry_, edm::ProcessHistoryRegistry::reducedProcessHistoryID(), edm::ProcessHistoryRegistry::registerProcessHistory(), reportToken_, edm::RunAuxiliary::run(), runAux_, runEntryNumber_, runTree_, edm::RunAuxiliary::setProcessHistoryID(), storedMergeableRunProductMetadata_, and mitigatedMETSequence_cff::U.
void edm::RootOutputFile::writeStoredMergeableRunProductMetadata | ( | ) |
Definition at line 640 of file RootOutputFile.cc.
References cms::cuda::assert(), b, edm::poolNames::mergeableRunProductMetadataBranchName(), metaDataTree_, om_, edm::StoredMergeableRunProductMetadata::optimizeBeforeWrite(), and storedMergeableRunProductMetadata_.
void edm::RootOutputFile::writeThinnedAssociationsHelper | ( | ) |
Definition at line 660 of file RootOutputFile.cc.
References cms::cuda::assert(), b, metaDataTree_, om_, AlCaHLTBitMon_ParallelJobs::p, and edm::poolNames::thinnedAssociationsHelperBranchName().
|
private |
Definition at line 146 of file RootOutputFile.h.
Referenced by fillBranches(), insertAncestors(), RootOutputFile(), and writeProductDescriptionRegistry().
|
private |
Definition at line 116 of file RootOutputFile.h.
Referenced by beginInputFile().
|
private |
Definition at line 148 of file RootOutputFile.h.
Referenced by beginInputFile(), writeEventAuxiliary(), and writeOne().
|
private |
Definition at line 143 of file RootOutputFile.h.
Referenced by writeOne().
|
private |
Definition at line 133 of file RootOutputFile.h.
|
private |
Definition at line 119 of file RootOutputFile.h.
Referenced by writeIndexIntoFile(), and writeOne().
|
private |
Definition at line 138 of file RootOutputFile.h.
Referenced by beginInputFile(), respondToCloseInputFile(), RootOutputFile(), writeEventAuxiliary(), and writeIndexIntoFile().
|
private |
Definition at line 118 of file RootOutputFile.h.
Referenced by RootOutputFile(), and writeFileIdentifier().
|
private |
Definition at line 111 of file RootOutputFile.h.
Referenced by beginInputFile(), fileName(), and RootOutputFile().
|
private |
Definition at line 117 of file RootOutputFile.h.
Referenced by beginInputFile(), filePtr(), finishEndFile(), RootOutputFile(), and shouldWeCloseFile().
|
private |
Definition at line 122 of file RootOutputFile.h.
Referenced by writeIndexIntoFile(), writeLuminosityBlock(), writeOne(), and writeRun().
|
private |
Definition at line 112 of file RootOutputFile.h.
Referenced by RootOutputFile().
|
private |
Definition at line 128 of file RootOutputFile.h.
Referenced by writeLuminosityBlock().
|
private |
Definition at line 120 of file RootOutputFile.h.
Referenced by writeLuminosityBlock().
|
private |
Definition at line 139 of file RootOutputFile.h.
Referenced by respondToCloseInputFile(), RootOutputFile(), and writeLuminosityBlock().
|
private |
Definition at line 125 of file RootOutputFile.h.
Referenced by finishEndFile(), RootOutputFile(), writeBranchIDListRegistry(), writeFileFormatVersion(), writeFileIdentifier(), writeIndexIntoFile(), writeProcessBlockHelper(), writeProcessHistoryRegistry(), writeProductDependencies(), writeProductDescriptionRegistry(), writeStoredMergeableRunProductMetadata(), and writeThinnedAssociationsHelper().
|
private |
Definition at line 124 of file RootOutputFile.h.
Referenced by writeLuminosityBlock(), and writeOne().
|
private |
Definition at line 114 of file RootOutputFile.h.
Referenced by beginInputFile(), fillBranches(), finishEndFile(), insertAncestors(), respondToCloseInputFile(), RootOutputFile(), shouldWeCloseFile(), writeBranchIDListRegistry(), writeEventAuxiliary(), writeFileFormatVersion(), writeFileIdentifier(), writeIndexIntoFile(), writeOne(), writeParameterSetRegistry(), writeParentageRegistry(), writeProcessBlock(), writeProcessBlockHelper(), writeProcessHistoryRegistry(), writeProductDependencies(), writeProductDescriptionRegistry(), writeStoredMergeableRunProductMetadata(), and writeThinnedAssociationsHelper().
|
private |
Definition at line 126 of file RootOutputFile.h.
Referenced by finishEndFile(), RootOutputFile(), and writeParameterSetRegistry().
|
private |
Definition at line 145 of file RootOutputFile.h.
Referenced by insertProductProvenance(), and writeParentageRegistry().
|
private |
Definition at line 127 of file RootOutputFile.h.
Referenced by finishEndFile(), RootOutputFile(), and writeParentageRegistry().
|
private |
Definition at line 135 of file RootOutputFile.h.
Referenced by RootOutputFile(), and writeOne().
|
private |
Definition at line 130 of file RootOutputFile.h.
Referenced by RootOutputFile(), writeEventAuxiliary(), and writeOne().
|
private |
Definition at line 134 of file RootOutputFile.h.
Referenced by pEventEntryInfoVector(), and writeOne().
|
private |
Definition at line 137 of file RootOutputFile.h.
Referenced by RootOutputFile(), and writeOne().
|
private |
Definition at line 136 of file RootOutputFile.h.
Referenced by RootOutputFile(), and writeOne().
|
private |
Definition at line 131 of file RootOutputFile.h.
Referenced by RootOutputFile().
|
private |
Definition at line 141 of file RootOutputFile.h.
Referenced by RootOutputFile().
|
private |
Definition at line 144 of file RootOutputFile.h.
Referenced by writeLuminosityBlock(), writeOne(), writeProcessHistoryRegistry(), and writeRun().
|
private |
Definition at line 132 of file RootOutputFile.h.
Referenced by RootOutputFile().
|
private |
Definition at line 113 of file RootOutputFile.h.
Referenced by beginInputFile(), finishEndFile(), RootOutputFile(), writeLuminosityBlock(), writeOne(), and writeRun().
|
private |
Definition at line 129 of file RootOutputFile.h.
Referenced by writeRun().
|
private |
Definition at line 121 of file RootOutputFile.h.
Referenced by writeRun().
|
private |
Definition at line 140 of file RootOutputFile.h.
Referenced by respondToCloseInputFile(), RootOutputFile(), and writeRun().
|
private |
Definition at line 123 of file RootOutputFile.h.
Referenced by writeRun(), and writeStoredMergeableRunProductMetadata().
|
private |
Definition at line 142 of file RootOutputFile.h.
Referenced by fillBranches(), finishEndFile(), RootOutputFile(), and writeProcessBlock().
|
private |
Definition at line 115 of file RootOutputFile.h.
Referenced by beginInputFile(), and fillBranches().
|
private |
Definition at line 147 of file RootOutputFile.h.
Referenced by fillBranches().