#include <RootPrimaryFileSequence.h>
Static Public Member Functions | |
static void | fillDescription (ParameterSetDescription &desc) |
Private Member Functions | |
void | closeFile_ () override |
std::shared_ptr< DuplicateChecker const > | duplicateChecker () const |
std::shared_ptr< DuplicateChecker > & | duplicateChecker () |
std::shared_ptr< EventSkipperByID const > | eventSkipperByID () const |
std::shared_ptr< EventSkipperByID > & | eventSkipperByID () |
void | initFile_ (bool skipBadFiles) override |
RootFileSharedPtr | makeRootFile (std::shared_ptr< InputFile > filePtr) override |
bool | nextFile () |
bool | previousFile () |
int | remainingEvents () const |
int | remainingLuminosityBlocks () const |
void | rewindFile () |
Private Attributes | |
BranchDescription::MatchMode | branchesMustMatch_ |
edm::propagate_const< std::shared_ptr< DuplicateChecker > > | duplicateChecker_ |
bool | enablePrefetching_ |
bool | enforceGUIDInFileName_ |
edm::propagate_const< std::shared_ptr< EventSkipperByID > > | eventSkipperByID_ |
bool | firstFile_ |
int | initialNumberOfEventsToSkip_ |
PoolSource & | input_ |
bool | noEventSort_ |
std::vector< ProcessHistoryID > | orderedProcessHistoryIDs_ |
unsigned int | treeCacheSize_ |
bool | usingGoToEvent_ |
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 34 of file RootPrimaryFileSequence.h.
|
explicit |
Definition at line 21 of file RootPrimaryFileSequence.cc.
References branchesMustMatch_, enablePrefetching_, edm::RootInputFileSequence::fileName(), StorageFactory::get(), edm::ParameterSet::getUntrackedParameter(), edm::RootInputFileSequence::initFile(), initialNumberOfEventsToSkip_, input_, edm::Service< T >::isAvailable(), edm::RootInputFileSequence::noMoreFiles(), edm::InputSource::productRegistryUpdate(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtFirstFile(), edm::RootInputFileSequence::setAtNextFile(), edm::PoolSource::skipBadFiles(), skipEvents(), StorageFactory::stagein(), edm::BranchDescription::Strict, AlCaHLTBitMon_QueryRunRegistry::string, treeCacheSize_, mitigatedMETSequence_cff::U, and edm::ProductRegistry::updateFromInput().
|
override |
Definition at line 69 of file RootPrimaryFileSequence.cc.
|
delete |
|
overrideprivatevirtual |
Implements edm::RootInputFileSequence.
Definition at line 91 of file RootPrimaryFileSequence.cc.
References duplicateChecker_, input_, edm::RootInputFileSequence::lfn(), edm::RootInputFileSequence::rootFile(), and edm::RootInputFileSequence::usedFallback().
|
inlineprivate |
Definition at line 70 of file RootPrimaryFileSequence.h.
References duplicateChecker_, and edm::get_underlying_safe().
Referenced by makeRootFile().
|
inlineprivate |
Definition at line 71 of file RootPrimaryFileSequence.h.
References duplicateChecker_, and edm::get_underlying_safe().
void edm::RootPrimaryFileSequence::endJob | ( | void | ) |
Definition at line 71 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::closeFile().
|
inlineprivate |
Definition at line 68 of file RootPrimaryFileSequence.h.
References eventSkipperByID_, and edm::get_underlying_safe().
Referenced by makeRootFile().
|
inlineprivate |
Definition at line 69 of file RootPrimaryFileSequence.h.
References eventSkipperByID_, and edm::get_underlying_safe().
|
static |
Definition at line 309 of file RootPrimaryFileSequence.cc.
References edm::ParameterSetDescription::addUntracked(), edm::roottree::defaultCacheSize, edm::EventSkipperByID::fillDescription(), edm::DuplicateChecker::fillDescription(), AlCaHLTBitMon_QueryRunRegistry::string, and mitigatedMETSequence_cff::U.
Referenced by edm::PoolSource::fillDescriptions().
ProcessingController::ForwardState edm::RootPrimaryFileSequence::forwardState | ( | ) | const |
Definition at line 336 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::atLastFile(), edm::ProcessingController::kAtLastEvent, edm::ProcessingController::kEventsAheadInFile, edm::ProcessingController::kNextFileExists, edm::ProcessingController::kUnknownForward, edm::RootInputFileSequence::noMoreFiles(), and edm::RootInputFileSequence::rootFile().
InputSource::ItemType edm::RootPrimaryFileSequence::getNextItemType | ( | RunNumber_t & | run, |
LuminosityBlockNumber_t & | lumi, | ||
EventNumber_t & | event | ||
) |
Definition at line 186 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::atLastFile(), firstFile_, edm::InputSource::IsEvent, edm::InputSource::IsFile, edm::InputSource::IsLumi, edm::InputSource::IsRun, edm::InputSource::IsStop, edm::IndexIntoFile::kEnd, edm::IndexIntoFile::kEvent, edm::IndexIntoFile::kLumi, edm::IndexIntoFile::kRun, edm::RootInputFileSequence::noMoreFiles(), and edm::RootInputFileSequence::rootFile().
bool edm::RootPrimaryFileSequence::goToEvent | ( | EventID const & | eventID | ) |
Definition at line 252 of file RootPrimaryFileSequence.cc.
References begin, end, edm::EventID::event(), runEdmFileComparison::found, edm::RootInputFileSequence::indexesIntoFiles(), edm::RootInputFileSequence::initFile(), edm::EventID::luminosityBlock(), edm::RootInputFileSequence::rootFile(), edm::EventID::run(), edm::RootInputFileSequence::sequenceNumberOfFile(), edm::RootInputFileSequence::setAtFileSequenceNumber(), findQualityFiles::size, and usingGoToEvent_.
|
overrideprivatevirtual |
Implements edm::RootInputFileSequence.
Definition at line 102 of file RootPrimaryFileSequence.cc.
References duplicateChecker_, edm::RootInputFileSequence::initTheFile(), input_, edm::Primary, and usingGoToEvent_.
|
overrideprivatevirtual |
Implements edm::RootInputFileSequence.
Definition at line 111 of file RootPrimaryFileSequence.cc.
References edm::InputSource::branchIDListHelper(), edm::PoolSource::bypassVersionCheck(), edm::PoolSource::dropDescendants(), duplicateChecker(), enablePrefetching_, enforceGUIDInFileName_, eventSkipperByID(), edm::RootInputFileSequence::fileName(), edm::RootInputFileSequence::indexesIntoFiles(), initialNumberOfEventsToSkip_, input_, edm::PoolSource::labelRawDataLikeMC(), edm::RootInputFileSequence::logicalFileName(), noEventSort_, edm::PoolSource::nStreams(), orderedProcessHistoryIDs_, edm::Primary, edm::InputSource::processConfiguration(), edm::InputSource::processHistoryRegistryForUpdate(), edm::InputSource::processingMode(), edm::PoolSource::productSelectorRules(), remainingEvents(), remainingLuminosityBlocks(), edm::PoolSource::runHelper(), edm::RootInputFileSequence::sequenceNumberOfFile(), edm::InputSource::thinnedAssociationsHelper(), treeCacheSize_, edm::PoolSource::treeMaxVirtualSize(), and usingGoToEvent_.
|
private |
Definition at line 145 of file RootPrimaryFileSequence.cc.
References branchesMustMatch_, Exception, edm::RootInputFileSequence::fileName(), edm::RootInputFileSequence::initFile(), input_, edm::ProductRegistry::merge(), edm::errors::MismatchedInputFiles, edm::RootInputFileSequence::noMoreFiles(), edm::InputSource::productRegistryUpdate(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtNextFile(), edm::PoolSource::skipBadFiles(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by readFile_(), and skipEvents().
|
delete |
|
private |
Definition at line 165 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::atFirstFile(), branchesMustMatch_, Exception, edm::RootInputFileSequence::fileName(), edm::RootInputFileSequence::initFile(), input_, edm::ProductRegistry::merge(), edm::errors::MismatchedInputFiles, edm::InputSource::productRegistryUpdate(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtPreviousFile(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by skipEvents().
std::unique_ptr< FileBlock > edm::RootPrimaryFileSequence::readFile_ | ( | ) |
Definition at line 73 of file RootPrimaryFileSequence.cc.
References firstFile_, edm::RootInputFileSequence::initFile(), input_, nextFile(), edm::RootInputFileSequence::rootFile(), and edm::PoolSource::skipBadFiles().
|
private |
Definition at line 305 of file RootPrimaryFileSequence.cc.
References input_, and edm::InputSource::remainingEvents().
Referenced by makeRootFile().
|
private |
Definition at line 307 of file RootPrimaryFileSequence.cc.
References input_, and edm::InputSource::remainingLuminosityBlocks().
Referenced by makeRootFile().
ProcessingController::ReverseState edm::RootPrimaryFileSequence::reverseState | ( | ) | const |
Definition at line 350 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::atFirstFile(), edm::ProcessingController::kAtFirstEvent, edm::ProcessingController::kEventsBackwardsInFile, edm::ProcessingController::kPreviousFileExists, edm::ProcessingController::kUnknownReverse, and edm::RootInputFileSequence::rootFile().
void edm::RootPrimaryFileSequence::rewind_ | ( | ) |
Definition at line 213 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::atFirstFile(), edm::RootInputFileSequence::closeFile(), firstFile_, edm::RootInputFileSequence::initFile(), initialNumberOfEventsToSkip_, rewindFile(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtFirstFile(), and skipEvents().
|
private |
Definition at line 231 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::rootFile().
Referenced by rewind_().
bool edm::RootPrimaryFileSequence::skipEvents | ( | int | offset | ) |
Definition at line 237 of file RootPrimaryFileSequence.cc.
References nextFile(), previousFile(), edm::RootInputFileSequence::rootFile(), and edm::RootInputFileSequence::setNoMoreFiles().
Referenced by rewind_(), and RootPrimaryFileSequence().
|
private |
Definition at line 65 of file RootPrimaryFileSequence.h.
Referenced by nextFile(), previousFile(), and RootPrimaryFileSequence().
|
private |
Definition at line 77 of file RootPrimaryFileSequence.h.
Referenced by closeFile_(), duplicateChecker(), and initFile_().
|
private |
Definition at line 79 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile(), and RootPrimaryFileSequence().
|
private |
Definition at line 80 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 73 of file RootPrimaryFileSequence.h.
Referenced by eventSkipperByID().
|
private |
Definition at line 64 of file RootPrimaryFileSequence.h.
Referenced by getNextItemType(), readFile_(), and rewind_().
|
private |
Definition at line 74 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile(), rewind_(), and RootPrimaryFileSequence().
|
private |
Definition at line 63 of file RootPrimaryFileSequence.h.
Referenced by closeFile_(), initFile_(), makeRootFile(), nextFile(), previousFile(), readFile_(), remainingEvents(), remainingLuminosityBlocks(), and RootPrimaryFileSequence().
|
private |
Definition at line 75 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 66 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 76 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile(), and RootPrimaryFileSequence().
|
private |
Definition at line 78 of file RootPrimaryFileSequence.h.
Referenced by goToEvent(), initFile_(), and makeRootFile().