#include <RootInputFileSequence.h>
Public Member Functions | |
bool | containedInCurrentFile (RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event) const |
std::shared_ptr< BranchIDListHelper const > | fileBranchIDListHelper () const |
std::shared_ptr< ProductRegistry const > | fileProductRegistry () const |
RootInputFileSequence & | operator= (RootInputFileSequence const &)=delete |
void | readEvent (EventPrincipal &cache) |
void | readLuminosityBlock_ (LuminosityBlockPrincipal &lumiPrincipal) |
std::shared_ptr< LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary_ () |
void | readRun_ (RunPrincipal &runPrincipal) |
std::shared_ptr< RunAuxiliary > | readRunAuxiliary_ () |
RootInputFileSequence (ParameterSet const &pset, InputFileCatalog const &catalog) | |
RootInputFileSequence (RootInputFileSequence const &)=delete | |
bool | skipToItem (RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event, size_t fileNameHash=0U, bool currentFileFirst=true) |
virtual | ~RootInputFileSequence () |
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 > & | rootFile () |
std::shared_ptr< RootFile const > | rootFile () const |
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_ |
const std::vector< FileCatalogItem >::const_iterator | fileIterBegin_ |
const std::vector< FileCatalogItem >::const_iterator | 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 55 of file RootInputFileSequence.h.
|
explicit |
Definition at line 22 of file RootInputFileSequence.cc.
|
virtual |
Definition at line 49 of file RootInputFileSequence.cc.
|
delete |
|
inlineprotected |
Definition at line 66 of file RootInputFileSequence.h.
References fileIter_, and fileIterBegin_.
Referenced by edm::RootPrimaryFileSequence::previousFile(), edm::RootPrimaryFileSequence::reverseState(), edm::RootPrimaryFileSequence::rewind_(), and edm::RootEmbeddedFileSequence::RootEmbeddedFileSequence().
|
inlineprotected |
Definition at line 67 of file RootInputFileSequence.h.
References fileIter_, and fileIterEnd_.
Referenced by edm::RootPrimaryFileSequence::forwardState(), and edm::RootPrimaryFileSequence::getNextItemType().
|
privatepure virtual |
Implemented in edm::RootPrimaryFileSequence, edm::RootEmbeddedFileSequence, and edm::RootSecondaryFileSequence.
Referenced by initTheFile().
bool edm::RootInputFileSequence::containedInCurrentFile | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event | ||
) | const |
Definition at line 89 of file RootInputFileSequence.cc.
References rootFile(), and writedatasetfile::run.
std::shared_ptr< BranchIDListHelper const > edm::RootInputFileSequence::fileBranchIDListHelper | ( | ) | const |
Definition at line 44 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
|
protected |
Definition at line 35 of file RootInputFileSequence.cc.
References catalog_, and edm::InputFileCatalog::fileCatalogItems().
Referenced by edm::RootEmbeddedFileSequence::readOneRandom().
|
inlineprotected |
Definition at line 79 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 39 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
|
inlineprotected |
Definition at line 85 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 56 of file RootInputFileSequence.h.
References initFile_(), and remoteMonitoring_LED_IterMethod_cfg::skipBadFiles.
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(), and skipToItem().
|
privatepure virtual |
Implemented in edm::RootEmbeddedFileSequence, edm::RootPrimaryFileSequence, and edm::RootSecondaryFileSequence.
Referenced by initFile(), and skipToItemInNewFile().
|
protected |
Definition at line 182 of file RootInputFileSequence.cc.
References cms::Exception::addAdditionalInfo(), cms::Exception::addContext(), cms::cuda::assert(), closeFile_(), MillePedeFileConverter_cfg::e, relativeConstraints::empty, Exception, fileIter_, fileIterBegin_, fileIterEnd_, fileIterLastOpened_, fileNames(), edm::errors::FileOpenError, MainPageGenerator::fName, indexesIntoFiles_, input, lfn_, lfnHash_, logicalFileName(), makeRootFile(), Skims_PA_cff::name, GetRecoTauVFromDQM_MC_cff::next, noMoreFiles(), MillePedeFileConverter_cfg::out, edm::InputFile::reportSkippedFile(), rootFile_, alignCSCRings::s, setIndexIntoFile(), remoteMonitoring_LED_IterMethod_cfg::skipBadFiles, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edm::RootSecondaryFileSequence::initFile_(), edm::RootPrimaryFileSequence::initFile_(), and edm::RootEmbeddedFileSequence::initFile_().
|
inlineprotected |
Definition at line 82 of file RootInputFileSequence.h.
References lfn_.
Referenced by edm::RootPrimaryFileSequence::closeFile_().
|
inlineprotected |
Definition at line 87 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 81 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().
|
inlineprotected |
Definition at line 69 of file RootInputFileSequence.h.
References fileIterBegin_, and fileIterEnd_.
Referenced by edm::RootEmbeddedFileSequence::RootEmbeddedFileSequence().
|
inlineprotected |
Definition at line 68 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(), and edm::RootEmbeddedFileSequence::skipEntries().
|
inlineprotected |
Definition at line 71 of file RootInputFileSequence.h.
References fileIterBegin_, and fileIterEnd_.
Referenced by edm::RootEmbeddedFileSequence::RootEmbeddedFileSequence().
|
delete |
void edm::RootInputFileSequence::readEvent | ( | EventPrincipal & | cache | ) |
Definition at line 84 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
void edm::RootInputFileSequence::readLuminosityBlock_ | ( | LuminosityBlockPrincipal & | lumiPrincipal | ) |
Definition at line 66 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
std::shared_ptr< LuminosityBlockAuxiliary > edm::RootInputFileSequence::readLuminosityBlockAuxiliary_ | ( | ) |
Definition at line 56 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
void edm::RootInputFileSequence::readRun_ | ( | RunPrincipal & | runPrincipal | ) |
Definition at line 61 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
std::shared_ptr< RunAuxiliary > edm::RootInputFileSequence::readRunAuxiliary_ | ( | ) |
Definition at line 51 of file RootInputFileSequence.cc.
References cms::cuda::assert(), and rootFile().
|
inlineprotected |
Definition at line 91 of file RootInputFileSequence.h.
References edm::get_underlying_safe(), and rootFile_.
|
inlineprotected |
Definition at line 90 of file RootInputFileSequence.h.
References edm::get_underlying_safe(), and rootFile_.
Referenced by edm::RootSecondaryFileSequence::closeFile_(), edm::RootEmbeddedFileSequence::closeFile_(), edm::RootPrimaryFileSequence::closeFile_(), containedInCurrentFile(), fileBranchIDListHelper(), fileProductRegistry(), edm::RootPrimaryFileSequence::forwardState(), edm::RootPrimaryFileSequence::getNextItemType(), edm::RootPrimaryFileSequence::goToEvent(), edm::RootSecondaryFileSequence::initAssociationsFromSecondary(), edm::RootPrimaryFileSequence::nextFile(), edm::RootPrimaryFileSequence::previousFile(), readEvent(), edm::RootPrimaryFileSequence::readFile_(), readLuminosityBlock_(), readLuminosityBlockAuxiliary_(), edm::RootEmbeddedFileSequence::readOneRandom(), edm::RootEmbeddedFileSequence::readOneRandomWithID(), edm::RootEmbeddedFileSequence::readOneSequential(), edm::RootEmbeddedFileSequence::readOneSequentialWithID(), edm::RootEmbeddedFileSequence::readOneSpecified(), 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(), skipToItem(), and skipToItemInNewFile().
|
inlineprotected |
Definition at line 70 of file RootInputFileSequence.h.
References fileIter_, and fileIterBegin_.
Referenced by edm::RootPrimaryFileSequence::goToEvent(), edm::RootSecondaryFileSequence::makeRootFile(), edm::RootPrimaryFileSequence::makeRootFile(), edm::RootEmbeddedFileSequence::makeRootFile(), and edm::RootEmbeddedFileSequence::readOneRandom().
|
inlineprotected |
Definition at line 74 of file RootInputFileSequence.h.
References fileIter_, fileIterBegin_, and hltrates_dqm_sourceclient-live_cfg::offset.
Referenced by edm::RootPrimaryFileSequence::goToEvent(), edm::RootEmbeddedFileSequence::readOneRandom(), edm::RootEmbeddedFileSequence::RootEmbeddedFileSequence(), skipToItem(), and skipToItemInNewFile().
|
inlineprotected |
Definition at line 73 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 76 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 77 of file RootInputFileSequence.h.
References fileIter_.
Referenced by edm::RootPrimaryFileSequence::previousFile().
|
protected |
Definition at line 275 of file RootInputFileSequence.cc.
References indexesIntoFiles_, and rootFile().
Referenced by initTheFile().
|
inlineprotected |
Definition at line 75 of file RootInputFileSequence.h.
References fileIter_, and fileIterEnd_.
Referenced by edm::RootPrimaryFileSequence::skipEvents().
bool edm::RootInputFileSequence::skipToItem | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event, | ||
size_t | fileNameHash = 0U , |
||
bool | currentFileFirst = true |
||
) |
Definition at line 150 of file RootInputFileSequence.cc.
References cms::cuda::assert(), fileIter_, newFWLiteAna::found, indexesIntoFiles_, initFile(), rootFile(), writedatasetfile::run, setAtFileSequenceNumber(), skipToItemInNewFile(), and mitigatedMETSequence_cff::U.
Referenced by edm::RootEmbeddedFileSequence::readOneRandomWithID(), edm::RootEmbeddedFileSequence::readOneSequentialWithID(), and edm::RootEmbeddedFileSequence::readOneSpecified().
|
protected |
Definition at line 132 of file RootInputFileSequence.cc.
References cms::cuda::assert(), newFWLiteAna::found, indexesIntoFiles_, initFile_(), rootFile(), writedatasetfile::run, and setAtFileSequenceNumber().
Referenced by edm::RootEmbeddedFileSequence::readOneSequentialWithID(), and skipToItem().
|
protected |
Definition at line 97 of file RootInputFileSequence.cc.
References cms::cuda::assert(), fileIterBegin_, fileIterEnd_, findFileForSpecifiedID_, newFWLiteAna::found, visDQMUpload::hasher, indexesIntoFiles_, initFile_(), FastTimerService_cff::range, rootFile(), writedatasetfile::run, setAtFileSequenceNumber(), and mitigatedMETSequence_cff::U.
|
inlineprotected |
Definition at line 88 of file RootInputFileSequence.h.
References usedFallback_.
Referenced by edm::RootPrimaryFileSequence::closeFile_().
|
private |
Definition at line 94 of file RootInputFileSequence.h.
Referenced by fileCatalogItems().
|
private |
Definition at line 101 of file RootInputFileSequence.h.
Referenced by atFirstFile(), atLastFile(), fileNames(), initTheFile(), logicalFileName(), noMoreFiles(), sequenceNumberOfFile(), setAtFileSequenceNumber(), setAtFirstFile(), setAtNextFile(), setAtPreviousFile(), setNoMoreFiles(), and skipToItem().
|
private |
Definition at line 99 of file RootInputFileSequence.h.
Referenced by atFirstFile(), initTheFile(), noFiles(), numberOfFiles(), sequenceNumberOfFile(), setAtFileSequenceNumber(), setAtFirstFile(), and skipToItemInNewFile().
|
private |
Definition at line 100 of file RootInputFileSequence.h.
Referenced by atLastFile(), initTheFile(), noFiles(), noMoreFiles(), numberOfFiles(), setNoMoreFiles(), and skipToItemInNewFile().
|
private |
Definition at line 102 of file RootInputFileSequence.h.
Referenced by initTheFile().
|
private |
Definition at line 98 of file RootInputFileSequence.h.
Referenced by skipToItemInNewFile().
|
private |
Definition at line 104 of file RootInputFileSequence.h.
Referenced by indexesIntoFiles(), initTheFile(), setIndexIntoFile(), skipToItem(), and skipToItemInNewFile().
|
private |
Definition at line 95 of file RootInputFileSequence.h.
Referenced by initTheFile(), and lfn().
|
private |
Definition at line 96 of file RootInputFileSequence.h.
Referenced by initTheFile(), and lfnHash().
|
private |
Definition at line 103 of file RootInputFileSequence.h.
Referenced by initTheFile(), and rootFile().
|
private |
Definition at line 97 of file RootInputFileSequence.h.
Referenced by usedFallback().