#include <RootEmbeddedFileSequence.h>
Public Types | |
typedef std::shared_ptr< RootFile > | RootFileSharedPtr |
Public Member Functions | |
virtual void | closeFile_ () override |
void | dropUnwantedBranches_ (std::vector< std::string > const &wantedBranches) |
void | endJob () |
RootEmbeddedFileSequence & | operator= (RootEmbeddedFileSequence const &)=delete |
bool | readOneEvent (EventPrincipal &cache, size_t &fileNameHash, CLHEP::HepRandomEngine *, EventID const *id) |
bool | readOneRandom (EventPrincipal &cache, size_t &fileNameHash, CLHEP::HepRandomEngine *, EventID const *) |
bool | readOneRandomWithID (EventPrincipal &cache, size_t &fileNameHash, CLHEP::HepRandomEngine *, EventID const *id) |
bool | readOneSequential (EventPrincipal &cache, size_t &fileNameHash, CLHEP::HepRandomEngine *, EventID const *) |
bool | readOneSequentialWithID (EventPrincipal &cache, size_t &fileNameHash, CLHEP::HepRandomEngine *, EventID const *id) |
void | readOneSpecified (EventPrincipal &cache, size_t &fileNameHash, SecondaryEventIDAndFileInfo const &id) |
RootEmbeddedFileSequence (ParameterSet const &pset, EmbeddedRootSource &input, InputFileCatalog const &catalog, unsigned int nStreams) | |
RootEmbeddedFileSequence (RootEmbeddedFileSequence const &)=delete | |
void | skipEntries (unsigned int offset) |
virtual | ~RootEmbeddedFileSequence () |
Public Member Functions inherited from edm::RootInputFileSequence | |
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 | |
virtual void | initFile_ (bool skipBadFiles) override |
virtual RootFileSharedPtr | makeRootFile (std::shared_ptr< InputFile > filePtr) override |
Private Attributes | |
bool | bypassVersionCheck_ |
bool | enablePrefetching_ |
int | eventsRemainingInFile_ |
bool(RootEmbeddedFileSequence::* | fptr_ )(EventPrincipal &, size_t &, CLHEP::HepRandomEngine *, EventID const *) |
int | initialNumberOfEventsToSkip_ |
EmbeddedRootSource & | input_ |
unsigned int | nStreams_ |
std::vector< ProcessHistoryID > | orderedProcessHistoryIDs_ |
ProductSelectorRules | productSelectorRules_ |
bool | sameLumiBlock_ |
bool | sequential_ |
bool | skipBadFiles_ |
int const | treeMaxVirtualSize_ |
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 |
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 |
Definition at line 33 of file RootEmbeddedFileSequence.h.
typedef std::shared_ptr<RootFile> edm::RootEmbeddedFileSequence::RootFileSharedPtr |
Definition at line 44 of file RootEmbeddedFileSequence.h.
|
explicit |
Definition at line 26 of file RootEmbeddedFileSequence.cc.
References assert(), edm::RootInputFileSequence::atFirstFile(), edm::errors::Configuration, prof2calltree::count, enablePrefetching_, Exception, f, fptr_, edm::RootInputFileSequence::initFile(), initialNumberOfEventsToSkip_, input_, edm::IndexIntoFile::invalidEntry, edm::Service< T >::isAvailable(), edm::RootInputFileSequence::noFiles(), edm::RootInputFileSequence::numberOfFiles(), hltrates_dqm_sourceclient-live_cfg::offset, edm::VectorInputSource::productRegistryUpdate(), readOneRandom(), readOneRandomWithID(), readOneSequential(), readOneSequentialWithID(), edm::RootInputFileSequence::rootFile(), sameLumiBlock_, fileCollector::seed, sequential_, edm::RootInputFileSequence::setAtFileSequenceNumber(), edm::RootInputFileSequence::setAtFirstFile(), skipBadFiles_, skipEntries(), and edm::ProductRegistry::updateFromInput().
|
virtual |
Definition at line 111 of file RootEmbeddedFileSequence.cc.
|
delete |
|
overridevirtual |
Implements edm::RootInputFileSequence.
Definition at line 119 of file RootEmbeddedFileSequence.cc.
References edm::RootInputFileSequence::rootFile().
Referenced by endJob().
void edm::RootEmbeddedFileSequence::dropUnwantedBranches_ | ( | std::vector< std::string > const & | wantedBranches | ) |
Definition at line 166 of file RootEmbeddedFileSequence.cc.
References edm::ParameterSet::addUntrackedParameter(), productSelectorRules_, cmsCodeRulesChecker::rules, and AlCaHLTBitMon_QueryRunRegistry::string.
void edm::RootEmbeddedFileSequence::endJob | ( | void | ) |
Definition at line 115 of file RootEmbeddedFileSequence.cc.
References closeFile_().
|
static |
Definition at line 357 of file RootEmbeddedFileSequence.cc.
References edm::ParameterSetDescription::addUntracked(), and edm::ProductSelectorRules::fillDescription().
Referenced by edm::EmbeddedRootSource::fillDescriptions().
|
overrideprivatevirtual |
Implements edm::RootInputFileSequence.
Definition at line 126 of file RootEmbeddedFileSequence.cc.
References edm::RootInputFileSequence::initTheFile(), and edm::SecondarySource.
|
overrideprivatevirtual |
Implements edm::RootInputFileSequence.
Definition at line 131 of file RootEmbeddedFileSequence.cc.
References bypassVersionCheck_, enablePrefetching_, edm::RootInputFileSequence::fileName(), edm::RootInputFileSequence::indexesIntoFiles(), input_, edm::RootInputFileSequence::logicalFileName(), nStreams_, orderedProcessHistoryIDs_, edm::VectorInputSource::processHistoryRegistryForUpdate(), productSelectorRules_, edm::InputSource::RunsLumisAndEvents, edm::SecondarySource, edm::RootInputFileSequence::sequenceNumberOfFile(), and treeMaxVirtualSize_.
|
delete |
bool edm::RootEmbeddedFileSequence::readOneEvent | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
CLHEP::HepRandomEngine * | engine, | ||
EventID const * | id | ||
) |
Definition at line 350 of file RootEmbeddedFileSequence.cc.
References assert(), fptr_, sameLumiBlock_, and sequential_.
bool edm::RootEmbeddedFileSequence::readOneRandom | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
CLHEP::HepRandomEngine * | engine, | ||
EventID const * | |||
) |
Definition at line 276 of file RootEmbeddedFileSequence.cc.
References assert(), eventsRemainingInFile_, Exception, edm::RootInputFileSequence::fileCatalogItems(), edm::RootInputFileSequence::fileName(), newFWLiteAna::found, edm::RootInputFileSequence::initFile(), edm::RootInputFileSequence::lfnHash(), edm::errors::NotFound, edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::sequenceNumberOfFile(), edm::RootInputFileSequence::setAtFileSequenceNumber(), findQualityFiles::size, and skipBadFiles_.
Referenced by RootEmbeddedFileSequence().
bool edm::RootEmbeddedFileSequence::readOneRandomWithID | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
CLHEP::HepRandomEngine * | engine, | ||
EventID const * | id | ||
) |
Definition at line 310 of file RootEmbeddedFileSequence.cc.
References assert(), newFWLiteAna::found, i, edm::RootInputFileSequence::lfnHash(), fjr2json::lumi, edm::RootInputFileSequence::noMoreFiles(), edm::RootInputFileSequence::rootFile(), DTTTrigCorrFirst::run, skipBadFiles_, and edm::RootInputFileSequence::skipToItem().
Referenced by RootEmbeddedFileSequence().
bool edm::RootEmbeddedFileSequence::readOneSequential | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
CLHEP::HepRandomEngine * | , | ||
EventID const * | |||
) |
Definition at line 195 of file RootEmbeddedFileSequence.cc.
References assert(), newFWLiteAna::found, edm::RootInputFileSequence::initFile(), edm::IndexIntoFile::invalidEntry, edm::RootInputFileSequence::lfnHash(), edm::RootInputFileSequence::noMoreFiles(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtFirstFile(), edm::RootInputFileSequence::setAtNextFile(), and skipBadFiles_.
Referenced by RootEmbeddedFileSequence().
bool edm::RootEmbeddedFileSequence::readOneSequentialWithID | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
CLHEP::HepRandomEngine * | , | ||
EventID const * | id | ||
) |
Definition at line 215 of file RootEmbeddedFileSequence.cc.
References assert(), newFWLiteAna::found, initialNumberOfEventsToSkip_, edm::RootInputFileSequence::lfnHash(), fjr2json::lumi, edm::RootInputFileSequence::noMoreFiles(), hltrates_dqm_sourceclient-live_cfg::offset, edm::RootInputFileSequence::rootFile(), DTTTrigCorrFirst::run, skipBadFiles_, 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 257 of file RootEmbeddedFileSequence.cc.
References assert(), event(), edm::SecondaryEventIDAndFileInfo::eventID(), Exception, edm::SecondaryEventIDAndFileInfo::fileNameHash(), newFWLiteAna::found, edm::RootInputFileSequence::lfnHash(), edm::errors::NotFound, edm::RootInputFileSequence::rootFile(), DTTTrigCorrFirst::run, skipBadFiles_, and edm::RootInputFileSequence::skipToItem().
void edm::RootEmbeddedFileSequence::skipEntries | ( | unsigned int | offset | ) |
Definition at line 179 of file RootEmbeddedFileSequence.cc.
References assert(), 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().
|
private |
Definition at line 75 of file RootEmbeddedFileSequence.h.
Referenced by makeRootFile(), and RootEmbeddedFileSequence().
|
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 61 of file RootEmbeddedFileSequence.h.
Referenced by makeRootFile(), and RootEmbeddedFileSequence().
|
private |
Definition at line 65 of file RootEmbeddedFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 63 of file RootEmbeddedFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 74 of file RootEmbeddedFileSequence.h.
Referenced by dropUnwantedBranches_(), and 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 readOneRandom(), readOneRandomWithID(), readOneSequential(), readOneSequentialWithID(), readOneSpecified(), and RootEmbeddedFileSequence().
|
private |
Definition at line 73 of file RootEmbeddedFileSequence.h.
Referenced by makeRootFile().