#include <RootInputFileSequence.h>
Protected Types | |
typedef std::shared_ptr< RootFile > | RootFileSharedPtr |
Protected Member Functions | |
bool | atFirstFile () const |
bool | atLastFile () const |
std::vector< FileCatalogItem > const & | fileCatalogItems () const |
std::vector< std::string > const & | fileNames () const |
std::vector< std::shared_ptr < IndexIntoFile > > const & | indexesIntoFiles () const |
void | initFile (bool skipBadFiles) |
void | initTheFile (bool skipBadFiles, bool deleteIndexIntoFile, InputSource *input, char const *inputTypeName, InputType inputType) |
std::string const & | lfn () const |
size_t | lfnHash () const |
std::string const & | logicalFileName () const |
bool | noFiles () const |
bool | noMoreFiles () const |
size_t | numberOfFiles () const |
std::shared_ptr< RootFile const > | rootFile () const |
std::shared_ptr< RootFile > & | rootFile () |
size_t | sequenceNumberOfFile () const |
void | setAtFileSequenceNumber (size_t offset) |
void | setAtFirstFile () |
void | setAtNextFile () |
void | setAtPreviousFile () |
void | setIndexIntoFile (size_t index) |
void | setNoMoreFiles () |
bool | skipToItemInNewFile (RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event) |
bool | skipToItemInNewFile (RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event, size_t fileNameHash) |
bool | usedFallback () const |
Private Member Functions | |
virtual void | closeFile_ ()=0 |
virtual void | initFile_ (bool skipBadFiles)=0 |
virtual RootFileSharedPtr | makeRootFile (std::shared_ptr< InputFile > filePtr)=0 |
Private Attributes | |
InputFileCatalog const & | catalog_ |
std::vector< FileCatalogItem > ::const_iterator | fileIter_ |
std::vector< FileCatalogItem > ::const_iterator const | fileIterBegin_ |
std::vector< FileCatalogItem > ::const_iterator const | fileIterEnd_ |
std::vector< FileCatalogItem > ::const_iterator | fileIterLastOpened_ |
edm::propagate_const < std::unique_ptr < std::unordered_multimap < size_t, size_t > > > | findFileForSpecifiedID_ |
std::vector< std::shared_ptr < IndexIntoFile > > | indexesIntoFiles_ |
std::string | lfn_ |
size_t | lfnHash_ |
edm::propagate_const < RootFileSharedPtr > | rootFile_ |
bool | usedFallback_ |
Definition at line 32 of file RootInputFileSequence.h.
|
protected |
Definition at line 60 of file RootInputFileSequence.h.
|
explicit |
Definition at line 24 of file RootInputFileSequence.cc.
|
virtual |
Definition at line 51 of file RootInputFileSequence.cc.
|
delete |
|
inlineprotected |
Definition at line 71 of file RootInputFileSequence.h.
References fileIter_, and fileIterBegin_.
Referenced by edm::RootPrimaryFileSequence::previousFile(), edm::RootPrimaryFileSequence::reverseState(), edm::RootPrimaryFileSequence::rewind_(), edm::RootEmbeddedFileSequence::RootEmbeddedFileSequence(), and edm::RootPrimaryFileSequence::skipEvents().
|
inlineprotected |
Definition at line 72 of file RootInputFileSequence.h.
References fileIter_, and fileIterEnd_.
Referenced by edm::RootPrimaryFileSequence::forwardState(), edm::RootPrimaryFileSequence::getNextItemType(), and edm::RootPrimaryFileSequence::skipEvents().
void edm::RootInputFileSequence::closeFile | ( | ) |
Definition at line 299 of file RootInputFileSequence.cc.
References edm::storage::StatisticsSenderService::closedFile(), closeFile_(), edm::Service< T >::isAvailable(), lfn(), rootFile(), and usedFallback().
Referenced by edm::RootSecondaryFileSequence::endJob(), edm::RootEmbeddedFileSequence::endJob(), edm::RootPrimaryFileSequence::endJob(), initTheFile(), and edm::RootPrimaryFileSequence::rewind_().
|
privatepure virtual |
Implemented in edm::RootPrimaryFileSequence, edm::RootEmbeddedFileSequence, and edm::RootSecondaryFileSequence.
Referenced by closeFile().
bool edm::RootInputFileSequence::containedInCurrentFile | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event | ||
) | const |
Definition at line 106 of file RootInputFileSequence.cc.
References rootFile().
std::shared_ptr< BranchIDListHelper const > edm::RootInputFileSequence::fileBranchIDListHelper | ( | ) | const |
Definition at line 46 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
|
protected |
Definition at line 37 of file RootInputFileSequence.cc.
References catalog_, and edm::InputFileCatalog::fileCatalogItems().
Referenced by edm::RootEmbeddedFileSequence::readOneRandom().
|
inlineprotected |
Definition at line 84 of file RootInputFileSequence.h.
References fileIter_.
Referenced by initTheFile(), edm::RootSecondaryFileSequence::makeRootFile(), edm::RootPrimaryFileSequence::makeRootFile(), edm::RootEmbeddedFileSequence::makeRootFile(), edm::RootPrimaryFileSequence::nextFile(), edm::RootPrimaryFileSequence::previousFile(), edm::RootEmbeddedFileSequence::readOneRandom(), edm::RootPrimaryFileSequence::RootPrimaryFileSequence(), and edm::RootSecondaryFileSequence::RootSecondaryFileSequence().
std::shared_ptr< ProductRegistry const > edm::RootInputFileSequence::fileProductRegistry | ( | ) | const |
Definition at line 41 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
void edm::RootInputFileSequence::fillProcessBlockHelper_ | ( | ) |
Definition at line 68 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
|
inlineprotected |
Definition at line 90 of file RootInputFileSequence.h.
References indexesIntoFiles_.
Referenced by edm::RootPrimaryFileSequence::goToEvent(), edm::RootSecondaryFileSequence::makeRootFile(), edm::RootPrimaryFileSequence::makeRootFile(), and edm::RootEmbeddedFileSequence::makeRootFile().
|
inlineprotected |
Definition at line 61 of file RootInputFileSequence.h.
References initFile_().
Referenced by edm::RootPrimaryFileSequence::goToEvent(), edm::RootPrimaryFileSequence::nextFile(), edm::RootPrimaryFileSequence::previousFile(), edm::RootPrimaryFileSequence::readFile_(), edm::RootEmbeddedFileSequence::readOneRandom(), edm::RootEmbeddedFileSequence::readOneSequential(), edm::RootPrimaryFileSequence::rewind_(), edm::RootEmbeddedFileSequence::RootEmbeddedFileSequence(), edm::RootPrimaryFileSequence::RootPrimaryFileSequence(), edm::RootSecondaryFileSequence::RootSecondaryFileSequence(), edm::RootEmbeddedFileSequence::skipEntries(), edm::RootPrimaryFileSequence::skipEvents(), and skipToItem().
|
privatepure virtual |
Implemented in edm::RootEmbeddedFileSequence, edm::RootPrimaryFileSequence, and edm::RootSecondaryFileSequence.
Referenced by initFile(), and skipToItemInNewFile().
|
protected |
Definition at line 199 of file RootInputFileSequence.cc.
References cms::Exception::addAdditionalInfo(), cms::Exception::addContext(), cms::cuda::assert(), closeFile(), alignCSCRings::e, relativeConstraints::empty, Exception, fileIter_, fileIterBegin_, fileIterEnd_, fileIterLastOpened_, fileNames(), edm::errors::FileOpenError, isotrackTrainRegressor::fName, indexesIntoFiles_, edm::Service< T >::isAvailable(), lfn(), lfn_, lfnHash_, logicalFileName(), makeRootFile(), mergeVDriftHistosByStation::name, GetRecoTauVFromDQM_MC_cff::next, noMoreFiles(), edm::storage::StatisticsSenderService::openingFile(), submitPVResolutionJobs::out, edm::InputSource::postEventReadFromSourceSignal_, edm::InputSource::preEventReadFromSourceSignal_, edm::InputFile::reportSkippedFile(), rootFile_, alignCSCRings::s, setIndexIntoFile(), AlCaHLTBitMon_QueryRunRegistry::string, and usedFallback_.
Referenced by edm::RootSecondaryFileSequence::initFile_(), edm::RootPrimaryFileSequence::initFile_(), and edm::RootEmbeddedFileSequence::initFile_().
|
inlineprotected |
Definition at line 87 of file RootInputFileSequence.h.
References lfn_.
Referenced by closeFile(), edm::RootPrimaryFileSequence::closeFile_(), and initTheFile().
|
inlineprotected |
Definition at line 92 of file RootInputFileSequence.h.
References lfnHash_.
Referenced by edm::RootEmbeddedFileSequence::readOneRandom(), edm::RootEmbeddedFileSequence::readOneRandomWithID(), edm::RootEmbeddedFileSequence::readOneSequential(), edm::RootEmbeddedFileSequence::readOneSequentialWithID(), and edm::RootEmbeddedFileSequence::readOneSpecified().
|
inlineprotected |
Definition at line 86 of file RootInputFileSequence.h.
References fileIter_.
Referenced by initTheFile(), edm::RootSecondaryFileSequence::makeRootFile(), edm::RootPrimaryFileSequence::makeRootFile(), and edm::RootEmbeddedFileSequence::makeRootFile().
|
privatepure virtual |
Implemented in edm::RootEmbeddedFileSequence, edm::RootPrimaryFileSequence, and edm::RootSecondaryFileSequence.
Referenced by initTheFile().
bool edm::RootInputFileSequence::nextProcessBlock_ | ( | ProcessBlockPrincipal & | processBlockPrincipal | ) |
Definition at line 73 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
|
inlineprotected |
Definition at line 74 of file RootInputFileSequence.h.
References fileIterBegin_, and fileIterEnd_.
Referenced by edm::RootEmbeddedFileSequence::RootEmbeddedFileSequence().
|
inlineprotected |
Definition at line 73 of file RootInputFileSequence.h.
References fileIter_, and fileIterEnd_.
Referenced by edm::RootPrimaryFileSequence::forwardState(), edm::RootPrimaryFileSequence::getNextItemType(), initTheFile(), edm::RootPrimaryFileSequence::nextFile(), edm::RootEmbeddedFileSequence::readOneRandomWithID(), edm::RootEmbeddedFileSequence::readOneSequential(), edm::RootEmbeddedFileSequence::readOneSequentialWithID(), edm::RootPrimaryFileSequence::RootPrimaryFileSequence(), edm::RootSecondaryFileSequence::RootSecondaryFileSequence(), edm::RootEmbeddedFileSequence::skipEntries(), and edm::RootPrimaryFileSequence::skipEvents().
|
inlineprotected |
Definition at line 76 of file RootInputFileSequence.h.
References fileIterBegin_, and fileIterEnd_.
Referenced by edm::RootEmbeddedFileSequence::RootEmbeddedFileSequence().
|
delete |
bool edm::RootInputFileSequence::readEvent | ( | EventPrincipal & | cache | ) |
Definition at line 101 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
void edm::RootInputFileSequence::readLuminosityBlock_ | ( | LuminosityBlockPrincipal & | lumiPrincipal | ) |
Definition at line 83 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
std::shared_ptr< LuminosityBlockAuxiliary > edm::RootInputFileSequence::readLuminosityBlockAuxiliary_ | ( | ) |
Definition at line 58 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
void edm::RootInputFileSequence::readProcessBlock_ | ( | ProcessBlockPrincipal & | processBlockPrincipal | ) |
Definition at line 78 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
void edm::RootInputFileSequence::readRun_ | ( | RunPrincipal & | runPrincipal | ) |
Definition at line 63 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
std::shared_ptr< RunAuxiliary > edm::RootInputFileSequence::readRunAuxiliary_ | ( | ) |
Definition at line 53 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
|
inlineprotected |
Definition at line 95 of file RootInputFileSequence.h.
References edm::get_underlying_safe(), and rootFile_.
Referenced by closeFile(), edm::RootSecondaryFileSequence::closeFile_(), edm::RootEmbeddedFileSequence::closeFile_(), edm::RootPrimaryFileSequence::closeFile_(), containedInCurrentFile(), fileBranchIDListHelper(), fileProductRegistry(), fillProcessBlockHelper_(), edm::RootPrimaryFileSequence::forwardState(), edm::RootPrimaryFileSequence::getNextItemType(), edm::RootPrimaryFileSequence::goToEvent(), edm::RootSecondaryFileSequence::initAssociationsFromSecondary(), edm::RootPrimaryFileSequence::nextFile(), nextProcessBlock_(), edm::RootPrimaryFileSequence::previousFile(), readEvent(), edm::RootPrimaryFileSequence::readFile_(), readLuminosityBlock_(), readLuminosityBlockAuxiliary_(), edm::RootEmbeddedFileSequence::readOneRandom(), edm::RootEmbeddedFileSequence::readOneRandomWithID(), edm::RootEmbeddedFileSequence::readOneSequential(), edm::RootEmbeddedFileSequence::readOneSequentialWithID(), edm::RootEmbeddedFileSequence::readOneSpecified(), readProcessBlock_(), readRun_(), readRunAuxiliary_(), edm::RootPrimaryFileSequence::reverseState(), edm::RootPrimaryFileSequence::rewind_(), edm::RootPrimaryFileSequence::rewindFile(), edm::RootEmbeddedFileSequence::RootEmbeddedFileSequence(), edm::RootPrimaryFileSequence::RootPrimaryFileSequence(), edm::RootSecondaryFileSequence::RootSecondaryFileSequence(), setIndexIntoFile(), edm::RootEmbeddedFileSequence::skipEntries(), edm::RootPrimaryFileSequence::skipEvents(), edm::RootPrimaryFileSequence::skipEventsAtBeginning(), skipToItem(), and skipToItemInNewFile().
|
inlineprotected |
Definition at line 96 of file RootInputFileSequence.h.
References edm::get_underlying_safe(), and rootFile_.
|
inlineprotected |
Definition at line 75 of file RootInputFileSequence.h.
References fileIter_, and fileIterBegin_.
Referenced by edm::RootPrimaryFileSequence::goToEvent(), edm::RootSecondaryFileSequence::makeRootFile(), edm::RootPrimaryFileSequence::makeRootFile(), edm::RootEmbeddedFileSequence::makeRootFile(), edm::RootEmbeddedFileSequence::readOneRandom(), and edm::RootPrimaryFileSequence::skipEvents().
|
inlineprotected |
Definition at line 79 of file RootInputFileSequence.h.
References fileIter_, fileIterBegin_, and hltrates_dqm_sourceclient-live_cfg::offset.
Referenced by edm::RootPrimaryFileSequence::goToEvent(), edm::RootPrimaryFileSequence::readFile_(), edm::RootEmbeddedFileSequence::readOneRandom(), edm::RootEmbeddedFileSequence::RootEmbeddedFileSequence(), edm::RootPrimaryFileSequence::skipEvents(), skipToItem(), and skipToItemInNewFile().
|
inlineprotected |
Definition at line 78 of file RootInputFileSequence.h.
References fileIter_, and fileIterBegin_.
Referenced by edm::RootEmbeddedFileSequence::readOneSequential(), edm::RootPrimaryFileSequence::rewind_(), edm::RootEmbeddedFileSequence::RootEmbeddedFileSequence(), edm::RootPrimaryFileSequence::RootPrimaryFileSequence(), edm::RootSecondaryFileSequence::RootSecondaryFileSequence(), and edm::RootEmbeddedFileSequence::skipEntries().
|
inlineprotected |
Definition at line 81 of file RootInputFileSequence.h.
References fileIter_.
Referenced by edm::RootPrimaryFileSequence::nextFile(), edm::RootEmbeddedFileSequence::readOneSequential(), edm::RootPrimaryFileSequence::RootPrimaryFileSequence(), edm::RootSecondaryFileSequence::RootSecondaryFileSequence(), and edm::RootEmbeddedFileSequence::skipEntries().
|
inlineprotected |
Definition at line 82 of file RootInputFileSequence.h.
References fileIter_.
Referenced by edm::RootPrimaryFileSequence::previousFile().
|
protected |
Definition at line 307 of file RootInputFileSequence.cc.
References indexesIntoFiles_, and rootFile().
Referenced by initTheFile().
|
inlineprotected |
Definition at line 80 of file RootInputFileSequence.h.
References fileIter_, and fileIterEnd_.
bool edm::RootInputFileSequence::skipToItem | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event, | ||
size_t | fileNameHash = 0U , |
||
bool | currentFileFirst = true |
||
) |
Definition at line 167 of file RootInputFileSequence.cc.
References cms::cuda::assert(), fileIter_, newFWLiteAna::found, indexesIntoFiles_, initFile(), rootFile(), setAtFileSequenceNumber(), and skipToItemInNewFile().
Referenced by edm::RootEmbeddedFileSequence::readOneRandomWithID(), edm::RootEmbeddedFileSequence::readOneSequentialWithID(), and edm::RootEmbeddedFileSequence::readOneSpecified().
|
protected |
Definition at line 149 of file RootInputFileSequence.cc.
References cms::cuda::assert(), newFWLiteAna::found, indexesIntoFiles_, initFile_(), rootFile(), and setAtFileSequenceNumber().
Referenced by edm::RootEmbeddedFileSequence::readOneSequentialWithID(), and skipToItem().
|
protected |
Definition at line 114 of file RootInputFileSequence.cc.
References cms::cuda::assert(), fileIterBegin_, fileIterEnd_, findFileForSpecifiedID_, newFWLiteAna::found, visDQMUpload::hasher, indexesIntoFiles_, initFile_(), sistrip::SpyUtilities::range(), rootFile(), and setAtFileSequenceNumber().
|
inlineprotected |
Definition at line 93 of file RootInputFileSequence.h.
References usedFallback_.
Referenced by closeFile(), and edm::RootPrimaryFileSequence::closeFile_().
|
private |
Definition at line 99 of file RootInputFileSequence.h.
Referenced by fileCatalogItems().
|
private |
Definition at line 106 of file RootInputFileSequence.h.
Referenced by atFirstFile(), atLastFile(), fileNames(), initTheFile(), logicalFileName(), noMoreFiles(), sequenceNumberOfFile(), setAtFileSequenceNumber(), setAtFirstFile(), setAtNextFile(), setAtPreviousFile(), setNoMoreFiles(), and skipToItem().
|
private |
Definition at line 104 of file RootInputFileSequence.h.
Referenced by atFirstFile(), initTheFile(), noFiles(), numberOfFiles(), sequenceNumberOfFile(), setAtFileSequenceNumber(), setAtFirstFile(), and skipToItemInNewFile().
|
private |
Definition at line 105 of file RootInputFileSequence.h.
Referenced by atLastFile(), initTheFile(), noFiles(), noMoreFiles(), numberOfFiles(), setNoMoreFiles(), and skipToItemInNewFile().
|
private |
Definition at line 107 of file RootInputFileSequence.h.
Referenced by initTheFile().
|
private |
Definition at line 103 of file RootInputFileSequence.h.
Referenced by skipToItemInNewFile().
|
private |
Definition at line 109 of file RootInputFileSequence.h.
Referenced by indexesIntoFiles(), initTheFile(), setIndexIntoFile(), skipToItem(), and skipToItemInNewFile().
|
private |
Definition at line 100 of file RootInputFileSequence.h.
Referenced by initTheFile(), and lfn().
|
private |
Definition at line 101 of file RootInputFileSequence.h.
Referenced by initTheFile(), and lfnHash().
|
private |
Definition at line 108 of file RootInputFileSequence.h.
Referenced by initTheFile(), and rootFile().
|
private |
Definition at line 102 of file RootInputFileSequence.h.
Referenced by initTheFile(), and usedFallback().