#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 |
RootFileSharedPtr const & | rootFile () const |
RootFileSharedPtr & | 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_ |
std::unique_ptr < std::unordered_multimap < size_t, size_t > > | findFileForSpecifiedID_ |
std::vector< std::shared_ptr < IndexIntoFile > > | indexesIntoFiles_ |
std::string | lfn_ |
size_t | lfnHash_ |
RootFileSharedPtr | rootFile_ |
bool | usedFallback_ |
Definition at line 28 of file RootInputFileSequence.h.
|
protected |
Definition at line 47 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 53 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 54 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 68 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 assert(), and rootFile().
|
protected |
Definition at line 39 of file RootInputFileSequence.cc.
References catalog_, and edm::InputFileCatalog::fileCatalogItems().
Referenced by edm::RootEmbeddedFileSequence::readOneRandom().
|
inlineprotected |
Definition at line 66 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 44 of file RootInputFileSequence.cc.
References assert(), and rootFile().
|
inlineprotected |
Definition at line 72 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 48 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(), and skipToItem().
|
privatepure virtual |
Implemented in edm::RootEmbeddedFileSequence, edm::RootPrimaryFileSequence, and edm::RootSecondaryFileSequence.
Referenced by initFile(), and skipToItemInNewFile().
|
protected |
Definition at line 191 of file RootInputFileSequence.cc.
References cms::Exception::addAdditionalInfo(), cms::Exception::addContext(), cms::Exception::additionalInfo(), assert(), closeFile_(), alignCSCRings::e, relativeConstraints::empty, Exception, cms::Exception::explainSelf(), fallbackFileName(), edm::errors::FallbackFileOpenError, fileIter_, fileIterBegin_, fileIterEnd_, fileIterLastOpened_, fileName(), edm::errors::FileOpenError, indexesIntoFiles_, RPC_Client_on_RootFile::InputFile, lfn_, lfnHash_, logicalFileName(), makeRootFile(), noMoreFiles(), dbtoconf::out, dbtoconf::pfn, edm::InputFile::reportFallbackAttempt(), 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 69 of file RootInputFileSequence.h.
References lfn_.
Referenced by edm::RootPrimaryFileSequence::closeFile_().
|
inlineprotected |
Definition at line 74 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 67 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 56 of file RootInputFileSequence.h.
References fileIterBegin_, and fileIterEnd_.
Referenced by edm::RootEmbeddedFileSequence::RootEmbeddedFileSequence().
|
inlineprotected |
Definition at line 55 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 58 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 assert(), and rootFile().
void edm::RootInputFileSequence::readLuminosityBlock_ | ( | LuminosityBlockPrincipal & | lumiPrincipal | ) |
Definition at line 77 of file RootInputFileSequence.cc.
References assert(), and rootFile().
std::shared_ptr< LuminosityBlockAuxiliary > edm::RootInputFileSequence::readLuminosityBlockAuxiliary_ | ( | ) |
Definition at line 65 of file RootInputFileSequence.cc.
References assert(), and rootFile().
void edm::RootInputFileSequence::readRun_ | ( | RunPrincipal & | runPrincipal | ) |
Definition at line 71 of file RootInputFileSequence.cc.
References assert(), and rootFile().
std::shared_ptr< RunAuxiliary > edm::RootInputFileSequence::readRunAuxiliary_ | ( | ) |
Definition at line 59 of file RootInputFileSequence.cc.
References assert(), and rootFile().
|
inlineprotected |
Definition at line 77 of file RootInputFileSequence.h.
References 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 78 of file RootInputFileSequence.h.
References rootFile_.
|
inlineprotected |
Definition at line 57 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 61 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 60 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 63 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 64 of file RootInputFileSequence.h.
References fileIter_.
Referenced by edm::RootPrimaryFileSequence::previousFile().
|
protected |
Definition at line 306 of file RootInputFileSequence.cc.
References cmsHarvester::index, indexesIntoFiles_, and rootFile().
Referenced by initTheFile().
|
inlineprotected |
Definition at line 62 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 160 of file RootInputFileSequence.cc.
References 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 140 of file RootInputFileSequence.cc.
References assert(), newFWLiteAna::found, indexesIntoFiles_, initFile_(), rootFile(), and setAtFileSequenceNumber().
Referenced by edm::RootEmbeddedFileSequence::readOneSequentialWithID(), and skipToItem().
|
protected |
Definition at line 108 of file RootInputFileSequence.cc.
References assert(), fileIterBegin_, fileIterEnd_, findFileForSpecifiedID_, newFWLiteAna::found, indexesIntoFiles_, initFile_(), rootFile(), and setAtFileSequenceNumber().
|
inlineprotected |
Definition at line 75 of file RootInputFileSequence.h.
References usedFallback_.
Referenced by edm::RootPrimaryFileSequence::closeFile_().
|
private |
Definition at line 80 of file RootInputFileSequence.h.
Referenced by fileCatalogItems().
|
private |
Definition at line 87 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 85 of file RootInputFileSequence.h.
Referenced by atFirstFile(), initTheFile(), noFiles(), numberOfFiles(), sequenceNumberOfFile(), setAtFileSequenceNumber(), setAtFirstFile(), and skipToItemInNewFile().
|
private |
Definition at line 86 of file RootInputFileSequence.h.
Referenced by atLastFile(), initTheFile(), noFiles(), noMoreFiles(), numberOfFiles(), setNoMoreFiles(), and skipToItemInNewFile().
|
private |
Definition at line 88 of file RootInputFileSequence.h.
Referenced by initTheFile().
|
private |
Definition at line 84 of file RootInputFileSequence.h.
Referenced by skipToItemInNewFile().
|
private |
Definition at line 90 of file RootInputFileSequence.h.
Referenced by indexesIntoFiles(), initTheFile(), setIndexIntoFile(), skipToItem(), and skipToItemInNewFile().
|
private |
Definition at line 81 of file RootInputFileSequence.h.
Referenced by initTheFile(), and lfn().
|
private |
Definition at line 82 of file RootInputFileSequence.h.
Referenced by initTheFile(), and lfnHash().
|
private |
Definition at line 89 of file RootInputFileSequence.h.
Referenced by initTheFile(), and rootFile().
|
private |
Definition at line 83 of file RootInputFileSequence.h.
Referenced by initTheFile(), and usedFallback().