#include <RootFile.h>
Public Types | |
typedef std::array< RootTree *, NumBranchTypes > | RootTreePtrArray |
Public Member Functions | |
std::shared_ptr < BranchIDListHelper const > | branchIDListHelper () const |
bool | branchListIndexesUnchanged () const |
void | close () |
bool | containsItem (RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event) const |
std::unique_ptr< FileBlock > | createFileBlock () const |
EventAuxiliary const & | eventAux () const |
EventID const & | eventID () const |
RootTree const & | eventTree () const |
std::string const & | file () const |
FileFormatVersion | fileFormatVersion () const |
IndexIntoFile::EntryType | getNextItemType (RunNumber_t &run, LuminosityBlockNumber_t &lumi, EventNumber_t &event) |
bool | goToEvent (EventID const &eventID) |
std::array< bool, NumBranchTypes > const & | hasNewlyDroppedBranch () const |
IndexIntoFile::IndexIntoFileItr | indexIntoFileIter () const |
std::shared_ptr< IndexIntoFile > | indexIntoFileSharedPtr () const |
void | initAssociationsFromSecondary (std::vector< BranchID > const &) |
RootTree const & | lumiTree () const |
bool | modifiedIDs () const |
bool | nextEventEntry () |
RootFile & | operator= (RootFile const &)=delete |
std::shared_ptr < ProductRegistry const > | productRegistry () const |
bool | readCurrentEvent (EventPrincipal &cache) |
void | readEvent (EventPrincipal &cache) |
void | readLuminosityBlock_ (LuminosityBlockPrincipal &lumiPrincipal) |
std::shared_ptr < LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary_ () |
void | readRun_ (RunPrincipal &runPrincipal) |
std::shared_ptr< RunAuxiliary > | readRunAuxiliary_ () |
void | reportOpened (std::string const &inputType) |
void | rewind () |
RootFile (std::string const &fileName, ProcessConfiguration const &processConfiguration, std::string const &logicalFileName, std::shared_ptr< InputFile > filePtr, std::shared_ptr< EventSkipperByID > eventSkipperByID, bool skipAnyEvents, int remainingEvents, int remainingLumis, unsigned int nStreams, unsigned int treeCacheSize, int treeMaxVirtualSize, InputSource::ProcessingMode processingMode, RunNumber_t const &forcedRunNumber, bool noEventSort, ProductSelectorRules const &productSelectorRules, InputType inputType, std::shared_ptr< BranchIDListHelper > branchIDListHelper, std::shared_ptr< ThinnedAssociationsHelper > thinnedAssociationsHelper, std::vector< BranchID > const &associationsFromSecondary, std::shared_ptr< DuplicateChecker > duplicateChecker, bool dropDescendantsOfDroppedProducts, ProcessHistoryRegistry &processHistoryRegistry, std::vector< std::shared_ptr< IndexIntoFile > > const &indexesIntoFiles, std::vector< std::shared_ptr< IndexIntoFile > >::size_type currentIndexIntoFile, std::vector< ProcessHistoryID > &orderedProcessHistoryIDs, bool bypassVersionCheck, bool labelRawDataLikeMC, bool usingGoToEvent, bool enablePrefetching) | |
RootFile (RootFile const &)=delete | |
RootTree const & | runTree () const |
void | setAtEventEntry (IndexIntoFile::EntryNumber_t entry) |
bool | setEntryAtEvent (RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event) |
bool | setEntryAtItem (RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event) |
bool | setEntryAtLumi (RunNumber_t run, LuminosityBlockNumber_t lumi) |
bool | setEntryAtNextEventInLumi (RunNumber_t run, LuminosityBlockNumber_t lumi) |
bool | setEntryAtRun (RunNumber_t run) |
void | setPosition (IndexIntoFile::IndexIntoFileItr const &position) |
void | setToLastEntry () |
bool | skipEntries (unsigned int &offset) |
bool | skipEvents (int &offset) |
bool | wasFirstEventJustRead () const |
bool | wasLastEventJustRead () const |
int | whyNotFastClonable () const |
~RootFile () | |
Private Member Functions | |
void | dropOnInput (ProductRegistry ®, ProductSelectorRules const &rules, bool dropDescendants, InputType inputType) |
bool | fillEventAuxiliary (IndexIntoFile::EntryNumber_t entry) |
void | fillEventHistory () |
void | fillIndexIntoFile () |
std::shared_ptr < LuminosityBlockAuxiliary > | fillLumiAuxiliary () |
std::shared_ptr< RunAuxiliary > | fillRunAuxiliary () |
void | fillThisEventAuxiliary () |
void | initializeDuplicateChecker (std::vector< std::shared_ptr< IndexIntoFile > > const &indexesIntoFiles, std::vector< std::shared_ptr< IndexIntoFile > >::size_type currentIndexIntoFile) |
bool | isDuplicateEvent () |
std::shared_ptr < ProductProvenanceRetriever > | makeProductProvenanceRetriever (unsigned int iStreamIndex) |
std::unique_ptr < MakeProvenanceReader > | makeProvenanceReaderMaker (InputType inputType) |
void | markBranchToBeDropped (bool dropDescendants, BranchID const &branchID, std::set< BranchID > &branchesToDrop) const |
std::string const & | newBranchToOldBranch (std::string const &newBranch) const |
void | overrideRunNumber (RunID &id) |
void | overrideRunNumber (LuminosityBlockID &id) |
void | overrideRunNumber (EventID &id, bool isRealData) |
void | readEntryDescriptionTree (EntryDescriptionMap &entryDescriptionMap, InputType inputType) |
void | readEventHistoryTree () |
void | readParentageTree (InputType inputType) |
void | setIfFastClonable (int remainingEvents, int remainingLumis) |
bool | skipThisEntry () |
RootTreePtrArray & | treePointers () |
void | validateFile (InputType inputType, bool usingGoToEvent) |
Definition at line 58 of file RootFile.h.
typedef std::array<RootTree*, NumBranchTypes> edm::RootFile::RootTreePtrArray |
Definition at line 60 of file RootFile.h.
edm::RootFile::RootFile | ( | std::string const & | fileName, |
ProcessConfiguration const & | processConfiguration, | ||
std::string const & | logicalFileName, | ||
std::shared_ptr< InputFile > | filePtr, | ||
std::shared_ptr< EventSkipperByID > | eventSkipperByID, | ||
bool | skipAnyEvents, | ||
int | remainingEvents, | ||
int | remainingLumis, | ||
unsigned int | nStreams, | ||
unsigned int | treeCacheSize, | ||
int | treeMaxVirtualSize, | ||
InputSource::ProcessingMode | processingMode, | ||
RunNumber_t const & | forcedRunNumber, | ||
bool | noEventSort, | ||
ProductSelectorRules const & | productSelectorRules, | ||
InputType | inputType, | ||
std::shared_ptr< BranchIDListHelper > | branchIDListHelper, | ||
std::shared_ptr< ThinnedAssociationsHelper > | thinnedAssociationsHelper, | ||
std::vector< BranchID > const & | associationsFromSecondary, | ||
std::shared_ptr< DuplicateChecker > | duplicateChecker, | ||
bool | dropDescendantsOfDroppedProducts, | ||
ProcessHistoryRegistry & | processHistoryRegistry, | ||
std::vector< std::shared_ptr< IndexIntoFile > > const & | indexesIntoFiles, | ||
std::vector< std::shared_ptr< IndexIntoFile > >::size_type | currentIndexIntoFile, | ||
std::vector< ProcessHistoryID > & | orderedProcessHistoryIDs, | ||
bool | bypassVersionCheck, | ||
bool | labelRawDataLikeMC, | ||
bool | usingGoToEvent, | ||
bool | enablePrefetching | ||
) |
Definition at line 139 of file RootFile.cc.
References assert(), edm::IndexIntoFile::begin(), branchChildren_, edm::poolNames::branchIDListBranchName(), branchIDListHelper_, branchIDLists_, branchListIndexesUnchanged_, edm::BranchDescription::branchName(), edm::BranchDescription::branchType(), edm::BranchTypeToAuxiliaryBranchName(), edm::BranchDescription::className(), edm::ProductRegistry::copyProduct(), daqProvenanceHelper_, edm::roottree::defaultNonEventCacheSize, edm::IndexIntoFile::doneFileInitialization(), dropOnInput(), edm::IndexIntoFile::end(), edm::errors::EventCorruption, edm::poolNames::eventHistoryBranchName(), eventProcessHistoryIDs_, eventProcessHistoryIter_, eventSkipperByID_, edm::FileBlock::EventsOrLumisSelectedByID, eventTree_, Exception, fid_, file(), fileFormatVersion(), fileFormatVersion_, edm::poolNames::fileFormatVersionBranchName(), edm::poolNames::fileIdentifierBranchName(), filePtr_, edm::errors::FileReadError, fileThinnedAssociationsHelper_, edm::IndexIntoFile::firstAppearanceOrder, forcedRunOffset_, edm::BranchDescription::friendlyClassName(), edm::friendlyname::friendlyName(), edm::roottree::getEntry(), hasNewlyDroppedBranch_, edm::FileFormatVersion::hasThinnedAssociations(), i, edm::poolNames::idToParameterSetBlobsBranchName(), indexIntoFile_, indexIntoFileBegin_, edm::poolNames::indexIntoFileBranchName(), indexIntoFileEnd_, indexIntoFileIter_, edm::InEvent, edm::BranchDescription::init(), initializeDuplicateChecker(), edm::InLumi, edm::InRun, edm::pset::Registry::insertMapped(), edm::pset::Registry::instance(), lumiTree_, makeProvenanceReaderMaker(), edm::poolNames::metaDataTreeName(), edm::poolNames::moduleDescriptionMapBranchName(), newBranchToOldBranch(), newBranchToOldBranch_, edm::IndexIntoFile::numericalOrder, edm::poolNames::parameterSetMapBranchName(), edm::poolNames::parameterSetsTreeName(), edm::Primary, edm::poolNames::processConfigurationBranchName(), edm::poolNames::processHistoryBranchName(), edm::poolNames::processHistoryMapBranchName(), parseEventContent::prod, edm::poolNames::productDependenciesBranchName(), edm::poolNames::productDescriptionBranchName(), edm::ProductRegistry::productList(), edm::ProductRegistry::productListUpdator(), productRegistry(), productRegistry_, provenanceAdaptor_, provenanceReaderMaker_, readEventHistoryTree(), edm::ProcessHistoryRegistry::registerProcessHistory(), fetchall_from_DQM_v2::release, edm::RootTree::resetTraining(), runTree_, edm::SecondaryFile, edm::SecondarySource, edm::ParameterSet::setID(), setIfFastClonable(), edm::setRefCoreStreamer(), edm::source(), AlCaHLTBitMon_QueryRunRegistry::string, edm::poolNames::thinnedAssociationsHelperBranchName(), edm::RootTree::trainCache(), edm::roottree::trainCache(), treePointers_, edm::errors::UnimplementedFeature, edm::BranchDescription::updateFriendlyClassName(), validateFile(), and whyNotFastClonable_.
edm::RootFile::~RootFile | ( | ) |
Definition at line 522 of file RootFile.cc.
|
delete |
|
inline |
Definition at line 106 of file RootFile.h.
References branchIDListHelper_.
|
inline |
Definition at line 118 of file RootFile.h.
References branchListIndexesUnchanged_.
Referenced by createFileBlock().
void edm::RootFile::close | ( | void | ) |
Definition at line 1164 of file RootFile.cc.
References eventHistoryTree_, filePtr_, and treePointers_.
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), and Vispa.Gui.FindDialog.FindDialog::keyPressEvent().
bool edm::RootFile::containsItem | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event | ||
) | const |
Definition at line 758 of file RootFile.cc.
References edm::IndexIntoFile::containsItem(), and indexIntoFile_.
std::unique_ptr< FileBlock > edm::RootFile::createFileBlock | ( | ) | const |
Definition at line 662 of file RootFile.cc.
References branchChildren_, branchListIndexesUnchanged(), eventTree_, file_, fileFormatVersion(), hasNewlyDroppedBranch(), lumiTree_, edm::RootTree::metaTree(), modifiedIDs(), runTree_, edm::RootTree::tree(), and whyNotFastClonable().
|
private |
Definition at line 1707 of file RootFile.cc.
References edm::ProductRegistry::allBranchDescriptions(), edm::BranchDescription::branchID(), edm::BranchDescription::branchName(), edm::BranchDescription::branchType(), CommonMethods::cp(), drop, edProductClass_, file_, fileThinnedAssociationsHelper_, edm::getWrapperBasePtr(), hasNewlyDroppedBranch_, edm::InEvent, edm::ProductSelector::initialize(), getDQMSummary::iter, markBranchToBeDropped(), newBranchToOldBranch(), hltrates_dqm_sourceclient-live_cfg::offset, AlCaHLTBitMon_ParallelJobs::p, edm::BranchDescription::present(), parseEventContent::prod, edm::ProductRegistry::productListUpdator(), edm::SecondaryFile, edm::SecondarySource, edm::ProductSelector::selected(), groupFilesInBlocks::temp, treePointers_, edm::BranchDescription::unwrappedType(), and edm::BranchDescription::wrappedName().
Referenced by RootFile().
|
inline |
Definition at line 107 of file RootFile.h.
References eventAux_.
Referenced by eventID(), fillEventHistory(), fillIndexIntoFile(), fillThisEventAuxiliary(), initializeDuplicateChecker(), readCurrentEvent(), readEvent(), readLuminosityBlockAuxiliary_(), and readRunAuxiliary_().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 115 of file RootFile.h.
References fileFormatVersion_.
Referenced by createFileBlock(), fillEventHistory(), fillIndexIntoFile(), fillLumiAuxiliary(), fillRunAuxiliary(), fillThisEventAuxiliary(), readCurrentEvent(), readEvent(), readEventHistoryTree(), readLuminosityBlockAuxiliary_(), readRunAuxiliary_(), RootFile(), setIfFastClonable(), and validateFile().
|
private |
Definition at line 1195 of file RootFile.cc.
References edm::RootTree::current(), eventTree_, fillThisEventAuxiliary(), and edm::RootTree::setEntryNumber().
Referenced by getNextItemType(), isDuplicateEvent(), readEvent(), readLuminosityBlockAuxiliary_(), readRunAuxiliary_(), setEntryAtNextEventInLumi(), skipEvents(), and skipThisEntry().
|
private |
Definition at line 1205 of file RootFile.cc.
References assert(), branchIDListHelper_, branchListIndexes_, edm::poolNames::branchListIndexesBranchName(), daqProvenanceHelper_, edm::RootTree::entryNumber(), event(), eventAux(), eventAux_, edm::errors::EventCorruption, edm::poolNames::eventHistoryBranchName(), edm::FileFormatVersion::eventHistoryTree(), eventHistoryTree_, eventProcessHistoryIDs_, eventProcessHistoryIter_, eventSelectionIDs_, edm::poolNames::eventSelectionsBranchName(), eventTree_, Exception, fileFormatVersion(), edm::RootTree::fillBranchEntry(), edm::roottree::getEntry(), history_, edm::lower_bound_all(), edm::FileFormatVersion::noMetaDataTrees(), edm::EventAuxiliary::processHistoryID(), provenanceAdaptor_, DTTTrigCorrFirst::run, edm::EventAuxiliary::setProcessHistoryID(), edm::FileFormatVersion::splitProductIDs(), filterCSVwithJSON::target, and edm::RootTree::tree().
Referenced by fillIndexIntoFile(), readCurrentEvent(), and readRunAuxiliary_().
|
private |
Definition at line 877 of file RootFile.cc.
References assert(), edm::RootTree::entries(), python.tagInventory::entries, edm::RootTree::entryNumber(), event(), eventAux(), eventAux_, eventTree_, fileFormatVersion(), fillEventHistory(), fillLumiAuxiliary(), fillRunAuxiliary(), fillThisEventAuxiliary(), edm::find_in_all(), indexIntoFile_, edm::IndexIntoFile::invalidEntry, edm::RootTree::isValid(), lastEventEntryNumberRead_, summaryLumi::lcount, fjr2json::lumi, edm::EventAuxiliary::luminosityBlock(), edmLumisInFiles::lumis, lumiTree_, eostools::move(), edm::RootTree::next(), processHistoryRegistry_, edm::ProcessHistoryRegistry::reducedProcessHistoryID(), DTTTrigCorrFirst::run, edm::EventAuxiliary::run(), gather_cfg::runs, runTree_, edm::second(), edm::RootTree::setEntryNumber(), edm::IndexIntoFile::setProcessHistoryIDs(), edm::IndexIntoFile::setRunOrLumiEntries(), edm::stable_sort_all(), and edm::IndexIntoFile::unsortedEventNumbers().
Referenced by validateFile().
|
private |
Definition at line 1261 of file RootFile.cc.
References edm::conversion(), daqProvenanceHelper_, fileFormatVersion(), edm::RootTree::fillAux(), lumiTree_, edm::FileFormatVersion::newAuxiliary(), provenanceAdaptor_, and edm::FileFormatVersion::runsAndLumis().
Referenced by fillIndexIntoFile(), and readLuminosityBlockAuxiliary_().
|
private |
Definition at line 1285 of file RootFile.cc.
References edm::conversion(), daqProvenanceHelper_, fileFormatVersion(), edm::RootTree::fillAux(), edm::FileFormatVersion::newAuxiliary(), provenanceAdaptor_, and runTree_.
Referenced by fillIndexIntoFile(), and readRunAuxiliary_().
|
private |
Definition at line 1176 of file RootFile.cc.
References edm::conversion(), edm::RootTree::entryNumber(), eventAux(), eventAux_, eventTree_, fileFormatVersion(), edm::RootTree::fillAux(), lastEventEntryNumberRead_, and edm::FileFormatVersion::newAuxiliary().
Referenced by fillEventAuxiliary(), fillIndexIntoFile(), initializeDuplicateChecker(), and readCurrentEvent().
IndexIntoFile::EntryType edm::RootFile::getNextItemType | ( | RunNumber_t & | run, |
LuminosityBlockNumber_t & | lumi, | ||
EventNumber_t & | event | ||
) |
Definition at line 763 of file RootFile.cc.
References edm::IndexIntoFile::IndexIntoFileItr::advanceToNextLumiOrRun(), edm::IndexIntoFile::IndexIntoFileItr::advanceToNextRun(), edm::IndexIntoFile::IndexIntoFileItr::entry(), edm::EventAuxiliary::event(), eventAux_, fillEventAuxiliary(), edm::IndexIntoFile::IndexIntoFileItr::getEntryType(), indexIntoFileIter_, isDuplicateEvent(), edm::IndexIntoFile::kEnd, edm::IndexIntoFile::kEvent, edm::IndexIntoFile::kLumi, edm::IndexIntoFile::kRun, edm::IndexIntoFile::IndexIntoFileItr::lumi(), processingMode_, edm::IndexIntoFile::IndexIntoFileItr::run(), edm::InputSource::Runs, edm::InputSource::RunsAndLumis, and skipThisEntry().
bool edm::RootFile::goToEvent | ( | EventID const & | eventID | ) |
Definition at line 1374 of file RootFile.cc.
References duplicateChecker_, edm::IndexIntoFile::end(), edm::EventID::event(), edm::IndexIntoFile::fillEventNumbers(), edm::IndexIntoFile::findPosition(), edm::IndexIntoFile::firstAppearanceOrder, indexIntoFile_, indexIntoFileIter_, getDQMSummary::iter, edm::EventID::luminosityBlock(), noEventSort_, edm::IndexIntoFile::numericalOrder, and edm::EventID::run().
|
inline |
Definition at line 117 of file RootFile.h.
References hasNewlyDroppedBranch_.
Referenced by createFileBlock().
IndexIntoFile::IndexIntoFileItr edm::RootFile::indexIntoFileIter | ( | ) | const |
Definition at line 688 of file RootFile.cc.
References indexIntoFileIter_.
|
inline |
Definition at line 146 of file RootFile.h.
References indexIntoFileSharedPtr_.
void edm::RootFile::initAssociationsFromSecondary | ( | std::vector< BranchID > const & | associationsFromSecondary | ) |
Definition at line 698 of file RootFile.cc.
References fileThinnedAssociationsHelper_, and thinnedAssociationsHelper_.
|
private |
Definition at line 1682 of file RootFile.cc.
References duplicateChecker_, eventAux(), eventTree_, fillThisEventAuxiliary(), indexIntoFile_, edm::IndexIntoFile::invalidEntry, edm::RootTree::next(), and edm::RootTree::setEntryNumber().
Referenced by RootFile().
|
private |
Definition at line 747 of file RootFile.cc.
References assert(), duplicateChecker_, edm::IndexIntoFile::IndexIntoFileItr::entry(), edm::EventID::event(), eventAux_, file_, fillEventAuxiliary(), edm::IndexIntoFile::IndexIntoFileItr::getEntryType(), edm::EventAuxiliary::id(), indexIntoFileIter_, edm::IndexIntoFile::kEvent, edm::IndexIntoFile::IndexIntoFileItr::lumi(), edm::IndexIntoFile::IndexIntoFileItr::processHistoryIDIndex(), and edm::IndexIntoFile::IndexIntoFileItr::run().
Referenced by getNextItemType().
|
inline |
|
private |
Definition at line 1838 of file RootFile.cc.
References daqProvenanceHelper_, eventProductProvenanceRetrievers_, eventTree_, and provenanceReaderMaker_.
Referenced by readCurrentEvent().
|
private |
Definition at line 1821 of file RootFile.cc.
References fileFormatVersion_, eostools::move(), parentageIDLookup_, edm::FileFormatVersion::perEventProductIDs(), readEntryDescriptionTree(), readParentageTree(), edm::FileFormatVersion::splitProductIDs(), and edm::FileFormatVersion::storedProductProvenanceUsed().
Referenced by RootFile().
|
private |
Definition at line 1698 of file RootFile.cc.
References branchChildren_.
Referenced by dropOnInput().
|
inline |
Definition at line 119 of file RootFile.h.
References daqProvenanceHelper_.
Referenced by createFileBlock().
|
private |
Definition at line 679 of file RootFile.cc.
References newBranchToOldBranch_.
Referenced by dropOnInput(), and RootFile().
|
inline |
|
private |
Definition at line 1638 of file RootFile.cc.
References edm::RunID::firstValidRun(), forcedRunOffset_, and DTTTrigCorrFirst::run.
Referenced by readCurrentEvent(), readLuminosityBlockAuxiliary_(), and readRunAuxiliary_().
|
private |
Definition at line 1646 of file RootFile.cc.
References edm::RunID::firstValidRun(), forcedRunOffset_, and DTTTrigCorrFirst::run.
|
private |
Definition at line 1654 of file RootFile.cc.
References edm::errors::Configuration, event(), Exception, edm::LuminosityBlockID::firstValidLuminosityBlock(), edm::RunID::firstValidRun(), forcedRunOffset_, and DTTTrigCorrFirst::run.
|
inline |
Definition at line 105 of file RootFile.h.
References productRegistry_.
Referenced by RootFile().
bool edm::RootFile::readCurrentEvent | ( | EventPrincipal & | cache | ) |
Definition at line 1431 of file RootFile.cc.
References branchListIndexes_, edm::RootTree::current(), eventAux(), eventAux_, eventSelectionIDs_, eventTree_, fileFormatVersion(), filePtr_, fillEventHistory(), edm::EventPrincipal::fillEventPrincipal(), fillThisEventAuxiliary(), edm::EventAuxiliary::id(), edm::RootTree::insertEntryForIndex(), edm::EventAuxiliary::isRealData(), makeProductProvenanceRetriever(), eostools::move(), edm::EventAuxiliary::oldLuminosityBlock(), overrideRunNumber(), processHistoryRegistry_, edm::EventAuxiliary::resetObsoleteInfo(), edm::RootTree::rootDelayedReader(), edm::EventPrincipal::streamID(), edm::EDProductGetter::transitionIndex(), and edm::StreamID::value().
Referenced by readEvent().
|
private |
Definition at line 526 of file RootFile.cc.
References daqProvenanceHelper_, edm::poolNames::entryDescriptionBranchName(), edm::poolNames::entryDescriptionIDBranchName(), edm::poolNames::entryDescriptionTreeName(), edm::errors::EventCorruption, Exception, filePtr_, edm::errors::FileReadError, edm::roottree::getEntry(), i, edm::Parentage::id(), edm::EventEntryDescription::id(), edm::ParentageRegistry::insertMapped(), edm::ParentageRegistry::instance(), edm::numEntries(), parents, edm::EventEntryDescription::parents(), edm::Parentage::parentsForUpdate(), PhysicsTools::registry, edm::SecondarySource, and edm::Parentage::setParents().
Referenced by makeProvenanceReaderMaker().
void edm::RootFile::readEvent | ( | EventPrincipal & | cache | ) |
Definition at line 1408 of file RootFile.cc.
References assert(), daqProvenanceHelper_, edm::IndexIntoFile::IndexIntoFileItr::entry(), eventAux(), fileFormatVersion(), fillEventAuxiliary(), forcedRunOffset_, edm::IndexIntoFile::IndexIntoFileItr::getEntryType(), indexIntoFile_, indexIntoFileEnd_, indexIntoFileIter_, edm::IndexIntoFile::kEvent, edm::IndexIntoFile::IndexIntoFileItr::lumi(), edm::EventAuxiliary::processHistoryID(), edm::IndexIntoFile::processHistoryID(), edm::IndexIntoFile::IndexIntoFileItr::processHistoryIDIndex(), processHistoryRegistry_, readCurrentEvent(), edm::ProcessHistoryRegistry::reducedProcessHistoryID(), DTTTrigCorrFirst::run, edm::IndexIntoFile::IndexIntoFileItr::run(), and edm::FileFormatVersion::useReducedProcessHistoryID().
|
private |
Definition at line 1669 of file RootFile.cc.
References edm::errors::EventCorruption, eventHistoryTree_, edm::poolNames::eventHistoryTreeName(), Exception, fileFormatVersion(), filePtr_, and history_.
Referenced by RootFile().
void edm::RootFile::readLuminosityBlock_ | ( | LuminosityBlockPrincipal & | lumiPrincipal | ) |
Definition at line 1583 of file RootFile.cc.
References assert(), edm::IndexIntoFile::IndexIntoFileItr::entry(), edm::LuminosityBlockPrincipal::fillLuminosityBlockPrincipal(), edm::IndexIntoFile::IndexIntoFileItr::getEntryType(), indexIntoFileEnd_, indexIntoFileIter_, edm::RootTree::insertEntryForIndex(), edm::RootTree::isValid(), edm::IndexIntoFile::kLumi, lumiTree_, processHistoryRegistry_, edm::LuminosityBlockPrincipal::readImmediate(), edm::RootTree::rootDelayedReader(), edm::RootTree::setEntryNumber(), and edm::EDProductGetter::transitionIndex().
std::shared_ptr< LuminosityBlockAuxiliary > edm::RootFile::readLuminosityBlockAuxiliary_ | ( | ) |
Definition at line 1545 of file RootFile.cc.
References assert(), edm::RootTree::current(), edm::IndexIntoFile::IndexIntoFileItr::entry(), eventAux(), eventTree_, fileFormatVersion(), filePtr_, fillEventAuxiliary(), fillLumiAuxiliary(), edm::IndexIntoFile::IndexIntoFileItr::firstEventEntryThisLumi(), edm::IndexIntoFile::IndexIntoFileItr::getEntryType(), indexIntoFileEnd_, indexIntoFileIter_, edm::IndexIntoFile::invalidEntry, edm::Timestamp::invalidTimestamp(), edm::RootTree::isValid(), edm::IndexIntoFile::kLumi, fjr2json::lumi, edm::IndexIntoFile::IndexIntoFileItr::lumi(), edm::LuminosityBlockID::luminosityBlock(), lumiTree_, overrideRunNumber(), edm::LuminosityBlockID::run(), edm::IndexIntoFile::IndexIntoFileItr::run(), savedRunAuxiliary_, edm::RootTree::setEntryNumber(), cond::rpcobgas::time, and edm::EventAuxiliary::time().
|
private |
Definition at line 572 of file RootFile.cc.
References daqProvenanceHelper_, Exception, filePtr_, edm::errors::FileReadError, edm::roottree::getEntry(), i, edm::Parentage::id(), edm::ParentageRegistry::insertMapped(), edm::ParentageRegistry::instance(), edm::numEntries(), edm::poolNames::parentageBranchName(), parentageIDLookup_, edm::poolNames::parentageTreeName(), parents, edm::Parentage::parentsForUpdate(), PhysicsTools::registry, and edm::SecondarySource.
Referenced by makeProvenanceReaderMaker().
void edm::RootFile::readRun_ | ( | RunPrincipal & | runPrincipal | ) |
Definition at line 1528 of file RootFile.cc.
References assert(), edm::RunPrincipal::fillRunPrincipal(), edm::IndexIntoFile::IndexIntoFileItr::getEntryType(), indexIntoFileEnd_, indexIntoFileIter_, edm::RootTree::insertEntryForIndex(), edm::RootTree::isValid(), edm::IndexIntoFile::kRun, processHistoryRegistry_, edm::RunPrincipal::readImmediate(), edm::RootTree::rootDelayedReader(), runTree_, and edm::EDProductGetter::transitionIndex().
std::shared_ptr< RunAuxiliary > edm::RootFile::readRunAuxiliary_ | ( | ) |
Definition at line 1464 of file RootFile.cc.
References assert(), edm::RootTree::current(), edm::IndexIntoFile::IndexIntoFileItr::entry(), eventAux(), eventTree_, fileFormatVersion(), filePtr_, fillEventAuxiliary(), fillEventHistory(), fillRunAuxiliary(), edm::IndexIntoFile::IndexIntoFileItr::firstEventEntryThisRun(), edm::IndexIntoFile::IndexIntoFileItr::getEntryType(), indexIntoFileEnd_, indexIntoFileIter_, edm::IndexIntoFile::invalidEntry, edm::Timestamp::invalidTimestamp(), edm::RootTree::isValid(), edm::IndexIntoFile::kRun, overrideRunNumber(), edm::FileFormatVersion::processHistorySameWithinRun(), edm::RunID::run(), DTTTrigCorrFirst::run, edm::IndexIntoFile::IndexIntoFileItr::run(), runTree_, savedRunAuxiliary_, edm::RootTree::setEntryNumber(), cond::rpcobgas::time, and edm::EventAuxiliary::time().
void edm::RootFile::reportOpened | ( | std::string const & | inputType | ) |
Definition at line 1150 of file RootFile.cc.
References edm::RootTree::branchNames(), eventTree_, edm::FileID::fid(), fid_, filePtr_, diffTwoXMLs::label, logicalFile_, edm::moduleName(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 131 of file RootFile.h.
References eventTree_, indexIntoFileBegin_, indexIntoFileIter_, lumiTree_, edm::RootTree::rewind(), and runTree_.
|
inline |
void edm::RootFile::setAtEventEntry | ( | IndexIntoFile::EntryNumber_t | entry | ) |
Definition at line 1459 of file RootFile.cc.
References eventTree_, and edm::RootTree::setEntryNumber().
bool edm::RootFile::setEntryAtEvent | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event | ||
) |
Definition at line 1601 of file RootFile.cc.
References edm::IndexIntoFile::IndexIntoFileItr::entry(), eventTree_, edm::IndexIntoFile::findEventPosition(), indexIntoFile_, indexIntoFileEnd_, indexIntoFileIter_, and edm::RootTree::setEntryNumber().
Referenced by setEntryAtItem().
|
inline |
Definition at line 121 of file RootFile.h.
References setEntryAtEvent(), setEntryAtLumi(), and setEntryAtRun().
bool edm::RootFile::setEntryAtLumi | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi | ||
) |
Definition at line 1609 of file RootFile.cc.
References edm::IndexIntoFile::IndexIntoFileItr::entry(), edm::IndexIntoFile::findLumiPosition(), indexIntoFile_, indexIntoFileEnd_, indexIntoFileIter_, lumiTree_, and edm::RootTree::setEntryNumber().
Referenced by setEntryAtItem().
bool edm::RootFile::setEntryAtNextEventInLumi | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi | ||
) |
Definition at line 1625 of file RootFile.cc.
References edm::IndexIntoFile::IndexIntoFileItr::advanceToEvent(), edm::IndexIntoFile::IndexIntoFileItr::entry(), fillEventAuxiliary(), edm::IndexIntoFile::IndexIntoFileItr::getEntryType(), indexIntoFileIter_, edm::IndexIntoFile::kEvent, edm::IndexIntoFile::IndexIntoFileItr::lumi(), and edm::IndexIntoFile::IndexIntoFileItr::run().
bool edm::RootFile::setEntryAtRun | ( | RunNumber_t | run | ) |
Definition at line 1617 of file RootFile.cc.
References edm::IndexIntoFile::IndexIntoFileItr::entry(), edm::IndexIntoFile::findRunPosition(), indexIntoFile_, indexIntoFileEnd_, indexIntoFileIter_, runTree_, and edm::RootTree::setEntryNumber().
Referenced by setEntryAtItem().
|
private |
Definition at line 608 of file RootFile.cc.
References duplicateChecker_, edm::FileBlock::DuplicateEventsRemoved, edm::RootTree::entries(), edm::FileBlock::EventsToBeSorted, eventTree_, fileFormatVersion(), edm::FileBlock::FileTooOld, edm::IndexIntoFile::firstAppearanceOrder, edm::IndexIntoFile::IndexIntoFileItr::getEntryType(), indexIntoFile_, indexIntoFileBegin_, indexIntoFileEnd_, edm::FileBlock::InitialEventsSkipped, edm::IndexIntoFile::iterationWillBeInEntryOrder(), edm::IndexIntoFile::kEvent, lumiTree_, edm::FileBlock::MaxEventsTooSmall, edm::FileBlock::MaxLumisTooSmall, edm::FileBlock::NoEventsInFile, noEventSort_, edm::FileBlock::NotProcessingEvents, edm::IndexIntoFile::numericalOrder, processingMode_, edm::FileBlock::RunOrLumiNotContiguous, edm::InputSource::RunsLumisAndEvents, skipAnyEvents_, and whyNotFastClonable_.
Referenced by RootFile().
void edm::RootFile::setPosition | ( | IndexIntoFile::IndexIntoFileItr const & | position | ) |
Definition at line 693 of file RootFile.cc.
References edm::IndexIntoFile::IndexIntoFileItr::copyPosition(), and indexIntoFileIter_.
|
inline |
Definition at line 137 of file RootFile.h.
References indexIntoFileEnd_, and indexIntoFileIter_.
|
inline |
Definition at line 141 of file RootFile.h.
References eventTree_, and edm::RootTree::skipEntries().
bool edm::RootFile::skipEvents | ( | int & | offset | ) |
Definition at line 1306 of file RootFile.cc.
References duplicateChecker_, edm::EventID::event(), eventAux_, eventSkipperByID_, file_, fillEventAuxiliary(), edm::EventAuxiliary::id(), indexIntoFileEnd_, indexIntoFileIter_, edm::IndexIntoFile::invalidEntry, edm::IndexIntoFile::invalidIndex, edm::IndexIntoFile::invalidLumi, edm::IndexIntoFile::invalidRun, hltrates_dqm_sourceclient-live_cfg::offset, edm::IndexIntoFile::IndexIntoFileItr::skipEventBackward(), and edm::IndexIntoFile::IndexIntoFileItr::skipEventForward().
|
private |
Definition at line 703 of file RootFile.cc.
References edm::IndexIntoFile::IndexIntoFileItr::entry(), edm::EventID::event(), eventAux_, eventSkipperByID_, fillEventAuxiliary(), edm::IndexIntoFile::IndexIntoFileItr::getEntryType(), edm::EventAuxiliary::id(), indexIntoFileEnd_, indexIntoFileIter_, edm::IndexIntoFile::invalidLumi, edm::IndexIntoFile::kEvent, edm::IndexIntoFile::kRun, edm::IndexIntoFile::IndexIntoFileItr::lumi(), edm::IndexIntoFile::IndexIntoFileItr::peekAheadAtLumi(), edm::IndexIntoFile::IndexIntoFileItr::run(), and edm::IndexIntoFile::IndexIntoFileItr::skipLumiInRun().
Referenced by getNextItemType().
|
inlineprivate |
|
private |
Definition at line 1103 of file RootFile.cc.
References assert(), edm::createGlobalIdentifier(), daqProvenanceHelper_, duplicateChecker_, edm::IndexIntoFile::empty(), edm::RootTree::entries(), python.tagInventory::entries, edm::errors::EventCorruption, eventTree_, Exception, fid_, fileFormatVersion(), edm::IndexIntoFile::fillEventNumbersOrEntries(), fillIndexIntoFile(), edm::IndexIntoFile::fixIndexes(), indexIntoFile_, edm::FileID::isValid(), edm::RootTree::isValid(), noEventSort_, orderedProcessHistoryIDs_, edm::Primary, processHistoryRegistry_, edm::IndexIntoFile::reduceProcessHistoryIDs(), runTree(), edm::IndexIntoFile::setEventFinder(), edm::IndexIntoFile::setNumberOfEvents(), edm::IndexIntoFile::setProcessHistoryIDs(), and edm::FileFormatVersion::useReducedProcessHistoryID().
Referenced by RootFile().
bool edm::RootFile::wasFirstEventJustRead | ( | ) | const |
Definition at line 815 of file RootFile.cc.
References indexIntoFileIter_, edm::IndexIntoFile::invalidEntry, fjr2json::lumi, DTTTrigCorrFirst::run, and edm::IndexIntoFile::IndexIntoFileItr::skipEventBackward().
bool edm::RootFile::wasLastEventJustRead | ( | ) | const |
Definition at line 808 of file RootFile.cc.
References edm::IndexIntoFile::IndexIntoFileItr::advanceToEvent(), edm::IndexIntoFile::IndexIntoFileItr::getEntryType(), indexIntoFileIter_, and edm::IndexIntoFile::kEnd.
|
inline |
Definition at line 116 of file RootFile.h.
References whyNotFastClonable_.
Referenced by createFileBlock().
|
private |
Definition at line 223 of file RootFile.h.
Referenced by createFileBlock(), markBranchToBeDropped(), and RootFile().
|
private |
Definition at line 213 of file RootFile.h.
Referenced by branchIDListHelper(), fillEventHistory(), and RootFile().
|
private |
Definition at line 212 of file RootFile.h.
Referenced by RootFile().
|
private |
Definition at line 221 of file RootFile.h.
Referenced by fillEventHistory(), and readCurrentEvent().
|
private |
Definition at line 204 of file RootFile.h.
Referenced by branchListIndexesUnchanged(), and RootFile().
|
private |
Definition at line 229 of file RootFile.h.
Referenced by fillEventHistory(), fillLumiAuxiliary(), fillRunAuxiliary(), makeProductProvenanceRetriever(), modifiedIDs(), readEntryDescriptionTree(), readEvent(), readParentageTree(), RootFile(), and validateFile().
|
private |
Definition at line 224 of file RootFile.h.
Referenced by goToEvent(), initializeDuplicateChecker(), isDuplicateEvent(), setIfFastClonable(), skipEvents(), and validateFile().
|
private |
Definition at line 230 of file RootFile.h.
Referenced by dropOnInput().
|
private |
Definition at line 205 of file RootFile.h.
Referenced by eventAux(), fillEventHistory(), fillIndexIntoFile(), fillThisEventAuxiliary(), getNextItemType(), isDuplicateEvent(), readCurrentEvent(), skipEvents(), and skipThisEntry().
|
private |
Definition at line 219 of file RootFile.h.
Referenced by close(), fillEventHistory(), and readEventHistoryTree().
|
private |
Definition at line 197 of file RootFile.h.
Referenced by fillEventHistory(), and RootFile().
|
private |
Definition at line 198 of file RootFile.h.
Referenced by fillEventHistory(), and RootFile().
|
mutableprivate |
Definition at line 227 of file RootFile.h.
Referenced by makeProductProvenanceRetriever().
|
private |
Definition at line 220 of file RootFile.h.
Referenced by fillEventHistory(), and readCurrentEvent().
|
private |
Definition at line 188 of file RootFile.h.
Referenced by RootFile(), skipEvents(), and skipThisEntry().
|
private |
Definition at line 206 of file RootFile.h.
Referenced by createFileBlock(), eventTree(), fillEventAuxiliary(), fillEventHistory(), fillIndexIntoFile(), fillThisEventAuxiliary(), initializeDuplicateChecker(), makeProductProvenanceRetriever(), nextEventEntry(), readCurrentEvent(), readLuminosityBlockAuxiliary_(), readRunAuxiliary_(), reportOpened(), rewind(), RootFile(), setAtEventEntry(), setEntryAtEvent(), setIfFastClonable(), skipEntries(), and validateFile().
|
private |
Definition at line 190 of file RootFile.h.
Referenced by reportOpened(), RootFile(), and validateFile().
|
private |
Definition at line 183 of file RootFile.h.
Referenced by createFileBlock(), dropOnInput(), file(), isDuplicateEvent(), and skipEvents().
|
private |
Definition at line 189 of file RootFile.h.
Referenced by fileFormatVersion(), makeProvenanceReaderMaker(), and RootFile().
|
private |
Definition at line 187 of file RootFile.h.
Referenced by close(), readCurrentEvent(), readEntryDescriptionTree(), readEventHistoryTree(), readLuminosityBlockAuxiliary_(), readParentageTree(), readRunAuxiliary_(), reportOpened(), and RootFile().
|
private |
Definition at line 214 of file RootFile.h.
Referenced by dropOnInput(), initAssociationsFromSecondary(), and RootFile().
|
private |
Definition at line 217 of file RootFile.h.
Referenced by overrideRunNumber(), readEvent(), and RootFile().
|
private |
Definition at line 203 of file RootFile.h.
Referenced by dropOnInput(), hasNewlyDroppedBranch(), and RootFile().
|
private |
Definition at line 222 of file RootFile.h.
Referenced by fillEventHistory(), and readEventHistoryTree().
|
private |
Definition at line 192 of file RootFile.h.
Referenced by containsItem(), fillIndexIntoFile(), goToEvent(), initializeDuplicateChecker(), readEvent(), RootFile(), setEntryAtEvent(), setEntryAtLumi(), setEntryAtRun(), setIfFastClonable(), and validateFile().
|
private |
Definition at line 194 of file RootFile.h.
Referenced by rewind(), RootFile(), and setIfFastClonable().
|
private |
Definition at line 195 of file RootFile.h.
Referenced by readEvent(), readLuminosityBlock_(), readLuminosityBlockAuxiliary_(), readRun_(), readRunAuxiliary_(), RootFile(), setEntryAtEvent(), setEntryAtLumi(), setEntryAtRun(), setIfFastClonable(), setToLastEntry(), skipEvents(), and skipThisEntry().
|
private |
Definition at line 196 of file RootFile.h.
Referenced by getNextItemType(), goToEvent(), indexIntoFileIter(), isDuplicateEvent(), readEvent(), readLuminosityBlock_(), readLuminosityBlockAuxiliary_(), readRun_(), readRunAuxiliary_(), rewind(), RootFile(), setEntryAtEvent(), setEntryAtLumi(), setEntryAtNextEventInLumi(), setEntryAtRun(), setPosition(), setToLastEntry(), skipEvents(), skipThisEntry(), wasFirstEventJustRead(), and wasLastEventJustRead().
|
private |
Definition at line 191 of file RootFile.h.
Referenced by indexIntoFileSharedPtr().
|
private |
Definition at line 210 of file RootFile.h.
Referenced by fillIndexIntoFile(), and fillThisEventAuxiliary().
|
private |
Definition at line 184 of file RootFile.h.
Referenced by reportOpened().
|
private |
Definition at line 207 of file RootFile.h.
Referenced by createFileBlock(), fillIndexIntoFile(), fillLumiAuxiliary(), lumiTree(), readLuminosityBlock_(), readLuminosityBlockAuxiliary_(), rewind(), RootFile(), setEntryAtLumi(), and setIfFastClonable().
|
private |
Definition at line 218 of file RootFile.h.
Referenced by newBranchToOldBranch(), and RootFile().
|
private |
Definition at line 201 of file RootFile.h.
Referenced by goToEvent(), setIfFastClonable(), and validateFile().
|
private |
Definition at line 193 of file RootFile.h.
Referenced by validateFile().
|
private |
Definition at line 228 of file RootFile.h.
Referenced by makeProvenanceReaderMaker(), and readParentageTree().
|
private |
Definition at line 185 of file RootFile.h.
|
private |
Definition at line 186 of file RootFile.h.
Referenced by fillIndexIntoFile(), readCurrentEvent(), readEvent(), readLuminosityBlock_(), readRun_(), and validateFile().
|
private |
Definition at line 216 of file RootFile.h.
Referenced by getNextItemType(), and setIfFastClonable().
|
private |
Definition at line 211 of file RootFile.h.
Referenced by productRegistry(), and RootFile().
|
private |
Definition at line 225 of file RootFile.h.
Referenced by fillEventHistory(), fillLumiAuxiliary(), fillRunAuxiliary(), and RootFile().
|
private |
Definition at line 226 of file RootFile.h.
Referenced by makeProductProvenanceRetriever(), and RootFile().
|
private |
Definition at line 208 of file RootFile.h.
Referenced by createFileBlock(), fillIndexIntoFile(), fillRunAuxiliary(), readRun_(), readRunAuxiliary_(), rewind(), RootFile(), runTree(), and setEntryAtRun().
|
private |
Definition at line 199 of file RootFile.h.
Referenced by readLuminosityBlockAuxiliary_(), and readRunAuxiliary_().
|
private |
Definition at line 200 of file RootFile.h.
Referenced by setIfFastClonable().
|
private |
Definition at line 215 of file RootFile.h.
Referenced by initAssociationsFromSecondary().
|
private |
Definition at line 209 of file RootFile.h.
Referenced by close(), dropOnInput(), RootFile(), and treePointers().
|
private |
Definition at line 202 of file RootFile.h.
Referenced by RootFile(), setIfFastClonable(), and whyNotFastClonable().