#include <RootEmbeddedFileSequence.h>
Public Member Functions | |
void | endJob () |
RootEmbeddedFileSequence & | operator= (RootEmbeddedFileSequence const &)=delete |
bool | readOneEvent (EventPrincipal &cache, size_t &fileNameHash, CLHEP::HepRandomEngine *, EventID const *id, bool recycleFiles) |
bool | readOneRandom (EventPrincipal &cache, size_t &fileNameHash, CLHEP::HepRandomEngine *, EventID const *, bool) |
bool | readOneRandomWithID (EventPrincipal &cache, size_t &fileNameHash, CLHEP::HepRandomEngine *, EventID const *id, bool) |
bool | readOneSequential (EventPrincipal &cache, size_t &fileNameHash, CLHEP::HepRandomEngine *, EventID const *, bool recycleFiles) |
bool | readOneSequentialWithID (EventPrincipal &cache, size_t &fileNameHash, CLHEP::HepRandomEngine *, EventID const *id, bool) |
void | readOneSpecified (EventPrincipal &cache, size_t &fileNameHash, SecondaryEventIDAndFileInfo const &id) |
RootEmbeddedFileSequence (ParameterSet const &pset, EmbeddedRootSource &input, InputFileCatalog const &catalog) | |
RootEmbeddedFileSequence (RootEmbeddedFileSequence const &)=delete | |
void | skipEntries (unsigned int offset) |
~RootEmbeddedFileSequence () override | |
Public Member Functions inherited from edm::RootInputFileSequence | |
void | closeFile () |
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 () |
Static Public Member Functions | |
static void | fillDescription (ParameterSetDescription &desc) |
Private Member Functions | |
void | closeFile_ () override |
void | initFile_ (bool skipBadFiles) override |
RootFileSharedPtr | makeRootFile (std::shared_ptr< InputFile > filePtr) override |
Private Attributes | |
bool | enablePrefetching_ |
bool | enforceGUIDInFileName_ |
int | eventsRemainingInFile_ |
bool(RootEmbeddedFileSequence::* | fptr_ )(EventPrincipal &, size_t &, CLHEP::HepRandomEngine *, EventID const *, bool) |
int | initialNumberOfEventsToSkip_ |
EmbeddedRootSource & | input_ |
std::vector< ProcessHistoryID > | orderedProcessHistoryIDs_ |
bool | sameLumiBlock_ |
bool | sequential_ |
unsigned int | treeCacheSize_ |
Additional Inherited Members | |
Protected Types inherited from edm::RootInputFileSequence | |
typedef std::shared_ptr< RootFile > | RootFileSharedPtr |
Protected Member Functions inherited from edm::RootInputFileSequence | |
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 |
Definition at line 32 of file RootEmbeddedFileSequence.h.
|
explicit |
Definition at line 26 of file RootEmbeddedFileSequence.cc.
References edm::RootInputFileSequence::atFirstFile(), KineDebug3::count(), SurveyInfoScenario_cff::distribution, enablePrefetching_, Exception, f, fptr_, edm::RootInputFileSequence::initFile(), initialNumberOfEventsToSkip_, input_, edm::IndexIntoFile::invalidEntry, edm::Service< T >::isAvailable(), edm::RootInputFileSequence::noFiles(), edm::errors::NoSecondaryFiles, edm::RootInputFileSequence::numberOfFiles(), PFRecoTauDiscriminationByIsolation_cfi::offset, edm::VectorInputSource::productRegistryUpdate(), readOneRandom(), readOneRandomWithID(), readOneSequential(), readOneSequentialWithID(), edm::RootInputFileSequence::rootFile(), sameLumiBlock_, SurveyInfoScenario_cff::seed, sequential_, edm::RootInputFileSequence::setAtFileSequenceNumber(), edm::RootInputFileSequence::setAtFirstFile(), edm::EmbeddedRootSource::skipBadFiles(), skipEntries(), treeCacheSize_, mitigatedMETSequence_cff::U, and edm::ProductRegistry::updateFromInput().
|
override |
Definition at line 109 of file RootEmbeddedFileSequence.cc.
|
delete |
|
overrideprivatevirtual |
Implements edm::RootInputFileSequence.
Definition at line 113 of file RootEmbeddedFileSequence.cc.
References edm::RootInputFileSequence::rootFile().
void edm::RootEmbeddedFileSequence::endJob | ( | void | ) |
Definition at line 111 of file RootEmbeddedFileSequence.cc.
References edm::RootInputFileSequence::closeFile().
|
static |
Definition at line 327 of file RootEmbeddedFileSequence.cc.
References edm::ParameterSetDescription::addUntracked(), edm::roottree::defaultCacheSize, and mitigatedMETSequence_cff::U.
Referenced by edm::EmbeddedRootSource::fillDescriptions().
|
overrideprivatevirtual |
Implements edm::RootInputFileSequence.
Definition at line 120 of file RootEmbeddedFileSequence.cc.
References edm::RootInputFileSequence::initTheFile(), and edm::SecondarySource.
|
overrideprivatevirtual |
Implements edm::RootInputFileSequence.
Definition at line 124 of file RootEmbeddedFileSequence.cc.
References edm::EmbeddedRootSource::bypassVersionCheck(), enablePrefetching_, enforceGUIDInFileName_, edm::RootInputFileSequence::fileName(), edm::RootInputFileSequence::indexesIntoFiles(), input_, edm::RootInputFileSequence::logicalFileName(), edm::EmbeddedRootSource::nStreams(), orderedProcessHistoryIDs_, edm::VectorInputSource::processHistoryRegistryForUpdate(), edm::EmbeddedRootSource::productSelectorRules(), edm::EmbeddedRootSource::runHelper(), edm::SecondarySource, edm::RootInputFileSequence::sequenceNumberOfFile(), treeCacheSize_, and edm::EmbeddedRootSource::treeMaxVirtualSize().
|
delete |
bool edm::RootEmbeddedFileSequence::readOneEvent | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
CLHEP::HepRandomEngine * | engine, | ||
EventID const * | id, | ||
bool | recycleFiles | ||
) |
Definition at line 317 of file RootEmbeddedFileSequence.cc.
References utilities::cache(), fptr_, triggerObjects_cff::id, sameLumiBlock_, and sequential_.
bool edm::RootEmbeddedFileSequence::readOneRandom | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
CLHEP::HepRandomEngine * | engine, | ||
EventID const * | , | ||
bool | |||
) |
Definition at line 243 of file RootEmbeddedFileSequence.cc.
References eventsRemainingInFile_, Exception, edm::RootInputFileSequence::fileCatalogItems(), edm::RootInputFileSequence::fileName(), runEdmFileComparison::found, edm::RootInputFileSequence::initFile(), edm::RootInputFileSequence::lfnHash(), edm::errors::NotFound, edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::sequenceNumberOfFile(), edm::RootInputFileSequence::setAtFileSequenceNumber(), and findQualityFiles::size.
Referenced by RootEmbeddedFileSequence().
bool edm::RootEmbeddedFileSequence::readOneRandomWithID | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
CLHEP::HepRandomEngine * | engine, | ||
EventID const * | id, | ||
bool | recycleFiles | ||
) |
Definition at line 275 of file RootEmbeddedFileSequence.cc.
References runEdmFileComparison::found, mps_fire::i, edm::RootInputFileSequence::lfnHash(), csvLumiCalc::lumi, edm::RootInputFileSequence::noMoreFiles(), edm::RootInputFileSequence::rootFile(), writedatasetfile::run, and edm::RootInputFileSequence::skipToItem().
Referenced by RootEmbeddedFileSequence().
bool edm::RootEmbeddedFileSequence::readOneSequential | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
CLHEP::HepRandomEngine * | , | ||
EventID const * | , | ||
bool | recycleFiles | ||
) |
Definition at line 161 of file RootEmbeddedFileSequence.cc.
References runEdmFileComparison::found, edm::RootInputFileSequence::initFile(), edm::IndexIntoFile::invalidEntry, edm::RootInputFileSequence::lfnHash(), edm::RootInputFileSequence::noMoreFiles(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtFirstFile(), and edm::RootInputFileSequence::setAtNextFile().
Referenced by RootEmbeddedFileSequence().
bool edm::RootEmbeddedFileSequence::readOneSequentialWithID | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
CLHEP::HepRandomEngine * | , | ||
EventID const * | id, | ||
bool | recycleFiles | ||
) |
Definition at line 184 of file RootEmbeddedFileSequence.cc.
References runEdmFileComparison::found, initialNumberOfEventsToSkip_, edm::RootInputFileSequence::lfnHash(), csvLumiCalc::lumi, edm::RootInputFileSequence::noMoreFiles(), PFRecoTauDiscriminationByIsolation_cfi::offset, edm::RootInputFileSequence::rootFile(), writedatasetfile::run, edm::RootInputFileSequence::skipToItem(), and edm::RootInputFileSequence::skipToItemInNewFile().
Referenced by RootEmbeddedFileSequence().
void edm::RootEmbeddedFileSequence::readOneSpecified | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
SecondaryEventIDAndFileInfo const & | id | ||
) |
Definition at line 224 of file RootEmbeddedFileSequence.cc.
References event(), edm::SecondaryEventIDAndFileInfo::eventID(), Exception, edm::SecondaryEventIDAndFileInfo::fileNameHash(), runEdmFileComparison::found, edm::RootInputFileSequence::lfnHash(), edm::errors::NotFound, edm::RootInputFileSequence::rootFile(), writedatasetfile::run, edm::RootInputFileSequence::skipToItem(), and mitigatedMETSequence_cff::U.
void edm::RootEmbeddedFileSequence::skipEntries | ( | unsigned int | offset | ) |
Definition at line 146 of file RootEmbeddedFileSequence.cc.
References edm::RootInputFileSequence::initFile(), edm::IndexIntoFile::invalidEntry, edm::RootInputFileSequence::noMoreFiles(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtFirstFile(), and edm::RootInputFileSequence::setAtNextFile().
Referenced by RootEmbeddedFileSequence().
|
private |
Definition at line 72 of file RootEmbeddedFileSequence.h.
Referenced by makeRootFile(), and RootEmbeddedFileSequence().
|
private |
Definition at line 73 of file RootEmbeddedFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 69 of file RootEmbeddedFileSequence.h.
Referenced by readOneRandom().
|
private |
Definition at line 68 of file RootEmbeddedFileSequence.h.
Referenced by readOneEvent(), and RootEmbeddedFileSequence().
|
private |
Definition at line 70 of file RootEmbeddedFileSequence.h.
Referenced by readOneSequentialWithID(), and RootEmbeddedFileSequence().
|
private |
Definition at line 62 of file RootEmbeddedFileSequence.h.
Referenced by makeRootFile(), and RootEmbeddedFileSequence().
|
private |
Definition at line 64 of file RootEmbeddedFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 67 of file RootEmbeddedFileSequence.h.
Referenced by readOneEvent(), and RootEmbeddedFileSequence().
|
private |
Definition at line 66 of file RootEmbeddedFileSequence.h.
Referenced by readOneEvent(), and RootEmbeddedFileSequence().
|
private |
Definition at line 71 of file RootEmbeddedFileSequence.h.
Referenced by makeRootFile(), and RootEmbeddedFileSequence().