#include <RootInputFileSequence.h>
Public Types | |
typedef std::shared_ptr< RootFile > | RootFileSharedPtr |
Static Public Member Functions | |
static void | fillDescription (ParameterSetDescription &desc) |
Private Member Functions | |
std::vector< FileCatalogItem > const & | fileCatalogItems () const |
void | initFile (bool skipBadFiles) |
bool | nextFile () |
bool | previousFile () |
ProcessConfiguration const & | processConfiguration () const |
std::shared_ptr < ProductRegistry const > | productRegistry () const |
ProductRegistry & | productRegistryUpdate () const |
int | remainingEvents () const |
int | remainingLuminosityBlocks () const |
void | rewindFile () |
Definition at line 40 of file RootInputFileSequence.h.
typedef std::shared_ptr<RootFile> edm::RootInputFileSequence::RootFileSharedPtr |
Definition at line 52 of file RootInputFileSequence.h.
|
explicit |
Definition at line 30 of file RootInputFileSequence.cc.
References StorageFactory::activateTimeout(), branchesMustMatch_, prof2calltree::count, enablePrefetching_, f, fileIter_, fileIterBegin_, fileIterEnd_, StorageFactory::get(), edm::ParameterSet::getUntrackedParameter(), initFile(), initialNumberOfEventsToSkip_, inputType_, edm::Service< T >::isAvailable(), hltrates_dqm_sourceclient-live_cfg::offset, edm::Primary, productRegistryUpdate(), rootFile_, edm::SecondaryFile, edm::SecondarySource, fileCollector::seed, skipBadFiles_, skipEvents(), StorageFactory::stagein(), edm::BranchDescription::Strict, AlCaHLTBitMon_QueryRunRegistry::string, treeCacheSize_, and edm::ProductRegistry::updateFromInput().
|
virtual |
Definition at line 395 of file RootInputFileSequence.cc.
|
delete |
void edm::RootInputFileSequence::closeFile_ | ( | ) |
Definition at line 161 of file RootInputFileSequence.cc.
References duplicateChecker_, input_, inputType_, lfn_, edm::Primary, rootFile_, edm::SecondarySource, and usedFallback_.
Referenced by endJob(), initFile(), and rewind_().
bool edm::RootInputFileSequence::containedInCurrentFile | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event | ||
) | const |
Definition at line 467 of file RootInputFileSequence.cc.
References rootFile_.
void edm::RootInputFileSequence::dropUnwantedBranches_ | ( | std::vector< std::string > const & | wantedBranches | ) |
Definition at line 692 of file RootInputFileSequence.cc.
References edm::ParameterSet::addUntrackedParameter(), productSelectorRules_, cmsCodeRulesChecker::rules, and AlCaHLTBitMon_QueryRunRegistry::string.
void edm::RootInputFileSequence::endJob | ( | void | ) |
std::shared_ptr< BranchIDListHelper const > edm::RootInputFileSequence::fileBranchIDListHelper | ( | ) | const |
Definition at line 341 of file RootInputFileSequence.cc.
References assert(), and rootFile_.
|
private |
Definition at line 133 of file RootInputFileSequence.cc.
References catalog_, and edm::InputFileCatalog::fileCatalogItems().
Referenced by readOneRandom().
std::shared_ptr< ProductRegistry const > edm::RootInputFileSequence::fileProductRegistry | ( | ) | const |
Definition at line 335 of file RootInputFileSequence.cc.
References assert(), and rootFile_.
|
static |
Definition at line 904 of file RootInputFileSequence.cc.
References edm::ParameterSetDescription::addUntracked(), edm::roottree::defaultCacheSize, edm::EventSkipperByID::fillDescription(), edm::ProductSelectorRules::fillDescription(), edm::DuplicateChecker::fillDescription(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edm::PoolSource::fillDescriptions().
ProcessingController::ForwardState edm::RootInputFileSequence::forwardState | ( | ) | const |
Definition at line 940 of file RootInputFileSequence.cc.
References fileIter_, fileIterEnd_, edm::ProcessingController::kAtLastEvent, edm::ProcessingController::kEventsAheadInFile, edm::ProcessingController::kNextFileExists, edm::ProcessingController::kUnknownForward, and rootFile_.
InputSource::ItemType edm::RootInputFileSequence::getNextItemType | ( | RunNumber_t & | run, |
LuminosityBlockNumber_t & | lumi, | ||
EventNumber_t & | event | ||
) |
Definition at line 442 of file RootInputFileSequence.cc.
References assert(), fileIter_, fileIterEnd_, firstFile_, edm::InputSource::IsEvent, edm::InputSource::IsFile, edm::InputSource::IsLumi, edm::InputSource::IsRun, edm::InputSource::IsStop, edm::IndexIntoFile::kEnd, edm::IndexIntoFile::kEvent, edm::IndexIntoFile::kLumi, edm::IndexIntoFile::kRun, and rootFile_.
bool edm::RootInputFileSequence::goToEvent | ( | EventID const & | eventID | ) |
Definition at line 519 of file RootInputFileSequence.cc.
References assert(), edm::EventID::event(), fileIter_, fileIterBegin_, newFWLiteAna::found, indexesIntoFiles_, initFile(), edm::EventID::luminosityBlock(), rootFile_, edm::EventID::run(), and usingGoToEvent_.
void edm::RootInputFileSequence::initAssociationsFromSecondary | ( | std::set< BranchID > const & | associationsFromSecondary | ) |
Definition at line 969 of file RootInputFileSequence.cc.
References associationsFromSecondary_, and rootFile_.
|
private |
Definition at line 174 of file RootInputFileSequence.cc.
References StorageFactory::activateTimeout(), cms::Exception::additionalInfo(), assert(), associationsFromSecondary_, edm::InputSource::branchIDListHelper(), bypassVersionCheck_, closeFile_(), dropDescendants_, duplicateChecker_, alignCSCRings::e, enablePrefetching_, eventSkipperByID_, edm::hlt::Exception, cms::Exception::explainSelf(), edm::errors::FallbackFileOpenError, fileIter_, fileIterBegin_, fileIterEnd_, fileIterLastOpened_, edm::errors::FileOpenError, StorageFactory::get(), indexesIntoFiles_, initialNumberOfEventsToSkip_, input_, RPC_Client_on_RootFile::InputFile, inputType_, labelRawDataLikeMC_, lfn_, lfnHash_, noEventSort_, nStreams_, orderedProcessHistoryIDs_, dbtoconf::out, dbtoconf::pfn, edm::Primary, processConfiguration(), processHistoryRegistryForUpdate(), edm::InputSource::processingMode(), productSelectorRules_, remainingEvents(), remainingLuminosityBlocks(), edm::InputFile::reportFallbackAttempt(), edm::InputFile::reportSkippedFile(), rootFile_, alignCSCRings::s, edm::SecondaryFile, edm::SecondarySource, setRun_, AlCaHLTBitMon_QueryRunRegistry::string, edm::InputSource::thinnedAssociationsHelper(), treeCacheSize_, treeMaxVirtualSize_, usedFallback_, and usingGoToEvent_.
Referenced by goToEvent(), nextFile(), previousFile(), readFile_(), readOneRandom(), readOneSequential(), readOneSequentialWithID(), rewind_(), RootInputFileSequence(), skipEntries(), skipToItem(), and skipToItemInNewFile().
|
private |
Definition at line 346 of file RootInputFileSequence.cc.
References branchesMustMatch_, edm::hlt::Exception, fileIter_, fileIterBegin_, fileIterEnd_, initFile(), inputType_, edm::ProductRegistry::merge(), edm::errors::MismatchedInputFiles, edm::Primary, productRegistryUpdate(), rootFile_, skipBadFiles_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by readFile_(), and skipEvents().
|
delete |
|
private |
Definition at line 370 of file RootInputFileSequence.cc.
References branchesMustMatch_, edm::hlt::Exception, fileIter_, fileIterBegin_, fileIterEnd_, initFile(), inputType_, edm::ProductRegistry::merge(), edm::errors::MismatchedInputFiles, edm::Primary, productRegistryUpdate(), rootFile_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by skipEvents().
|
private |
Definition at line 667 of file RootInputFileSequence.cc.
References input_, and edm::InputSource::processConfiguration().
Referenced by initFile().
ProcessHistoryRegistry const & edm::RootInputFileSequence::processHistoryRegistry | ( | ) | const |
Definition at line 657 of file RootInputFileSequence.cc.
References input_, and edm::InputSource::processHistoryRegistry().
ProcessHistoryRegistry & edm::RootInputFileSequence::processHistoryRegistryForUpdate | ( | ) |
Definition at line 662 of file RootInputFileSequence.cc.
References input_, and edm::InputSource::processHistoryRegistryForUpdate().
Referenced by initFile().
|
private |
Definition at line 687 of file RootInputFileSequence.cc.
References input_, and edm::InputSource::productRegistry().
|
private |
Definition at line 682 of file RootInputFileSequence.cc.
References input_, and edm::InputSource::productRegistryUpdate().
Referenced by nextFile(), previousFile(), and RootInputFileSequence().
void edm::RootInputFileSequence::readEvent | ( | EventPrincipal & | cache | ) |
Definition at line 436 of file RootInputFileSequence.cc.
References assert(), and rootFile_.
std::unique_ptr< FileBlock > edm::RootInputFileSequence::readFile_ | ( | ) |
Definition at line 143 of file RootInputFileSequence.cc.
References assert(), firstFile_, initFile(), nextFile(), rootFile_, and skipBadFiles_.
void edm::RootInputFileSequence::readLuminosityBlock_ | ( | LuminosityBlockPrincipal & | lumiPrincipal | ) |
Definition at line 417 of file RootInputFileSequence.cc.
References assert(), and rootFile_.
std::shared_ptr< LuminosityBlockAuxiliary > edm::RootInputFileSequence::readLuminosityBlockAuxiliary_ | ( | ) |
Definition at line 405 of file RootInputFileSequence.cc.
References assert(), and rootFile_.
void edm::RootInputFileSequence::readOneRandom | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 825 of file RootInputFileSequence.cc.
References assert(), edm::errors::Configuration, eventsRemainingInFile_, edm::hlt::Exception, fileCatalogItems(), fileIter_, fileIterBegin_, fileIterEnd_, firstFile_, newFWLiteAna::found, initFile(), lfnHash_, edm::errors::NotFound, rootFile_, findQualityFiles::size, and skipBadFiles_.
bool edm::RootInputFileSequence::readOneRandomWithID | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
LuminosityBlockID const & | id, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 863 of file RootInputFileSequence.cc.
References assert(), edm::errors::Configuration, edm::hlt::Exception, fileIter_, fileIterBegin_, fileIterEnd_, firstFile_, newFWLiteAna::found, i, lfnHash_, rootFile_, DTTTrigCorrFirst::run, skipBadFiles_, and skipToItem().
bool edm::RootInputFileSequence::readOneSequential | ( | EventPrincipal & | cache, |
size_t & | fileNameHash | ||
) |
Definition at line 721 of file RootInputFileSequence.cc.
References assert(), edm::errors::Configuration, edm::hlt::Exception, fileIter_, fileIterBegin_, fileIterEnd_, firstFile_, newFWLiteAna::found, initFile(), initialNumberOfEventsToSkip_, edm::IndexIntoFile::invalidEntry, lfnHash_, rootFile_, skipBadFiles_, and skipEntries().
bool edm::RootInputFileSequence::readOneSequentialWithID | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
LuminosityBlockID const & | id | ||
) |
Definition at line 754 of file RootInputFileSequence.cc.
References assert(), edm::errors::Configuration, edm::hlt::Exception, fileIter_, fileIterBegin_, fileIterEnd_, firstFile_, newFWLiteAna::found, initFile(), initialNumberOfEventsToSkip_, edm::IndexIntoFile::invalidEntry, lfnHash_, hltrates_dqm_sourceclient-live_cfg::offset, rootFile_, DTTTrigCorrFirst::run, skipBadFiles_, skipToItem(), and skipToItemInNewFile().
void edm::RootInputFileSequence::readOneSpecified | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
SecondaryEventIDAndFileInfo const & | id | ||
) |
Definition at line 802 of file RootInputFileSequence.cc.
References assert(), edm::errors::Configuration, event(), edm::SecondaryEventIDAndFileInfo::eventID(), edm::hlt::Exception, fileIterBegin_, fileIterEnd_, edm::SecondaryEventIDAndFileInfo::fileNameHash(), firstFile_, newFWLiteAna::found, lfnHash_, edm::errors::NotFound, rootFile_, DTTTrigCorrFirst::run, skipBadFiles_, and skipToItem().
void edm::RootInputFileSequence::readRun_ | ( | RunPrincipal & | runPrincipal | ) |
Definition at line 411 of file RootInputFileSequence.cc.
References assert(), and rootFile_.
std::shared_ptr< RunAuxiliary > edm::RootInputFileSequence::readRunAuxiliary_ | ( | ) |
Definition at line 399 of file RootInputFileSequence.cc.
References assert(), and rootFile_.
|
private |
Definition at line 672 of file RootInputFileSequence.cc.
References input_, and edm::InputSource::remainingEvents().
Referenced by initFile().
|
private |
Definition at line 677 of file RootInputFileSequence.cc.
References input_, and edm::InputSource::remainingLuminosityBlocks().
Referenced by initFile().
ProcessingController::ReverseState edm::RootInputFileSequence::reverseState | ( | ) | const |
Definition at line 956 of file RootInputFileSequence.cc.
References fileIter_, fileIterBegin_, edm::ProcessingController::kAtFirstEvent, edm::ProcessingController::kEventsBackwardsInFile, edm::ProcessingController::kPreviousFileExists, edm::ProcessingController::kUnknownReverse, and rootFile_.
void edm::RootInputFileSequence::rewind_ | ( | ) |
Definition at line 474 of file RootInputFileSequence.cc.
References closeFile_(), fileIter_, fileIterBegin_, firstFile_, initFile(), initialNumberOfEventsToSkip_, rewindFile(), rootFile_, and skipEvents().
|
private |
Definition at line 493 of file RootInputFileSequence.cc.
References rootFile_.
Referenced by rewind_().
void edm::RootInputFileSequence::skipEntries | ( | unsigned int | offset | ) |
Definition at line 705 of file RootInputFileSequence.cc.
References assert(), fileIter_, fileIterBegin_, fileIterEnd_, initFile(), edm::IndexIntoFile::invalidEntry, and rootFile_.
Referenced by readOneSequential().
bool edm::RootInputFileSequence::skipEvents | ( | int | offset | ) |
Definition at line 499 of file RootInputFileSequence.cc.
References assert(), fileIter_, fileIterEnd_, inputType_, nextFile(), previousFile(), rootFile_, and edm::SecondaryFile.
Referenced by rewind_(), and RootInputFileSequence().
bool edm::RootInputFileSequence::skipToItem | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event, | ||
size_t | fileNameHash = 0U , |
||
bool | currentFileFirst = true |
||
) |
Definition at line 626 of file RootInputFileSequence.cc.
References assert(), fileIter_, fileIterBegin_, newFWLiteAna::found, indexesIntoFiles_, initFile(), rootFile_, and skipToItemInNewFile().
Referenced by readOneRandomWithID(), readOneSequentialWithID(), and readOneSpecified().
bool edm::RootInputFileSequence::skipToItemInNewFile | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event | ||
) |
Definition at line 606 of file RootInputFileSequence.cc.
References assert(), fileIter_, fileIterBegin_, newFWLiteAna::found, indexesIntoFiles_, initFile(), and rootFile_.
Referenced by readOneSequentialWithID(), and skipToItem().
bool edm::RootInputFileSequence::skipToItemInNewFile | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event, | ||
size_t | fileNameHash | ||
) |
Definition at line 574 of file RootInputFileSequence.cc.
References assert(), fileIter_, fileIterBegin_, fileIterEnd_, findFileForSpecifiedID_, newFWLiteAna::found, indexesIntoFiles_, initFile(), getDQMSummary::iter, and rootFile_.
|
private |
Definition at line 114 of file RootInputFileSequence.h.
Referenced by initAssociationsFromSecondary(), and initFile().
|
private |
Definition at line 110 of file RootInputFileSequence.h.
Referenced by nextFile(), previousFile(), and RootInputFileSequence().
|
private |
Definition at line 122 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 100 of file RootInputFileSequence.h.
Referenced by fileCatalogItems().
|
private |
Definition at line 128 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 127 of file RootInputFileSequence.h.
Referenced by closeFile_(), and initFile().
|
private |
Definition at line 131 of file RootInputFileSequence.h.
Referenced by initFile(), and RootInputFileSequence().
|
private |
Definition at line 117 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 118 of file RootInputFileSequence.h.
Referenced by readOneRandom().
|
private |
Definition at line 107 of file RootInputFileSequence.h.
Referenced by forwardState(), getNextItemType(), goToEvent(), initFile(), nextFile(), previousFile(), readOneRandom(), readOneRandomWithID(), readOneSequential(), readOneSequentialWithID(), reverseState(), rewind_(), RootInputFileSequence(), skipEntries(), skipEvents(), skipToItem(), and skipToItemInNewFile().
|
private |
Definition at line 105 of file RootInputFileSequence.h.
Referenced by goToEvent(), initFile(), nextFile(), previousFile(), readOneRandom(), readOneRandomWithID(), readOneSequential(), readOneSequentialWithID(), readOneSpecified(), reverseState(), rewind_(), RootInputFileSequence(), skipEntries(), skipToItem(), and skipToItemInNewFile().
|
private |
Definition at line 106 of file RootInputFileSequence.h.
Referenced by forwardState(), getNextItemType(), initFile(), nextFile(), previousFile(), readOneRandom(), readOneRandomWithID(), readOneSequential(), readOneSequentialWithID(), readOneSpecified(), RootInputFileSequence(), skipEntries(), skipEvents(), and skipToItemInNewFile().
|
private |
Definition at line 108 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 104 of file RootInputFileSequence.h.
Referenced by skipToItemInNewFile().
|
private |
Definition at line 101 of file RootInputFileSequence.h.
Referenced by getNextItemType(), readFile_(), readOneRandom(), readOneRandomWithID(), readOneSequential(), readOneSequentialWithID(), readOneSpecified(), and rewind_().
|
private |
Definition at line 112 of file RootInputFileSequence.h.
Referenced by goToEvent(), initFile(), skipToItem(), and skipToItemInNewFile().
|
private |
Definition at line 119 of file RootInputFileSequence.h.
Referenced by initFile(), readOneSequential(), readOneSequentialWithID(), rewind_(), and RootInputFileSequence().
|
private |
Definition at line 98 of file RootInputFileSequence.h.
Referenced by closeFile_(), initFile(), processConfiguration(), processHistoryRegistry(), processHistoryRegistryForUpdate(), productRegistry(), productRegistryUpdate(), remainingEvents(), and remainingLuminosityBlocks().
|
private |
Definition at line 99 of file RootInputFileSequence.h.
Referenced by closeFile_(), initFile(), nextFile(), previousFile(), RootInputFileSequence(), and skipEvents().
|
private |
Definition at line 129 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 102 of file RootInputFileSequence.h.
Referenced by closeFile_(), and initFile().
|
private |
Definition at line 103 of file RootInputFileSequence.h.
Referenced by initFile(), readOneRandom(), readOneRandomWithID(), readOneSequential(), readOneSequentialWithID(), and readOneSpecified().
|
private |
Definition at line 120 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 116 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 113 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 126 of file RootInputFileSequence.h.
Referenced by dropUnwantedBranches_(), and initFile().
|
private |
Definition at line 109 of file RootInputFileSequence.h.
Referenced by closeFile_(), containedInCurrentFile(), fileBranchIDListHelper(), fileProductRegistry(), forwardState(), getNextItemType(), goToEvent(), initAssociationsFromSecondary(), initFile(), nextFile(), previousFile(), readEvent(), readFile_(), readLuminosityBlock_(), readLuminosityBlockAuxiliary_(), readOneRandom(), readOneRandomWithID(), readOneSequential(), readOneSequentialWithID(), readOneSpecified(), readRun_(), readRunAuxiliary_(), reverseState(), rewind_(), rewindFile(), RootInputFileSequence(), skipEntries(), skipEvents(), skipToItem(), and skipToItemInNewFile().
|
private |
Definition at line 125 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 121 of file RootInputFileSequence.h.
Referenced by nextFile(), readFile_(), readOneRandom(), readOneRandomWithID(), readOneSequential(), readOneSequentialWithID(), readOneSpecified(), and RootInputFileSequence().
|
private |
Definition at line 123 of file RootInputFileSequence.h.
Referenced by initFile(), and RootInputFileSequence().
|
private |
Definition at line 124 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 132 of file RootInputFileSequence.h.
Referenced by closeFile_(), and initFile().
|
private |
Definition at line 130 of file RootInputFileSequence.h.
Referenced by goToEvent(), and initFile().