#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::string const & | fallbackFileName () const |
std::vector< FileCatalogItem > const & | fileCatalogItems () const |
std::string const & | fileName () 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 29 of file RootInputFileSequence.h.
|
protected |
Definition at line 48 of file RootInputFileSequence.h.
|
explicit |
Definition at line 22 of file RootInputFileSequence.cc.
|
virtual |
Definition at line 55 of file RootInputFileSequence.cc.
|
delete |
|
inlineprotected |
Definition at line 54 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 55 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 102 of file RootInputFileSequence.cc.
References rootFile().
|
inlineprotected |
Definition at line 69 of file RootInputFileSequence.h.
References fileIter_.
Referenced by initTheFile().
std::shared_ptr< BranchIDListHelper const > edm::RootInputFileSequence::fileBranchIDListHelper | ( | ) | const |
Definition at line 50 of file RootInputFileSequence.cc.
References rootFile().
|
protected |
Definition at line 39 of file RootInputFileSequence.cc.
References catalog_, and edm::InputFileCatalog::fileCatalogItems().
Referenced by lfn(), and edm::RootEmbeddedFileSequence::readOneRandom().
|
inlineprotected |
Definition at line 67 of file RootInputFileSequence.h.
References fileIter_.
Referenced by initTheFile(), edm::RootSecondaryFileSequence::makeRootFile(), edm::RootEmbeddedFileSequence::makeRootFile(), edm::RootPrimaryFileSequence::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 44 of file RootInputFileSequence.cc.
References rootFile().
|
inlineprotected |
Definition at line 73 of file RootInputFileSequence.h.
References diffTreeTool::index, indexesIntoFiles_, and setIndexIntoFile().
Referenced by edm::RootPrimaryFileSequence::goToEvent(), edm::RootSecondaryFileSequence::makeRootFile(), edm::RootEmbeddedFileSequence::makeRootFile(), and edm::RootPrimaryFileSequence::makeRootFile().
|
inlineprotected |
Definition at line 49 of file RootInputFileSequence.h.
References initFile_(), initTheFile(), input, patRefSel_inputModule_cfi::skipBadFiles, and skipToItemInNewFile().
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::RootPrimaryFileSequence, edm::RootEmbeddedFileSequence, and edm::RootSecondaryFileSequence.
Referenced by initFile(), and skipToItemInNewFile().
|
protected |
Definition at line 189 of file RootInputFileSequence.cc.
References cms::Exception::addAdditionalInfo(), cms::Exception::addContext(), cms::Exception::additionalInfo(), closeFile_(), MillePedeFileConverter_cfg::e, relativeConstraints::empty, Exception, cms::Exception::explainSelf(), fallbackFileName(), edm::errors::FallbackFileOpenError, fileIter_, fileIterBegin_, fileIterEnd_, fileIterLastOpened_, fileName(), edm::errors::FileOpenError, indexesIntoFiles_, ElectronMcFakePostValidator_cfi::InputFile, lfn_, lfnHash_, logicalFileName(), makeRootFile(), dataset::name, noMoreFiles(), MillePedeFileConverter_cfg::out, edm::InputSource::postEventReadFromSourceSignal_, edm::InputSource::preEventReadFromSourceSignal_, edm::InputFile::reportFallbackAttempt(), edm::InputFile::reportSkippedFile(), rootFile_, alignCSCRings::s, setIndexIntoFile(), AlCaHLTBitMon_QueryRunRegistry::string, and usedFallback_.
Referenced by initFile(), edm::RootSecondaryFileSequence::initFile_(), edm::RootEmbeddedFileSequence::initFile_(), and edm::RootPrimaryFileSequence::initFile_().
|
inlineprotected |
Definition at line 70 of file RootInputFileSequence.h.
References fileCatalogItems(), and lfn_.
Referenced by edm::RootPrimaryFileSequence::closeFile_().
|
inlineprotected |
Definition at line 75 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 68 of file RootInputFileSequence.h.
References fileIter_.
Referenced by initTheFile(), edm::RootSecondaryFileSequence::makeRootFile(), edm::RootEmbeddedFileSequence::makeRootFile(), and edm::RootPrimaryFileSequence::makeRootFile().
|
privatepure virtual |
Implemented in edm::RootPrimaryFileSequence, edm::RootEmbeddedFileSequence, and edm::RootSecondaryFileSequence.
Referenced by initTheFile().
|
inlineprotected |
Definition at line 57 of file RootInputFileSequence.h.
References fileIterBegin_, and fileIterEnd_.
Referenced by edm::RootEmbeddedFileSequence::RootEmbeddedFileSequence().
|
inlineprotected |
Definition at line 56 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 59 of file RootInputFileSequence.h.
References fileIterBegin_, and fileIterEnd_.
Referenced by edm::RootEmbeddedFileSequence::RootEmbeddedFileSequence().
|
delete |
void edm::RootInputFileSequence::readEvent | ( | EventPrincipal & | cache | ) |
Definition at line 96 of file RootInputFileSequence.cc.
References rootFile().
void edm::RootInputFileSequence::readLuminosityBlock_ | ( | LuminosityBlockPrincipal & | lumiPrincipal | ) |
Definition at line 77 of file RootInputFileSequence.cc.
References rootFile().
std::shared_ptr< LuminosityBlockAuxiliary > edm::RootInputFileSequence::readLuminosityBlockAuxiliary_ | ( | ) |
Definition at line 65 of file RootInputFileSequence.cc.
References rootFile().
void edm::RootInputFileSequence::readRun_ | ( | RunPrincipal & | runPrincipal | ) |
Definition at line 71 of file RootInputFileSequence.cc.
References rootFile().
std::shared_ptr< RunAuxiliary > edm::RootInputFileSequence::readRunAuxiliary_ | ( | ) |
Definition at line 59 of file RootInputFileSequence.cc.
References rootFile().
|
inlineprotected |
Definition at line 78 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 79 of file RootInputFileSequence.h.
References edm::get_underlying_safe(), and rootFile_.
|
inlineprotected |
Definition at line 58 of file RootInputFileSequence.h.
References fileIter_, and fileIterBegin_.
Referenced by edm::RootPrimaryFileSequence::goToEvent(), edm::RootSecondaryFileSequence::makeRootFile(), edm::RootEmbeddedFileSequence::makeRootFile(), edm::RootPrimaryFileSequence::makeRootFile(), and edm::RootEmbeddedFileSequence::readOneRandom().
|
inlineprotected |
Definition at line 62 of file RootInputFileSequence.h.
References fileIter_, fileIterBegin_, and PFRecoTauDiscriminationByIsolation_cfi::offset.
Referenced by edm::RootPrimaryFileSequence::goToEvent(), edm::RootEmbeddedFileSequence::readOneRandom(), edm::RootEmbeddedFileSequence::RootEmbeddedFileSequence(), skipToItem(), and skipToItemInNewFile().
|
inlineprotected |
Definition at line 61 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 64 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 65 of file RootInputFileSequence.h.
References fileIter_.
Referenced by edm::RootPrimaryFileSequence::previousFile().
|
protected |
Definition at line 311 of file RootInputFileSequence.cc.
References diffTreeTool::index, indexesIntoFiles_, and rootFile().
Referenced by indexesIntoFiles(), and initTheFile().
|
inlineprotected |
Definition at line 63 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 159 of file RootInputFileSequence.cc.
References fileIter_, runEdmFileComparison::found, indexesIntoFiles_, initFile(), rootFile(), setAtFileSequenceNumber(), skipToItemInNewFile(), and mitigatedMETSequence_cff::U.
Referenced by edm::RootEmbeddedFileSequence::readOneRandomWithID(), edm::RootEmbeddedFileSequence::readOneSequentialWithID(), and edm::RootEmbeddedFileSequence::readOneSpecified().
|
protected |
Definition at line 140 of file RootInputFileSequence.cc.
References runEdmFileComparison::found, indexesIntoFiles_, initFile_(), rootFile(), and setAtFileSequenceNumber().
Referenced by initFile(), edm::RootEmbeddedFileSequence::readOneSequentialWithID(), and skipToItem().
|
protected |
Definition at line 108 of file RootInputFileSequence.cc.
References fileIterBegin_, fileIterEnd_, findFileForSpecifiedID_, runEdmFileComparison::found, indexesIntoFiles_, initFile_(), rootFile(), setAtFileSequenceNumber(), and mitigatedMETSequence_cff::U.
|
inlineprotected |
Definition at line 76 of file RootInputFileSequence.h.
References usedFallback_.
Referenced by edm::RootPrimaryFileSequence::closeFile_().
|
private |
Definition at line 81 of file RootInputFileSequence.h.
Referenced by fileCatalogItems().
|
private |
Definition at line 88 of file RootInputFileSequence.h.
Referenced by atFirstFile(), atLastFile(), fallbackFileName(), fileName(), initTheFile(), logicalFileName(), noMoreFiles(), sequenceNumberOfFile(), setAtFileSequenceNumber(), setAtFirstFile(), setAtNextFile(), setAtPreviousFile(), setNoMoreFiles(), and skipToItem().
|
private |
Definition at line 86 of file RootInputFileSequence.h.
Referenced by atFirstFile(), initTheFile(), noFiles(), numberOfFiles(), sequenceNumberOfFile(), setAtFileSequenceNumber(), setAtFirstFile(), and skipToItemInNewFile().
|
private |
Definition at line 87 of file RootInputFileSequence.h.
Referenced by atLastFile(), initTheFile(), noFiles(), noMoreFiles(), numberOfFiles(), setNoMoreFiles(), and skipToItemInNewFile().
|
private |
Definition at line 89 of file RootInputFileSequence.h.
Referenced by initTheFile().
|
private |
Definition at line 85 of file RootInputFileSequence.h.
Referenced by skipToItemInNewFile().
|
private |
Definition at line 91 of file RootInputFileSequence.h.
Referenced by indexesIntoFiles(), initTheFile(), setIndexIntoFile(), skipToItem(), and skipToItemInNewFile().
|
private |
Definition at line 82 of file RootInputFileSequence.h.
Referenced by initTheFile(), and lfn().
|
private |
Definition at line 83 of file RootInputFileSequence.h.
Referenced by initTheFile(), and lfnHash().
|
private |
Definition at line 90 of file RootInputFileSequence.h.
Referenced by initTheFile(), and rootFile().
|
private |
Definition at line 84 of file RootInputFileSequence.h.
Referenced by initTheFile(), and usedFallback().