#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_ |
edm::propagate_const< std::shared_ptr< FileBlock > > | fb_ |
bool | firstFile_ |
EventID | goToEventID_ |
bool | goToEventInNewFile_ = false |
size_t | goToFileSequenceOffset_ = 0 |
int | initialNumberOfEventsToSkip_ |
PoolSource & | input_ |
bool | noEventSort_ |
bool | noRunLumiSort_ |
std::vector< ProcessHistoryID > | orderedProcessHistoryIDs_ |
bool | skipIntoNewFile_ = false |
size_t | skipToFileSequenceNumber_ = 0 |
int | skipToOffsetInFinalFile_ = 0 |
bool | skipToStop_ = false |
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::vector< FileCatalogItem > const & | fileCatalogItems () const |
std::vector< std::string > const & | fileNames () 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 22 of file RootPrimaryFileSequence.cc.
References branchesMustMatch_, edm::errors::Configuration, enablePrefetching_, Exception, edm::RootInputFileSequence::fileNames(), edm::storage::StorageFactory::get(), edm::RootInputFileSequence::initFile(), initialNumberOfEventsToSkip_, input_, edm::Service< T >::isAvailable(), edm::RootInputFileSequence::noMoreFiles(), noRunLumiSort_, edm::PoolSource::productRegistryUpdate(), muonDTDigis_cfi::pset, remainingEvents(), remainingLuminosityBlocks(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtFirstFile(), edm::RootInputFileSequence::setAtNextFile(), edm::PoolSource::skipBadFiles(), skipEventsAtBeginning(), edm::storage::StorageFactory::stagein(), edm::BranchDescription::Strict, AlCaHLTBitMon_QueryRunRegistry::string, treeCacheSize_, mitigatedMETSequence_cff::U, and edm::ProductRegistry::updateFromInput().
|
override |
Definition at line 79 of file RootPrimaryFileSequence.cc.
|
delete |
|
overrideprivatevirtual |
Implements edm::RootInputFileSequence.
Definition at line 126 of file RootPrimaryFileSequence.cc.
References duplicateChecker_, input_, edm::RootInputFileSequence::lfn(), and edm::RootInputFileSequence::rootFile().
|
inlineprivate |
Definition at line 71 of file RootPrimaryFileSequence.h.
References duplicateChecker_, and edm::get_underlying_safe().
Referenced by makeRootFile().
|
inlineprivate |
Definition at line 72 of file RootPrimaryFileSequence.h.
References duplicateChecker_, and edm::get_underlying_safe().
void edm::RootPrimaryFileSequence::endJob | ( | void | ) |
Definition at line 81 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::closeFile().
|
inlineprivate |
Definition at line 69 of file RootPrimaryFileSequence.h.
References eventSkipperByID_, and edm::get_underlying_safe().
Referenced by makeRootFile().
|
inlineprivate |
Definition at line 70 of file RootPrimaryFileSequence.h.
References eventSkipperByID_, and edm::get_underlying_safe().
|
static |
Definition at line 413 of file RootPrimaryFileSequence.cc.
References edm::roottree::defaultCacheSize, submitPVResolutionJobs::desc, 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 444 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::ItemTypeInfo edm::RootPrimaryFileSequence::getNextItemType | ( | RunNumber_t & | run, |
LuminosityBlockNumber_t & | lumi, | ||
EventNumber_t & | event | ||
) |
Definition at line 229 of file RootPrimaryFileSequence.cc.
References cms::cuda::assert(), edm::RootInputFileSequence::atLastFile(), firstFile_, goToEventInNewFile_, 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(), edm::RootInputFileSequence::rootFile(), writedatasetfile::run, skipIntoNewFile_, and skipToStop_.
bool edm::RootPrimaryFileSequence::goToEvent | ( | EventID const & | eventID | ) |
Definition at line 356 of file RootPrimaryFileSequence.cc.
References cms::cuda::assert(), edm::EventID::event(), fb_, goToEventID_, goToEventInNewFile_, goToFileSequenceOffset_, edm::RootInputFileSequence::indexesIntoFiles(), edm::RootInputFileSequence::initFile(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, edm::EventID::luminosityBlock(), edm::RootInputFileSequence::rootFile(), edm::EventID::run(), edm::RootInputFileSequence::sequenceNumberOfFile(), edm::RootInputFileSequence::setAtFileSequenceNumber(), and usingGoToEvent_.
|
overrideprivatevirtual |
Implements edm::RootInputFileSequence.
Definition at line 137 of file RootPrimaryFileSequence.cc.
References duplicateChecker_, edm::RootInputFileSequence::initTheFile(), input_, edm::Primary, remoteMonitoring_LASER_era2018_cfg::skipBadFiles, and usingGoToEvent_.
|
overrideprivatevirtual |
Implements edm::RootInputFileSequence.
Definition at line 146 of file RootPrimaryFileSequence.cc.
References edm::InputSource::branchIDListHelper(), edm::PoolSource::bypassVersionCheck(), edm::PoolSource::dropDescendants(), duplicateChecker(), enablePrefetching_, enforceGUIDInFileName_, eventSkipperByID(), edm::RootInputFileSequence::fileNames(), edm::RootInputFileSequence::indexesIntoFiles(), initialNumberOfEventsToSkip_, input_, edm::PoolSource::labelRawDataLikeMC(), edm::RootInputFileSequence::logicalFileName(), noEventSort_, noRunLumiSort_, edm::PoolSource::nStreams(), orderedProcessHistoryIDs_, edm::Primary, edm::InputSource::processBlockHelper(), edm::InputSource::processConfiguration(), edm::PoolSource::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 182 of file RootPrimaryFileSequence.cc.
References cms::cuda::assert(), branchesMustMatch_, Exception, edm::RootInputFileSequence::fileNames(), edm::RootInputFileSequence::initFile(), input_, edm::ProductRegistry::merge(), edm::errors::MismatchedInputFiles, edm::RootInputFileSequence::noMoreFiles(), edm::PoolSource::productRegistryUpdate(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtNextFile(), edm::PoolSource::skipBadFiles(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by readFile_(), skipEvents(), and skipEventsAtBeginning().
|
delete |
|
private |
Definition at line 208 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::atFirstFile(), branchesMustMatch_, Exception, edm::RootInputFileSequence::fileNames(), edm::RootInputFileSequence::initFile(), input_, edm::ProductRegistry::merge(), edm::errors::MismatchedInputFiles, edm::PoolSource::productRegistryUpdate(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtPreviousFile(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by skipEvents().
std::shared_ptr< FileBlock > edm::RootPrimaryFileSequence::readFile_ | ( | ) |
Definition at line 83 of file RootPrimaryFileSequence.cc.
References cms::cuda::assert(), fb_, firstFile_, newFWLiteAna::found, goToEventID_, goToEventInNewFile_, goToFileSequenceOffset_, edm::RootInputFileSequence::initFile(), input_, nextFile(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtFileSequenceNumber(), edm::PoolSource::skipBadFiles(), skipIntoNewFile_, skipToFileSequenceNumber_, and skipToOffsetInFinalFile_.
|
private |
Definition at line 409 of file RootPrimaryFileSequence.cc.
References input_, and edm::InputSource::remainingEvents().
Referenced by makeRootFile(), and RootPrimaryFileSequence().
|
private |
Definition at line 411 of file RootPrimaryFileSequence.cc.
References input_, and edm::InputSource::remainingLuminosityBlocks().
Referenced by makeRootFile(), and RootPrimaryFileSequence().
ProcessingController::ReverseState edm::RootPrimaryFileSequence::reverseState | ( | ) | const |
Definition at line 458 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 257 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::atFirstFile(), edm::RootInputFileSequence::closeFile(), firstFile_, goToEventInNewFile_, edm::RootInputFileSequence::initFile(), initialNumberOfEventsToSkip_, rewindFile(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtFirstFile(), skipEventsAtBeginning(), skipIntoNewFile_, and skipToStop_.
|
private |
Definition at line 278 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::rootFile().
Referenced by rewind_().
void edm::RootPrimaryFileSequence::skipEvents | ( | int | offset | ) |
Definition at line 296 of file RootPrimaryFileSequence.cc.
References cms::cuda::assert(), edm::RootInputFileSequence::atFirstFile(), edm::RootInputFileSequence::atLastFile(), fb_, edm::RootInputFileSequence::initFile(), nextFile(), edm::RootInputFileSequence::noMoreFiles(), HLT_IsoTrack_cff::offset, previousFile(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::sequenceNumberOfFile(), edm::RootInputFileSequence::setAtFileSequenceNumber(), skipIntoNewFile_, skipToFileSequenceNumber_, skipToOffsetInFinalFile_, and skipToStop_.
void edm::RootPrimaryFileSequence::skipEventsAtBeginning | ( | int | offset | ) |
Definition at line 284 of file RootPrimaryFileSequence.cc.
References cms::cuda::assert(), nextFile(), HLT_IsoTrack_cff::offset, and edm::RootInputFileSequence::rootFile().
Referenced by rewind_(), and RootPrimaryFileSequence().
|
private |
Definition at line 66 of file RootPrimaryFileSequence.h.
Referenced by nextFile(), previousFile(), and RootPrimaryFileSequence().
|
private |
Definition at line 80 of file RootPrimaryFileSequence.h.
Referenced by closeFile_(), duplicateChecker(), and initFile_().
|
private |
Definition at line 89 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile(), and RootPrimaryFileSequence().
|
private |
Definition at line 90 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 75 of file RootPrimaryFileSequence.h.
Referenced by eventSkipperByID().
|
private |
Definition at line 74 of file RootPrimaryFileSequence.h.
Referenced by goToEvent(), readFile_(), and skipEvents().
|
private |
Definition at line 65 of file RootPrimaryFileSequence.h.
Referenced by getNextItemType(), readFile_(), and rewind_().
|
private |
Definition at line 84 of file RootPrimaryFileSequence.h.
Referenced by goToEvent(), and readFile_().
|
private |
Definition at line 82 of file RootPrimaryFileSequence.h.
Referenced by getNextItemType(), goToEvent(), readFile_(), and rewind_().
|
private |
Definition at line 83 of file RootPrimaryFileSequence.h.
Referenced by goToEvent(), and readFile_().
|
private |
Definition at line 76 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile(), rewind_(), and RootPrimaryFileSequence().
|
private |
Definition at line 64 of file RootPrimaryFileSequence.h.
Referenced by closeFile_(), initFile_(), makeRootFile(), nextFile(), previousFile(), readFile_(), remainingEvents(), remainingLuminosityBlocks(), and RootPrimaryFileSequence().
|
private |
Definition at line 78 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 77 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile(), and RootPrimaryFileSequence().
|
private |
Definition at line 67 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 86 of file RootPrimaryFileSequence.h.
Referenced by getNextItemType(), readFile_(), rewind_(), and skipEvents().
|
private |
Definition at line 87 of file RootPrimaryFileSequence.h.
Referenced by readFile_(), and skipEvents().
|
private |
Definition at line 88 of file RootPrimaryFileSequence.h.
Referenced by readFile_(), and skipEvents().
|
private |
Definition at line 85 of file RootPrimaryFileSequence.h.
Referenced by getNextItemType(), rewind_(), and skipEvents().
|
private |
Definition at line 79 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile(), and RootPrimaryFileSequence().
|
private |
Definition at line 81 of file RootPrimaryFileSequence.h.
Referenced by goToEvent(), initFile_(), and makeRootFile().