#include <RootFile.h>
Public Types | |
typedef std::array< RootTree *, NumBranchTypes > | RootTreePtrArray |
Public Member Functions | |
boost::shared_ptr < BranchIDListHelper const > | branchIDListHelper () const |
BranchIDLists const & | branchIDLists () |
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 |
boost::shared_ptr< IndexIntoFile > | indexIntoFileSharedPtr () const |
RootTree const & | lumiTree () const |
bool | modifiedIDs () const |
bool | nextEventEntry () |
RootFile & | operator= (RootFile const &)=delete |
boost::shared_ptr < ProductRegistry const > | productRegistry () const |
bool | readCurrentEvent (EventPrincipal &cache) |
void | readEvent (EventPrincipal &cache) |
void | readLuminosityBlock_ (LuminosityBlockPrincipal &lumiPrincipal) |
boost::shared_ptr < LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary_ () |
void | readRun_ (RunPrincipal &runPrincipal) |
boost::shared_ptr< RunAuxiliary > | readRunAuxiliary_ () |
void | reportOpened (std::string const &inputType) |
void | rewind () |
RootFile (std::string const &fileName, ProcessConfiguration const &processConfiguration, std::string const &logicalFileName, boost::shared_ptr< InputFile > filePtr, boost::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, boost::shared_ptr< BranchIDListHelper > branchIDListHelper, boost::shared_ptr< DuplicateChecker > duplicateChecker, bool dropDescendantsOfDroppedProducts, ProcessHistoryRegistry &processHistoryRegistry, std::vector< boost::shared_ptr< IndexIntoFile > > const &indexesIntoFiles, std::vector< boost::shared_ptr< IndexIntoFile > >::size_type currentIndexIntoFile, std::vector< ProcessHistoryID > &orderedProcessHistoryIDs, 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 | 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 () |
boost::shared_ptr < LuminosityBlockAuxiliary > | fillLumiAuxiliary () |
boost::shared_ptr< RunAuxiliary > | fillRunAuxiliary () |
void | fillThisEventAuxiliary () |
void | initializeDuplicateChecker (std::vector< boost::shared_ptr< IndexIntoFile > > const &indexesIntoFiles, std::vector< boost::shared_ptr< IndexIntoFile > >::size_type currentIndexIntoFile) |
bool | isDuplicateEvent () |
boost::shared_ptr < ProductProvenanceRetriever > | makeProductProvenanceRetriever (unsigned int iStreamIndex) |
std::unique_ptr < MakeProvenanceReader > | makeProvenanceReaderMaker (InputType inputType) |
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 55 of file RootFile.h.
typedef std::array<RootTree*, NumBranchTypes> edm::RootFile::RootTreePtrArray |
Definition at line 57 of file RootFile.h.
edm::RootFile::RootFile | ( | std::string const & | fileName, |
ProcessConfiguration const & | processConfiguration, | ||
std::string const & | logicalFileName, | ||
boost::shared_ptr< InputFile > | filePtr, | ||
boost::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, | ||
boost::shared_ptr< BranchIDListHelper > | branchIDListHelper, | ||
boost::shared_ptr< DuplicateChecker > | duplicateChecker, | ||
bool | dropDescendantsOfDroppedProducts, | ||
ProcessHistoryRegistry & | processHistoryRegistry, | ||
std::vector< boost::shared_ptr< IndexIntoFile > > const & | indexesIntoFiles, | ||
std::vector< boost::shared_ptr< IndexIntoFile > >::size_type | currentIndexIntoFile, | ||
std::vector< ProcessHistoryID > & | orderedProcessHistoryIDs, | ||
bool | labelRawDataLikeMC, | ||
bool | usingGoToEvent, | ||
bool | enablePrefetching | ||
) |
Definition at line 138 of file RootFile.cc.
References 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_, edm::hlt::Exception, fid_, file(), fileFormatVersion(), fileFormatVersion_, edm::poolNames::fileFormatVersionBranchName(), edm::poolNames::fileIdentifierBranchName(), filePtr_, edm::errors::FileReadError, edm::IndexIntoFile::firstAppearanceOrder, forcedRunOffset_, edm::BranchDescription::friendlyClassName(), edm::friendlyname::friendlyName(), edm::roottree::getEntry(), hasNewlyDroppedBranch_, 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::SecondarySource, edm::ParameterSet::setID(), setIfFastClonable(), edm::setRefCoreStreamer(), edm::source(), AlCaHLTBitMon_QueryRunRegistry::string, edm::RootTree::trainCache(), edm::roottree::trainCache(), treePointers_, edm::errors::UnimplementedFeature, edm::BranchDescription::updateFriendlyClassName(), validateFile(), and whyNotFastClonable_.
edm::RootFile::~RootFile | ( | ) |
Definition at line 493 of file RootFile.cc.
|
delete |
|
inline |
Definition at line 100 of file RootFile.h.
References branchIDListHelper_.
|
inline |
Definition at line 101 of file RootFile.h.
References branchIDLists_.
|
inline |
Definition at line 113 of file RootFile.h.
References branchListIndexesUnchanged_.
Referenced by createFileBlock().
void edm::RootFile::close | ( | void | ) |
Definition at line 1130 of file RootFile.cc.
References eventHistoryTree_, filePtr_, and treePointers_.
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), 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 724 of file RootFile.cc.
References edm::IndexIntoFile::containsItem(), and indexIntoFile_.
std::unique_ptr< FileBlock > edm::RootFile::createFileBlock | ( | ) | const |
Definition at line 633 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 1664 of file RootFile.cc.
References edm::ProductRegistry::allBranchDescriptions(), branchChildren_, edm::BranchDescription::branchID(), edm::BranchDescription::branchName(), edm::BranchDescription::branchType(), CommonMethods::cp(), drop, file_, edm::BranchDescription::getInterface(), hasNewlyDroppedBranch_, edm::InEvent, edm::ProductSelector::initialize(), newBranchToOldBranch(), parseEventContent::prod, edm::ProductRegistry::productListUpdator(), edm::SecondaryFile, edm::ProductSelector::selected(), treePointers_, and edm::BranchDescription::wrappedName().
Referenced by RootFile().
|
inline |
Definition at line 102 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 110 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 1161 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 1171 of file RootFile.cc.
References 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_, edm::hlt::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 843 of file RootFile.cc.
References 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_, 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 1227 of file RootFile.cc.
References edm::conversion(), daqProvenanceHelper_, fileFormatVersion(), edm::RootTree::fillAux(), lumiTree_, provenanceAdaptor_, and edm::FileFormatVersion::runsAndLumis().
Referenced by fillIndexIntoFile(), and readLuminosityBlockAuxiliary_().
|
private |
Definition at line 1251 of file RootFile.cc.
References edm::conversion(), daqProvenanceHelper_, fileFormatVersion(), edm::RootTree::fillAux(), provenanceAdaptor_, and runTree_.
Referenced by fillIndexIntoFile(), and readRunAuxiliary_().
|
private |
Definition at line 1142 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 729 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 1340 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 112 of file RootFile.h.
References hasNewlyDroppedBranch_.
Referenced by createFileBlock().
IndexIntoFile::IndexIntoFileItr edm::RootFile::indexIntoFileIter | ( | ) | const |
Definition at line 659 of file RootFile.cc.
References indexIntoFileIter_.
|
inline |
Definition at line 140 of file RootFile.h.
References indexIntoFileSharedPtr_.
|
private |
Definition at line 1648 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 713 of file RootFile.cc.
References 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 1745 of file RootFile.cc.
References daqProvenanceHelper_, eventProductProvenanceRetrievers_, eventTree_, and provenanceReaderMaker_.
Referenced by readCurrentEvent().
|
private |
Definition at line 1728 of file RootFile.cc.
References fileFormatVersion_, parentageIDLookup_, edm::FileFormatVersion::perEventProductIDs(), readEntryDescriptionTree(), readParentageTree(), edm::FileFormatVersion::splitProductIDs(), and edm::FileFormatVersion::storedProductProvenanceUsed().
Referenced by RootFile().
|
inline |
Definition at line 114 of file RootFile.h.
References daqProvenanceHelper_.
Referenced by createFileBlock().
|
private |
Definition at line 650 of file RootFile.cc.
References newBranchToOldBranch_.
Referenced by dropOnInput(), and RootFile().
|
inline |
|
private |
Definition at line 1604 of file RootFile.cc.
References edm::RunID::firstValidRun(), forcedRunOffset_, and DTTTrigCorrFirst::run.
Referenced by readCurrentEvent(), readLuminosityBlockAuxiliary_(), and readRunAuxiliary_().
|
private |
Definition at line 1612 of file RootFile.cc.
References edm::RunID::firstValidRun(), forcedRunOffset_, and DTTTrigCorrFirst::run.
|
private |
Definition at line 1620 of file RootFile.cc.
References edm::errors::Configuration, event(), edm::hlt::Exception, edm::LuminosityBlockID::firstValidLuminosityBlock(), edm::RunID::firstValidRun(), forcedRunOffset_, and DTTTrigCorrFirst::run.
|
inline |
Definition at line 99 of file RootFile.h.
References productRegistry_.
Referenced by RootFile().
bool edm::RootFile::readCurrentEvent | ( | EventPrincipal & | cache | ) |
Definition at line 1397 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(), 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 497 of file RootFile.cc.
References daqProvenanceHelper_, edm::poolNames::entryDescriptionBranchName(), edm::poolNames::entryDescriptionIDBranchName(), edm::poolNames::entryDescriptionTreeName(), edm::errors::EventCorruption, edm::hlt::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 1374 of file RootFile.cc.
References 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 1635 of file RootFile.cc.
References edm::errors::EventCorruption, eventHistoryTree_, edm::poolNames::eventHistoryTreeName(), edm::hlt::Exception, fileFormatVersion(), filePtr_, and history_.
Referenced by RootFile().
void edm::RootFile::readLuminosityBlock_ | ( | LuminosityBlockPrincipal & | lumiPrincipal | ) |
Definition at line 1549 of file RootFile.cc.
References 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().
boost::shared_ptr< LuminosityBlockAuxiliary > edm::RootFile::readLuminosityBlockAuxiliary_ | ( | ) |
Definition at line 1511 of file RootFile.cc.
References 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 543 of file RootFile.cc.
References daqProvenanceHelper_, edm::hlt::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 1494 of file RootFile.cc.
References 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().
boost::shared_ptr< RunAuxiliary > edm::RootFile::readRunAuxiliary_ | ( | ) |
Definition at line 1430 of file RootFile.cc.
References 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 1116 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 126 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 1425 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 1567 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 116 of file RootFile.h.
References setEntryAtEvent(), setEntryAtLumi(), and setEntryAtRun().
bool edm::RootFile::setEntryAtLumi | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi | ||
) |
Definition at line 1575 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 1591 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 1583 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 579 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 664 of file RootFile.cc.
References edm::IndexIntoFile::IndexIntoFileItr::copyPosition(), and indexIntoFileIter_.
|
inline |
Definition at line 132 of file RootFile.h.
References indexIntoFileEnd_, and indexIntoFileIter_.
bool edm::RootFile::skipEvents | ( | int & | offset | ) |
Definition at line 1272 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, evf::evtn::offset(), edm::IndexIntoFile::IndexIntoFileItr::skipEventBackward(), and edm::IndexIntoFile::IndexIntoFileItr::skipEventForward().
|
private |
Definition at line 669 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 1069 of file RootFile.cc.
References edm::createGlobalIdentifier(), daqProvenanceHelper_, duplicateChecker_, edm::IndexIntoFile::empty(), edm::RootTree::entries(), python.tagInventory::entries, edm::errors::EventCorruption, eventTree_, edm::hlt::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 781 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 774 of file RootFile.cc.
References edm::IndexIntoFile::IndexIntoFileItr::advanceToEvent(), edm::IndexIntoFile::IndexIntoFileItr::getEntryType(), indexIntoFileIter_, and edm::IndexIntoFile::kEnd.
|
inline |
Definition at line 111 of file RootFile.h.
References whyNotFastClonable_.
Referenced by createFileBlock().
|
private |
Definition at line 213 of file RootFile.h.
Referenced by createFileBlock(), dropOnInput(), and RootFile().
|
private |
Definition at line 205 of file RootFile.h.
Referenced by branchIDListHelper(), fillEventHistory(), and RootFile().
|
private |
Definition at line 204 of file RootFile.h.
Referenced by branchIDLists(), and RootFile().
|
private |
Definition at line 211 of file RootFile.h.
Referenced by fillEventHistory(), and readCurrentEvent().
|
private |
Definition at line 196 of file RootFile.h.
Referenced by branchListIndexesUnchanged(), and RootFile().
|
private |
Definition at line 219 of file RootFile.h.
Referenced by fillEventHistory(), fillLumiAuxiliary(), fillRunAuxiliary(), makeProductProvenanceRetriever(), modifiedIDs(), readEntryDescriptionTree(), readEvent(), readParentageTree(), RootFile(), and validateFile().
|
private |
Definition at line 214 of file RootFile.h.
Referenced by goToEvent(), initializeDuplicateChecker(), isDuplicateEvent(), setIfFastClonable(), skipEvents(), and validateFile().
|
private |
Definition at line 197 of file RootFile.h.
Referenced by eventAux(), fillEventHistory(), fillIndexIntoFile(), fillThisEventAuxiliary(), getNextItemType(), isDuplicateEvent(), readCurrentEvent(), skipEvents(), and skipThisEntry().
|
private |
Definition at line 209 of file RootFile.h.
Referenced by close(), fillEventHistory(), and readEventHistoryTree().
|
private |
Definition at line 189 of file RootFile.h.
Referenced by fillEventHistory(), and RootFile().
|
private |
Definition at line 190 of file RootFile.h.
Referenced by fillEventHistory(), and RootFile().
|
mutableprivate |
Definition at line 217 of file RootFile.h.
Referenced by makeProductProvenanceRetriever().
|
private |
Definition at line 210 of file RootFile.h.
Referenced by fillEventHistory(), and readCurrentEvent().
|
private |
Definition at line 180 of file RootFile.h.
Referenced by RootFile(), skipEvents(), and skipThisEntry().
|
private |
Definition at line 198 of file RootFile.h.
Referenced by createFileBlock(), eventTree(), fillEventAuxiliary(), fillEventHistory(), fillIndexIntoFile(), fillThisEventAuxiliary(), initializeDuplicateChecker(), makeProductProvenanceRetriever(), nextEventEntry(), readCurrentEvent(), readLuminosityBlockAuxiliary_(), readRunAuxiliary_(), reportOpened(), rewind(), RootFile(), setAtEventEntry(), setEntryAtEvent(), setIfFastClonable(), and validateFile().
|
private |
Definition at line 182 of file RootFile.h.
Referenced by reportOpened(), RootFile(), and validateFile().
|
private |
Definition at line 175 of file RootFile.h.
Referenced by createFileBlock(), dropOnInput(), file(), isDuplicateEvent(), and skipEvents().
|
private |
Definition at line 181 of file RootFile.h.
Referenced by fileFormatVersion(), makeProvenanceReaderMaker(), and RootFile().
|
private |
Definition at line 179 of file RootFile.h.
Referenced by close(), readCurrentEvent(), readEntryDescriptionTree(), readEventHistoryTree(), readLuminosityBlockAuxiliary_(), readParentageTree(), readRunAuxiliary_(), reportOpened(), and RootFile().
|
private |
Definition at line 207 of file RootFile.h.
Referenced by overrideRunNumber(), readEvent(), and RootFile().
|
private |
Definition at line 195 of file RootFile.h.
Referenced by dropOnInput(), hasNewlyDroppedBranch(), and RootFile().
|
private |
Definition at line 212 of file RootFile.h.
Referenced by fillEventHistory(), and readEventHistoryTree().
|
private |
Definition at line 184 of file RootFile.h.
Referenced by containsItem(), fillIndexIntoFile(), goToEvent(), initializeDuplicateChecker(), readEvent(), RootFile(), setEntryAtEvent(), setEntryAtLumi(), setEntryAtRun(), setIfFastClonable(), and validateFile().
|
private |
Definition at line 186 of file RootFile.h.
Referenced by rewind(), RootFile(), and setIfFastClonable().
|
private |
Definition at line 187 of file RootFile.h.
Referenced by readEvent(), readLuminosityBlock_(), readLuminosityBlockAuxiliary_(), readRun_(), readRunAuxiliary_(), RootFile(), setEntryAtEvent(), setEntryAtLumi(), setEntryAtRun(), setIfFastClonable(), setToLastEntry(), skipEvents(), and skipThisEntry().
|
private |
Definition at line 188 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 183 of file RootFile.h.
Referenced by indexIntoFileSharedPtr().
|
private |
Definition at line 202 of file RootFile.h.
Referenced by fillIndexIntoFile(), and fillThisEventAuxiliary().
|
private |
Definition at line 176 of file RootFile.h.
Referenced by reportOpened().
|
private |
Definition at line 199 of file RootFile.h.
Referenced by createFileBlock(), fillIndexIntoFile(), fillLumiAuxiliary(), lumiTree(), readLuminosityBlock_(), readLuminosityBlockAuxiliary_(), rewind(), RootFile(), setEntryAtLumi(), and setIfFastClonable().
|
private |
Definition at line 208 of file RootFile.h.
Referenced by newBranchToOldBranch(), and RootFile().
|
private |
Definition at line 193 of file RootFile.h.
Referenced by goToEvent(), setIfFastClonable(), and validateFile().
|
private |
Definition at line 185 of file RootFile.h.
Referenced by validateFile().
|
private |
Definition at line 218 of file RootFile.h.
Referenced by makeProvenanceReaderMaker(), and readParentageTree().
|
private |
Definition at line 177 of file RootFile.h.
|
private |
Definition at line 178 of file RootFile.h.
Referenced by fillIndexIntoFile(), readCurrentEvent(), readEvent(), readLuminosityBlock_(), readRun_(), and validateFile().
|
private |
Definition at line 206 of file RootFile.h.
Referenced by getNextItemType(), and setIfFastClonable().
|
private |
Definition at line 203 of file RootFile.h.
Referenced by productRegistry(), and RootFile().
|
private |
Definition at line 215 of file RootFile.h.
Referenced by fillEventHistory(), fillLumiAuxiliary(), fillRunAuxiliary(), and RootFile().
|
private |
Definition at line 216 of file RootFile.h.
Referenced by makeProductProvenanceRetriever(), and RootFile().
|
private |
Definition at line 200 of file RootFile.h.
Referenced by createFileBlock(), fillIndexIntoFile(), fillRunAuxiliary(), readRun_(), readRunAuxiliary_(), rewind(), RootFile(), runTree(), and setEntryAtRun().
|
private |
Definition at line 191 of file RootFile.h.
Referenced by readLuminosityBlockAuxiliary_(), and readRunAuxiliary_().
|
private |
Definition at line 192 of file RootFile.h.
Referenced by setIfFastClonable().
|
private |
Definition at line 201 of file RootFile.h.
Referenced by close(), dropOnInput(), RootFile(), and treePointers().
|
private |
Definition at line 194 of file RootFile.h.
Referenced by RootFile(), setIfFastClonable(), and whyNotFastClonable().